Ideation
graphic user interface for street traffic control by ultrasonic and control the light on the street by LDR sensor when it is darker the led is open and when it is light the led will close by print the distance from ultrasonic and use a button to control yellow led
use tinkercad program to draw the circuit. and use the IDE to code the Arduino and processing 3 to make graphic user interface
We use Arduino kit and different component and write a code to program it
button and text code from processing 3 :
label= cp5.addTextlabel("lable")
.setText("Destance is :")
.setPosition(100,80);
>>>>>>button
cp5.addButton("push").setBroadcast(false)
// .setValue(0)
.setPosition(100,100)
.setSize(200,19)
.setBroadcast(true)
;
>>>>>>>connection :
myPort = new Serial (this, Serial.list()[0],9600);
I design my circuit on papers
I use the breadboard, Arduino, and the components to make the circuit and upload the code using Arduino IDE.
I test the circuit
use processing 3 to make graphic user interface.
connect between processing 3 and arduino.
try the GUI.
I use a breadboard and these components to complete the project
Componentes
1 Arduino
1 ultrasonic
3 resistance 1 kohm
3 LED
1 LDR Module
1 buzzer
Wires
tell my peer how to connect the H-bridg power .
first channel with 9 V from adaptor
second channel with ground from the adaptor and Ardino
third channel with Vcc
Graphic User Interface
control Arduino by GUI
Bluetooth code with mobile app