My Idea for this week is a door system , that opens a door and then closes it back after the person enters .
also it turns on a buzzer so that it let know the other that someone enters .
As a software :
I used Arduino IDE to program the Arduino .
I used BlueDuino on the mobile to send Serial signals over bluetooth .
As Hardware I Used :
Arduino
UltraSonic
H-Bridge
DC Motor
Buzzer
Switch
I have made a box which contains the motor , the Ultrasonic and the button .
I have designed the circuit on tinker cad as following
Then wired every thing up but added the H-Bridge to the motor .
I put the buzzer directly on the Arduino so it is connected to pin 11 and the other pin to the ground .
Programmed the arduino so when the distance is less than 10 Cm the motor and buzzer starts to work
Also the circuit is not going to work only if the enable button is not pressed once .
Wired button one wire to the ground and the other wirte to pin 5 in arduino
for the buzzer connected the positive pin to pin 11 and other pin to GND
for the motor connected it to the H-Bridge on the motor pins
and the H-Bridge connected the 3 Power pins two of them to the 5 v and the middle one to the Ground
Connected the control pins from Arduino to the H-Bridge .
Programmed the Arduino and with a little tweaking every thing worked at the end .
Marwa helped me in understanding the H-bridge while we were debugging the issue with her circuit .
I tried to use the POT but it was hard to connect it using the wires , so I decided to use the button instead .
I will be using the push button in my final project so that will help me .
using multiple outputs and inputs at once