MellBell
Published © CC BY-SA

A Tiny Alarm System Using a Tiny Arduino Compatible Board!

This is a project for a simple and tiny alarm system. It reads the distance between itself and an object facing it, and beeps accordingly.

BeginnerFull instructions provided777
A Tiny Alarm System Using a Tiny Arduino Compatible Board!

Things used in this project

Hardware components

PICO
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Buzzer
Buzzer
×1
LED (generic)
LED (generic)
×1
Resistor 330 ohm
Resistor 330 ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
9V battery (generic)
9V battery (generic)
×1

Story

Read more

Code

Ultrasonic sensor only code

C/C++
This is the Arduino code for the ultrasonic sensor only.
No preview (download only).

Buzzer and Ultrasonic Sensor Code

C/C++
This is the same code for the ultrasonic sensor, with the code for the buzzer added
No preview (download only).

Finished Project Code

C/C++
This is the final code for the project. It contains the code for all of our components.
No preview (download only).

Credits

MellBell
1 project • 8 followers
Contact

Comments

Please log in or sign up to comment.