Control RGB with hand-waving above ultrasonic sensors
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
Ondřej Hruška 7a2fc08832 more comments and explanations 8年前
lib initial 8年前
.gitignore initial 8年前
LICENSE initial 8年前
Makefile initial 8年前
README.md readme typos 8年前
main.c more comments and explanations 8年前
style.astylerc initial 8年前
us_rgb.pro initial 8年前

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.