-
-
Notifications
You must be signed in to change notification settings - Fork 29
SPI Setup Running without root
The initial setup wizard will do this all for you, but if you want to do it yourself or know what is going on, read this
-
Add the Pi user to the gpio group. This means you can access the GPIO pins on the Raspberry Pi
Run
sudo adduser pi gpioto do so, orgroups pito check if Pi is already there -
Enable SPI, which is how the plugin will drive the LEDs.
Can be done through
raspi-configor by addingdtparam=spi=onto /boot/config.txt (Easier!) -
Increase the SPI Buffer size, so we can output more data. Needed to drive more than a handful of LEDs
Add
spidev.bufsiz=32768to /boot/cmdline.txt. -
Set the correct clock frequency. Needed to get the correct signal frequency. On a Raspberry Pi 3, this should be 250. This step is not required on a Pi4
Add
core_freq=250orcore_freq_min=500to /boot/config.txt. -
Set a minimum clock frequency. **Starting with the Raspberry Pi 4, **the SPI frequency can change if the Pi is idling vs. 'working', which can cause the LEDs to misbehave and flicker, or change colour. Not required on earlier models.
Set
core_freq_min=500in /boot/config.txt.
These options come from the rpi_ws281x library the plugin depends on, see more here
If you have any questions, please don't hesitate to get in touch! You can:
- Open an issue with the question template
- Get support on the OctoPrint Discord @cp2004
- Get support on the Community Forums @Charlie_Powell
I developed the plugin in my free time, so if you have enjoyed the plugin, you can sponsor its development here from as little as $1
The plugin is licensed under the terms of the AGPLv3 License. The author (Charlie Powell) assumes no liability for it's usage and the plugin comes with no warranty.