Homebridge plugin for white only (not RGB) APA102 LED strip on Raspberry PI connected via GPIO (not SPI)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
wiring
.gitignore
README.md
index.js
package.json
sample_config.json

README.md

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:

Breadboard

Scheme

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": []
}