this week assignment is to Build and Program a smart circuit using an Arduino UNO which reads a signal from an input component (Sensor, Switch, or variable resistor) to control an action component (Motor, Buzzer, LED...etc) using Code Blocks
My idea
The idea is inspired by the alarm device that protects houses from thefts, when approaching certain doors, the sensor receives the signals, so the alarm makes sounds.
https://www.youtube.com/watch?time_continue=121&v=HAEpYyP_A84&feature=emb_logo
This week we were assigned to Design, simulate, and build a simple electronic device that performs two actions.
Arduino uno and wire
LED
breadboard
jumpers wire
resistor 220 om
simply the circut is works like alarm devies , so when something get close to IR sensor the buzzer is makeing a noise
blocks and text code
code blocks using tinkercad
blocks and text code
download the code to Arduino
code explain :
void loop set up
pin 2 input
pin 13 output
in void loop
if digital read pin 2 high then set pin 13 high then delay 1000
if digital read pin 2 low then set pin 13 low - delay 1000
simulation the circuit on tinker cad put the buzzer and the sensor together on bread board then write the blocks code ( if else conditions )
put the component all together and test with the power
The challenge this week is to write and understand the Coding , and Amani helped me understand (if condition ) and else and digital read blocks .
i understand how the DC motor circuits work
https://drive.google.com/file/d/1l6bN7zITuAPYvFmmUGjjqrK_Sn5ihpF3/view?usp=sharing
Title of Media
Title of Media