Skip to content

brettvitaz/OctoPrint-Neopixel_Illumination

Repository files navigation

OctoPrint NeoPixel Illumination

This plugin will allow fairly comprehensive control of NeoPixels from Octoprint.

  • Use your Raspberry Pi to power and control your NeoPixels. (I have tested powering up to 25 pixels from a Raspberry Pi 4).
  • Change color and intensity from a color picker dialog.
  • Intercept GCODE M150 commands and execute them on the Raspberry Pi.

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/brettvitaz/OctoPrint-Neopixel_Illumination/archive/main.zip

Preparing your Raspberry Pi

The GPIO pins require elevated privileges to use. A separate API script will be run as root user to connect the plugin to the NeoPixel's GPIO pin.

This currently requires that the Raspberry Pi's pi user has the default password.

Identify desired control pin

This can change based on your needs, but a recommended pin is GPIO 18.

Plug in your NeoPixels

If running a small number of pixels, they can be powered directly from the Raspberry Pi.

Please carefully review these instructions for wiring your NeoPixel strip to the Raspberry Pi.

n.b. I have witnessed damage to both Raspberry Pis and Arduinos when improperly wired.

If using SPI pins (e.g. GPIO 10), ensure that SPI mode is enabled.

Log in to your Raspberry Pi:

$ ssh pi@octopi.local

Enable SPI mode from Raspi Config:

$ sudo raspi-config

Select 4. Interface Options, P4. SPI, Yes, OK.

Configuration

Open the OctoPrint configuration dialog and select Plugins | NeoPixel Illumination.

  • Enter the pixel color order for your NeoPixel controller.
  • Enter the GPIO pin.
  • Enter the number of pixels in the device or strip.
  • Choose if you want to parse GCODE for M150 commands.
  • Enable the plugin.

Choosing a color from the color picker will save it as the start-up color.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published