May 26th, 2015
http://www.icstation.com/full-color-light-water-module-arduino-p-3273.html
This 8 rgb led module is 3.43 on sale now from icstation but you can use my coupon code “icsJoey” for an additional 15% off. It took me FOREVER to find any information about this since it wasn’t posted anywhere but here it goes:
The RGB pins go to ground depending on the color.
D0-D7 go to corresponding pins on arduino depending on which lights you want to light up.
Connect RGB to pin 9, 10, and 11 on your arduino and pins D0-D6 to pins 2-8 and D7 to pin 12
Connect +5v on arduino to VCC on the board
Upload the following code:
/* 8 RGB LED keyes module code https://www.joeybabcock.me/blog/arduino/icstation-8-rgb-full-color-led-light-water-module-for-arduino-avr/ modified 25 May 2015 by Joey Babcock */ // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 2-13 as outputs. pinMode(13, OUTPUT); pinMode(12, OUTPUT); pinMode(11, OUTPUT); pinMode(10, OUTPUT); pinMode(9, OUTPUT); pinMode(8, OUTPUT); pinMode(7, OUTPUT); pinMode(6, OUTPUT); pinMode(5, OUTPUT); pinMode(3, OUTPUT); pinMode(2, OUTPUT); pinMode(4, OUTPUT); } // the loop function runs over and over again forever //Ignore Comments from here on out, they aren't correct void loop() { digitalWrite(2, LOW); // turn the LED off by making the voltage LOW digitalWrite(3, LOW); // turn the LED off by making the voltage LOW digitalWrite(4, LOW); // turn the LED off by making the voltage LOW digitalWrite(5, LOW); // turn the LED off by making the voltage LOW digitalWrite(6, LOW); // turn the LED off by making the voltage LOW digitalWrite(7, LOW); // turn the LED off by making the voltage LOW digitalWrite(8, LOW); // turn the LED off by making the voltage LOW digitalWrite(9, LOW); // turn the LED off by making the voltage LOW digitalWrite(10, LOW); // turn the LED off by making the voltage LOW digitalWrite(11, LOW); // turn the LED off by making the voltage LOW digitalWrite(12, LOW); // turn the LED off by making the voltage LOW digitalWrite(11, HIGH); digitalWrite(10, HIGH); digitalWrite(2, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(3, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(4, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(5, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(6, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(7, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(8, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(12, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(2, LOW); // turn the LED off by making the voltage LOW digitalWrite(3, LOW); // turn the LED off by making the voltage LOW digitalWrite(4, LOW); // turn the LED off by making the voltage LOW digitalWrite(5, LOW); // turn the LED off by making the voltage LOW digitalWrite(6, LOW); // turn the LED off by making the voltage LOW digitalWrite(7, LOW); // turn the LED off by making the voltage LOW digitalWrite(8, LOW); // turn the LED off by making the voltage LOW digitalWrite(9, LOW); // turn the LED off by making the voltage LOW digitalWrite(10, LOW); // turn the LED off by making the voltage LOW digitalWrite(11, LOW); // turn the LED off by making the voltage LOW digitalWrite(12, LOW); // turn the LED off by making the voltage LOW digitalWrite(9, HIGH); digitalWrite(10, HIGH); digitalWrite(2, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(3, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(4, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(5, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(6, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(7, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(8, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(12, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(2, LOW); // turn the LED off by making the voltage LOW digitalWrite(3, LOW); // turn the LED off by making the voltage LOW digitalWrite(4, LOW); // turn the LED off by making the voltage LOW digitalWrite(5, LOW); // turn the LED off by making the voltage LOW digitalWrite(6, LOW); // turn the LED off by making the voltage LOW digitalWrite(7, LOW); // turn the LED off by making the voltage LOW digitalWrite(8, LOW); // turn the LED off by making the voltage LOW digitalWrite(9, LOW); // turn the LED off by making the voltage LOW digitalWrite(10, LOW); // turn the LED off by making the voltage LOW digitalWrite(11, LOW); // turn the LED off by making the voltage LOW digitalWrite(12, LOW); // turn the LED off by making the voltage LOW digitalWrite(9, HIGH); digitalWrite(11, HIGH); digitalWrite(2, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(3, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(4, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(5, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(6, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(7, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(8, HIGH); // turn the LED off by making the voltage LOW delay(100); digitalWrite(12, HIGH); // turn the LED off by making the voltage LOW } Some pictures of my setup/the board:![]()
![]()
![]()