assignment idea
servo motor and a react to moving by using ultrasonic sensor & 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
programming the GUI by processing
materials
brain(arduino uno)
input(ultrasonic sensor - switch bottom)
output(servo motor )
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
and copy the example of the buttom and label in the processing
then
i connected the component together in the reality
by plugin the arduino in the laptop loading the text code to the arduino
Run processing
arduino code
Processing Code
using the breadboard to connect all component to gether with common ground in the breadboard
after finishing the programming in processing it sent to me error and i couldnot know it 's meaning because it has never been sent to me
when i search i found that it mean that the port is not used
my problem was my serial read only when i send letter 'a' to the arduino port and my friend suggestion was in the code to change the location of the (print.Serial())
how to create graphical input by using processing
ho communicate with arduino wireless by using bluetooth or wifi component
using the bluetooth component to manipulate with led and servo