Skip to content

heronog/background-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software to control a RGB led with an arduino through a serial port.

the circuit is a standard RGB PWM control with arduino, as you can see in http://learn.adafruit.com/rgb-led-strips/usage

It opens the serial port and waits for a RGB color in hex notation like #ff00ff.
it then sets the RGB led to that color and waits for your next command.

there's a node_js server that serves a jquery colorpicker and sends the selected color to the light.

run it like this

# node json_control.js

then point your browser to http://localhost:8124/ to see it!!

you can also hit the server directly from the console like this:

# curl -d "color=f56803" http://localhost:8124/set

this creates a POST request to '/set' with a variable "color" set to the hex color you want.
you know what to do


IDEAS:
add a nrf24l01 radio and control it through the airwaves!

About

Control the color of a rgb led with arduino. CSS style

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%