I was inspired from old movies that we all love it Monsters Inc
so the idea come why i didnt make Boo's door
by chance i found it on instracbles while i was searching
jumpers
red LED
cardboard to make the design
potentiometer as anlog input
breadboard
220 ohm
arduino uno
tinker for simulation
IDE
at first I cut the cardboard and I draw boo's door on it
coding
from tinkercad
I choosed LED
breadboard
1 resistor (220 ohm )
arduino uno
potentiometer
and made the circle
I clicked on if codition and put if analog A0 > 512 set pin 10 high
else
set pin 10 low
after that I take the code and put it on IDE then upload the code on arduino uno
i put the potentiometer as an input and the LED as an output
the a condition if the analog read more than 512 *because the average 1023 * the led become on
else the led off
the final result after putting the door on the circle
I connected the circle together and uploaded the code
I make sure that the circle now is ready
NOW BOO should go home
I wasn't know how to upload the code on arduino I asked my friend and the solution was to choose from tools : board : arduino uno