You are on page 1of 5

instructables

Theft Alarm on Tinkercad

by manpreet1059

I was teaching students how to interface led, potentiometer, buzzer, LCD, PIR sensor and using all these i teach them to
create a theft alarm
What will happen when a thief comes. It will be detected by PIR sensor and it give signal to LED to glow, buzzer to
produce sound, LCD to display a message (means alert by light, sound, message)
Supplies:

Computer and internet connection (In TinkerCad Arduino Uno R3, Breadboard, 2 resistor(220 ohms), led, potentiometer,
buzzer, LCD, PIR sensor is required)

https://www.instructables.comhttps://www.tinkercad.com/things/5PbZBv4S6OU

Initializing

Theft Alarm on Tinkercad: Page 1


Download

https://www.instructables.com/ORIG/FXE/OWO1/L7DCDZQV/FXEOWO1L7DCDZQV.mp4

Step 1: Interfacing of Components

1. LED interface to digital pin no. 7 via 220 ohm resistor


2. buzzer to digital pin no. 8
3. PIR sensor digital pin no. 4
4. LCD interfacing:
5. GND to ground pin
6. VCC to 5V
7. contrast(v0) to potentiometer
8. Register select(RS) to digital pin no.13
9. Read/write(RW) to ground pin
10. Enable to digital pin no.12
11. DB4 to digital pin no. 6
12. DB5 to digital pin no. 5
13. DB6 to digital pin no. 3
14. DB7 to digital pin no. 2
15. LED anode to 5v via 220 ohm resistor
16. LED cathode to ground pin

Theft Alarm on Tinkercad: Page 2


Step 2: Text Coding

Steps involves are:


1. include Liquid Crystal Library.
2. Create object for LCD
3. Create variables for led, buzzer, PIR sensor, PIRstatus(for HIGH and LOW)
4. initialize the pinMode in setup function.
5. In loop function we use if else condition
6. If something is there in the range of a PIR sensor (PIRstatus is HIGH) buzzer will produce a sound, LED will
glow and LCD will display 'ALERT'.
7. else nothing will work and LCD displays 'SAFE'.

Theft Alarm on Tinkercad: Page 3


Step 3: Simulation

Last step is to check if it is working or not. Click on start simulation to see its working

Theft Alarm on Tinkercad: Page 4


Thanks for sharing.

Theft Alarm on Tinkercad: Page 5

You might also like