Skip to content

Homebridge plugin for white only (not RGB) APA102 LED strip on Raspberry PI connected via GPIO (not SPI)

Notifications You must be signed in to change notification settings

topas/homebridge-rpi-apa102-white

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Homebridge plugin for white only (not RGB) APA102 LED strip on Raspberry PI connected via GPIO (not SPI)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published