Instructions RGB LED Controller Part 2 Assembly electronics

Erstellt von Ryust Lightworks | |   Blog | Blog Tutorial

Assembly of the electronics for the controller

 

Since we took care of coding the Arduino we can now assemble the controller hardware. We start by putting the components inside the case. The potentiometers go in the two round holes on the left, the switch for power is at the bottom, switch for the mode is at the top right and the Arduino goes in the holder in the middle.

Start by soldering a red cable from the power switch to the RAW pin of the Arduino. This pin is the go to pin for power supply since it is connected to a voltage regulator, so even if the voltage is higher than 5V this pin can be used to power the Arduino. Next solder another red wire to the VCC pin since we need the high level voltage for the potentiometer. Solder two white wires to the A0 and A1 pins to be used for the potentiometer readings. Picture17

 

Now put a long white and a long green wire through the opening at the top which are later used to connect the LED. Solder the green to pin 3 and the white to pin 6 and press them flat on the Arduino. Solder two black wired to the GND pins on the left side of the Arduino, these are used for the low level voltage for the potentiometers. Solder two blue wires to pin 7 and pin 8 to be used for the mode switch. Picture 18

 

The red cable we soldered on the VCC pin now needs to be soldered to one of the outer pins of the first potentiometer. Use another red cable to continue this to the second potentiometer. Take care to use the same side on both potentiometers so full on will be the same side on both. Solder the two black cables to the other side of the potentiometers and the white cables from Pins A0 and A1 on the middle pin. Potentiometers work by setting the voltage on the middle pin to a voltage between the voltages applied to the outer pins, so if we connect high and low voltage we can get a voltage in between on the middle pin. This completed the wiring for the potentiometers and they can be turned a little so the pins are out of the way. Picture 19-20

 

 

Solder a black cable to the middle pin of the mode switch and put a long black cable through the opening leading to the power supply. Put another long black cable through the top opening to be used as GND for the LED. Picture 21

 

The black cable coming from the power supply is soldered to another black wire that is connected to the last free GND pin of the Arduino. Solder the wire leading to the LED and the black wire on the mode switch together and finally solder the two pairs of black wires you now have together. Use shrinking tube to isolate the soldering to prevent shorts inside the controller. Picture 22

 

As a last step we can now solder the two blue wires to the mode switch. These switches work by connecting the middle pin to one of the outer pins depending on which side the switch is on. Since pin 7 and 8 are set up to be triggered when connected to GND we can use the outer pins of the switch for the pins and the middle for GND. This way one of the pins is always triggered.

Finally put a red wire through the power opening and solder it on the middle pin of the power switch and put another long red wire through the opening to the LED and solder this to the same pin on the power switch that the Arduino is connected to. Picture 23

 

Solder the power cables to the battery holder and screw in the clip that holds the cables leading to the LED. This completes the wiring for the controller. Picture 24

 

 

Zurück
Picture 17
Picture 18
Picture 19
Picture 20
Picture 21
Picture 22
Picture 23
Picture 24