0.0.2 • Published 9 years ago

homebridge-rpi-apa102-white v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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

9 years ago