homebridge-rpi-apa102-white
v0.0.2
Published
Homebridge plugin for white only (not RGB) APA102 LED strip on Raspberry PI connected via GPIO (not SPI)
Downloads
4
Readme
Homebridge plugin for APA102 LED strip (white only)
Plugin for controlling APA102 LED strip connected to Raspberry PI using GPIO. It doesn't use SPI bus because SPI needs root access rights. Instead of use SPI bit banging on two GPIO pins.
If you need RGB version just fork this repo and make it RGB, it should be easy. I have only white version of APA102 LED strip so I created this plugin only for that.
## Wiring
Because of Raspberry PI has 3.3V logic and APA102 LED stripes has 5V you need level shifter. I used 74HCT125 wired as follows:
Homebridge configuration
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration of APA102 white only LED strip connected to Raspberry PI",
"accessories": [
{
"accessory": "LedStrip",
"name": "LED strip",
"ledstrip_name": "LED strip in living room",
"ledCount": 310,
"dataPin": 23,
"clockPin": 24
}
],
"platforms": []
}