I decided to elevate it so it can change color when waving your hand from different distance.
used software
bread board
is used for building circuits, and demonstrating its action
AURDUINO UNO
to be the brain of device
to connect two points to each other and make the circuit closed
220 ohm resistor
to reduce current flow, and divide voltages
is used to be the source of light as it abole to give diffrent light colors
to sence the user hand so the color could be changed
the circuit connection simulation
here is the final wiring, I used color coding, red for positive and black for negative for the RGB the red on pen 9 ,green on pen 10 ,blue on pen 11 and for the sensor red vcc on positive black ground on negative dark purpel Echo on pen ~3 and the light purpel triger on pen 2
the wiring
the circuit connection
I copied the text code from tenkercad and uploaded it on Arduino software
Title of Media
I had a problem that the RGB was lighting but not change colors it took me too long traying to find out what the problem as the code is uploaded successfully and the wiring was ok after that i realized that am not connected the 5v to circuit so the aurduino was not connected to the circuit
THE KEY OF SOLUTION IS trial and error
Title of Media
Title of Media
Title of Media