Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
|
10 år sedan | |
|---|---|---|
| lib | 10 år sedan | |
| .gitignore | 10 år sedan | |
| LICENSE | 10 år sedan | |
| Makefile | 10 år sedan | |
| README.md | 10 år sedan | |
| main.c | 10 år sedan | |
| style.astylerc | 10 år sedan | |
| us_rgb.pro | 10 år sedan | |
README.md
Spatial RGB
What
- Arduino
- 3 sonars
- 3 colors in the spectrum
- RGB LED strip
- Magic!
Building
To run this project, you need Arduino Pro Mini, or Nano (those $2 eBay clones will work perfectly). You can also try to use a genuine Arduino, even larger (UNO), though I haven't tried that.
To flash the firmware, run make flash. Adjust the Makefile as needed. Naturally, you'll need
avr-gcc and avrdude installed (and Linux or OSX).
Make sure the correct Serial device is defined in the Makefile (/dev/ttyUSB0 or other - it tends
to be something really strange on OSX).
Hardware
-
RGB LED strip with WS2812 or WS2812B. It's set up for a 30-led strip, adjust as needed.
-
Sonars: HC-SR04 (you can get them on eBay)
Wiring is configured in the C file at the top - adjust pin numbers however you like.