funny colors RGB led powered by Arduino add joy to place when turn off the lights
home application system circuit home application system circuit home application system circuit
i use software Tinkercad to design circuits & arduino ide for coding
i use materials electronics devices like wires , breadboard , power source , RGB , ldr sensor lm 393 and resistor 220 ohm
To turn my ideas and creations into something tangible, real, and interactive.
breadboard
arduino
resistor 220 ohm
RGB LED output
ldr sensor lm393 input
search for components like resistor and Leds
bread board
drag and drop them in free space
click at and component to edit name and customize numbers and type
define the rgb led& ldr sensor in specific place in Arduino
ldr sensor lm393 works as a input and need 5V
RGB LED works as a output and need 5V
they are taking the power from arduino
set if condition to make rgb turn on when the lights is off and make pattern loop
set colors for rgb to be different with pattern
how i joint every component each other
when sensor was in flash light the RGB colors give green , blue and yellow
and when turn off the lights the RGB blinking with colors
so the sensor works like input to arduino and rgb works like outpu to arduino
i make rectangle hole for ldr sensor 2*4 cm
RGB led i make circular hole with 0.5 diameter
i make Rectangular box with dimensions 24*18cm
and height 12 cm
i use sticks and glue gun to make it fixed
simply i use Pointed tooth to make very small hole to mount the both sides in the base and finally i use glue gun
finally how it looks like
make sure every component on ground
and when we have code error make edits to try to figure out
and check syntax , logic and run time
the rgb give random colors and i realize that sensor need strong light up spot in it
it needs try every time to do an experiment and open serial monitor and note the output
how to fix code