Slipper Shining with LED strip & Xadow
I wanna change a way to control it, instead of “pressure-sensitive”, I use a accelerometer sensor judging the motion of slipper.
It’s simple, I complete this version only calculating the acceleration on “z” axis, weather i’m speed up or slow down. Led will “flow” if I’m moving, and stop as I stop.
Step 1: Materials & Tools
There is already a 3.7V lipo battery shipped with Xadow, due to my experience this voltage can light up a short segment of RGB Led strip, if necessary you can calculate the max length it can support based on your specific one. For me, this is a W2818 programmable RGB Led strip with integrated driver.
If you wanna a more “blink” experience, please use an external 5V DC power or make a 5V booster by yourself.
Step 2: Connect
Xadow main board <- I2C -> Xadow 3-axis <-> Strip
There is already breakout on accelerometer sensor, so you don’t have to add “Xadow breakout”.
Xadow use FFC between two modules, this 12Pin cable just fix the Xadow compatible interface.
For more info, please checkout wiki http://www.seeedstudio.com/wiki/Xadow_IO_pin_mapping
Some solder works should be done: you have to connect pins to the breakout on Xadow.
Step 3: Blink Test
Since this is the same as NeoPixel Digital RGB LED by adafruit http://www.adafruit.com/products/1461, if you wanna a quick implementation of beautiful animation with it, I highly recommend the code example by Adafruit http://learn.adafruit.com/firewalker-led-sneakers/test-circuit.
Deploy their library https://github.com/adafruit/Adafruit_NeoPixel, have a try on “example”
Also deploy https://github.com/reeedstudio/xadow, try the demos related with 3-axis. I made some modification and use it on Xadow.
for more detail: Slipper Shining with LED strip & Xadow