assignment idea
servo motor and a RGB LEDs react to moving by using ultrasonic sensor & poterntiometer and change the input according to switch
i care to the idea because it will help me in the final project to move the parametric unit
software using tinkercadto simulate the cuircit & programming the arduino by code block and simulate the code
materials
brain(arduino uno)
input(ultrasonic sensor - potentiometer - switch bottom)
output(servo motor - RGB leds )
risitance 330 ohm - jumpers - breadboard
using tinkercad
connecting all component together in tinkercad using breadboard
opening the coding in tinkercad to write the code by ardiuno.IDF
copy the text in tinkercad and then simulate it
then
i connected the component together in the reality
by plugin the arduino in the laptop loading the text code to the arduino
define variable-servo liberary
setting pins
remapping the value from ultrasonic
+first step in if condition
remapping the value fromthe poteniometer
+second step in if condition
using the breadboard to connect all component to gether with common ground in the breadboard
ask my friend due to the limiting of component in tinkercad and we search and find fritzing have all component needed and we can program and expot schematic diagram from it
having problem in the value come from the ultrasonic sensor
after searching i find the problem was in the holding of the sensor with my hand some dirts
skills
how to manage multi input with multi output
how to coding by arduino code text
how to connect and use (input & output ) in arduino
simulate arduino using tinkercad
using this knowledge and skills to make the movable part in the project by servo motor depend in the IR sensor and poteinmeter
how to turn from one variable to another by coding
THE POWER OF CODING : how to manipulate