Skip to content

Python implementation of Adafruit Industries WS2801 spooky eyes project for the Raspberry Pi

License

Notifications You must be signed in to change notification settings

mch/spooky-eyes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WS2801 Spooky Eyes for the Raspberry Pi

This in an implementation of Adafruit's Random Spooky LED Eyes for the Raspberry Pi. The original is for an Arduino, but I happen to have a Raspberry Pi, and the SPI pins on the Pi can be used to drive a string of WS2801 LEDs.

I got my 5v LEDs off of eBay, but they had a 3 pin connector on the output end and were a bit hard to figure out. The Adafruit ones are better quality, and have proper 4 pin connectors on both ends.

My implementation depends on the Adafruit Python WS2801 library.

I tested with both software and hardware SPI, and hardware SPI is definitely the way to go. For good fading effects, hardware SPI is a must. The software emulation's timing is off and causes other LEDs to flicker.

For this I used an external power supply for the LEDs, just a wall wart. Although the Pi has a 5v pin, I doubt it will provide enough power to run the LEDs. Be sure to connect the ground of the Pi with the ground of the LED power supply.

The green wire of the LEDs is the clock, and must be connected to SCLK pin on the Pi. The white wire is the data signal, and must be connected to the MOSI pin on the Pi.

Be sure to enable the SPI module.

About

Python implementation of Adafruit Industries WS2801 spooky eyes project for the Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published