I made a security device that consists of an LED light, an alarm device, and a microwave sensor. If it senses someone passing in front of it, the device emits light for three seconds and then turns on the alarm device.
Final Result
If a thief passes in front of the microwave sensor, the LED will blink, then the buzzer will work for 5 seconds, if the thief does not escape from the place the process will be repeated again.
Software
TinkerCad
Arduino IDE
Materials
Arduino UNO
breadboard
LED
resistor 220 Ohm
Jumper wires
Buzzer
Microwave sensor
1
( Electronic circuit in Tinkercad )
1st I used Tinkercad to simulate the circuit.
I connected the components to the circuit as shown in the picture.
I have selected the appropriate blocks for the code.
2nd I tested the code as shown in the video.
3rd I copied the code to download it to the Arduino.
If pin 2 reads a signal "the device sensed a motion around"
Pin 3 will be HIGH and LOW 3 times to do blink , then pin 4 will be HIGH for 5 seconds to play buzzer sound.
If pin 2 does not read signal.
pin 3 and 4 will be low.
Tinkercad simulate
Circuit Test in Tinkercad
BLOCKS in Tinkercad
2
( Electronic circuit in Breadboard )
1st I used ArduinoIDE to upload the code to the Arduino.
2nd I tested the circuit as shown in the video.
+ buzzer ---> pin 4
+LED ---> pin 3
microwave signal ---> pin 2
The circuit on a breadboard
Circuit Test video
CODE in ArduinoIDE
The sensitivity of the sensor was not good, so it was not responding at first, but after I replaced it with another one, it worked perfectly.
I learned what the differences are between all types of motion sensors.
and how to choose the right type for the project.
In some projects it is useful to use Tinkercad Blocks for experimentation, before starting the programming process.
We made a hand that says Hi if you come near it, using an ultrasonic sensor.