Sitemap
Sineth Shashintha

Sineth Shashintha

I am a Software Engineering Undergraduate student with the passion of modern technology. Always trying to be happy and make the moments happy respecting others

Let’s Create a Burglar Alarm

2 min readNov 22, 2023
Press enter or click to view image in full size

In the wake of increasing concerns about security, creating a burglar alarm system has become more relevant than ever. In this blog post, I’ll explain how I created an alarm to complete my future career bridge task and the process of building a simple yet effective burglar alarm system using Tinkercad, an online simulator, and an Arduino board.

Let’s go……….

Step 1: Creating an account on Tinkercad

The first step in our journey is to access Tinkercad. If you guys already, visit https://www.tinkercad.com/, and either log in or create a new account. Tinkercad provides us a user-friendly interface for designing and simulating electronic circuits.

Step 2: Creating a New Project

Once you’ve logged into Tinkercad, click on the “Designs” button to start a new project by clicking “+Create”. This will open a new tab where we can design our electronic circuit.

Step 3: Adding Components

Now, it’s time to add the necessary components to our circuit. From the components panel on the right(Arduino components), search for and add the following components:

  • Arduino
  • Ultrasonic distance sensor
  • Buzzer

Step 4: Connecting Components

Get Sineth Shashintha’s stories in your inbox

Join Medium for free to get updates from this writer.

Connect the components according to the following configuration:

  • VCC pin of the ultrasonic sensor to the 5V pin on the Arduino.
  • GND pin of the ultrasonic sensor to the GND pin on the Arduino.
  • Trig pin of the ultrasonic sensor to a digital pin on the Arduino (e.g., D2).
  • Echo pin of the ultrasonic sensor to another digital pin on the Arduino (e.g., D3).
  • Positive (+) pin of the buzzer to a digital pin on the Arduino (e.g., D4).
  • Negative (-) pin of the buzzer to the GND pin on the Arduino.

Step 5: Writing Arduino Code

After setting the circuit we can click on the “Code” button to switch to the code editor in Tinkercad. Then we can replace the default code with the provided Arduino code. This code uses an ultrasonic sensor to measure distance, and if an object is detected within a specified range, it triggers the buzzer.

Step 6: Simulating the Alarm System

Finally, we can click on the “Start Simulation” button to witness our circuit in action.

Thank you and enjoy the work….

--

--

Sineth Shashintha
Sineth Shashintha

Written by Sineth Shashintha

I am a Software Engineering Undergraduate student with the passion of modern technology. Always trying to be happy and make the moments happy respecting others