The RGB Night light is a circuit that powers a RGB LED light which turns on when it detects that it is dark. It also allows the user to choose the night light color from magenta, blue, cyan, green, yellow, orange, and red.
This RGD Night Light, which is powered by 5 volts, has a photoresistor, a potentiometer, three 330 Ω resistor, a 10k Ω resistor, twelve jumper wires, and a RGB LED light. The photoresistor is a resistor that uses light wavelengths to determine its resistance in the circuit. This allows, the night light to know when it’s dark which prompts it to turn on. The circuit also has a potentiometer which is a manual adjustable resistor. This allows the user to change its resistance which ultimately changes the voltage of the circuit. This then changes the night light color as it is programmed to change the color of the RGB LED light based off that resistance. The resistors in this circuit help control the amount of current that flows towards the RGB night light and the RGB LED light is a light that uses red, green and blue values to determine the color of the light.
During this starter project, I had a problem in the beginning when I was unable to find any 330 ohm resistors. In order to solve this problem, on the supplies tables, I found resistors that did not have their resistance labeled. This allowed me to learn about the colors that are on the resistors and what they represent. By learning what the colors represent, I was able to find the 330 ohm resistors and make the project work.
Here is an example of my code.