Step 4Arduino script
Wire up your LEDs to pins 9,10, and 11 of the Arduino and the Ground pin using resistors appropriate for your LEDs. I recommend breadboarding first to make sure you have everything going to the correct pins and resistor values are correct. I used a single RGB LED from SparkFun.
Check your wiring by starting the Arduino software and opening the serial monitor. Enter #FF0000 and Red should light up, #00FF00 and green should become active, #0000FF and Blue lights. You can now set your PHP script to mix these colors in any way desired.
serial_rgb_led_too.zip977 bytes| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|














































