This week my assignment idea is to design multiple input components multiple input components.
I do this idea because it's a small part of my final project.
I used Tinker cad to design and simulate my electronic circuit,
Then i used Arduino program for coding.
Tools:
Arduino Uno
Breadboard
Wires
Resistors 220 ohm
Ultrasonic Sensor
Buzzer
Switch
Red LED
Thinker Cad
Arduino Uno
Breadboard
Wires
Resistors 220 ohm
Ultrasonic Sensor
Buzzer
Switch
Red LED
Tinker Cad Circuit
I started by using Thinker Cad to simulate my circuit and make sure that everything will be OK
I connected Utlrasonic sensor with Arduino on pins 6 & 7 and the other pins with ground & 5v on breadboard
I connected buzzer with Arduino on pin 4 & the other side on ground
I connected 3 Red LEDs with Arduino on pins 8,9&10 with resistor 220 ohm and other side on ground
I connected switch with Arduino on pin 5 & the other 2 sides on ground & Anode
And Arduino connected with ground & 5v with breadboard
Tinker Cad simulation video
I started with define all pins in Arduino & Ultrasonic Sensor
Red LEDs on 8, 9 & 10
Switch on 5
Buzzer on 4
Then, i defined inputs & outputs and defined Arduino
2 INPUTS ( Ultrasonic sensor & Switch)
2 OUTPUTS ( Red LEDs & Buzzer)
Finally, I define my condition as follow:
if distance <20 near ultrasonic sensor & switch on High the 3 red leds will be on
Else the 3 red leds will be off & the buzzer will be on
I used the same components that i used on thinker cad
I connected Utlrasonic sensor with Arduino & breadboard, connected LEDs with resistors 220 ohm & with Arduino, connected buzzer & switch with Arduino & breadboard
Then connect Arduino with laptop & verify code with it then start to test as it shown in the below video
Title of Media
In the EOweek session i & Yasser my team mate joined & build a simple smart home system & it works then we save a video of the circuit & steps in the below of the journal.
After collecting my idea & make circuit on thinker cad & trying many time for coding but every time i have something wrong in the code so i contact with Michael & Mohamed Tarek & they make zoom meeting & explain to me how can i fix my issue in a simple way & i did it
In my final project i will use RFID instead of ultrasonic sensor & i will use led to light inside my vending machine & buzzer when i press the botton to have my candy so i used many products will help me in the final project ( And for sure Coding)
We manage a Smart home system as an exercise in EOweek session
Smart Home System