Main Content

Tiny Motion Detection Alarm

Hi, in this project, we are going to make a motion detection alarm with IMU 6050, it is a 3-axis Accelerometer and Gyro Sensor module. By using this, if a small movement is detected by the IMU, it will trigger a sound in the buzzer. It will alert you if an object moves even if it is supposed to be stationary, like a door, home appliance, or drawer. You can attach this device to any surface with double tape. It is also useful for monitoring children and elderly people.

How to use it
Activation sequence
After powering on the alarm will not be activated. To activate this alarm you need to press down the push button then you will hear one beep sound which indicates the activation sequence is successful.
Stand by sequence
After pressing the button we will have 4 seconds to place this alarm, any movement happening during this 4 seconds will be ignored.
Detection sequence
After the stand-by sequence, you will hear two beep sounds which indicate the Detection sequence is started. From here the alarm is fully armed. Any small movements happening in the 3 axis of the device will be detected and trigger this alarm continually for 10 seconds. After this alarm is offline we need to reboot the alarm with the power switch and again go through the activation sequences.
We can customize the stand-by time, alarm duration, and movement threshold (sensitivity) from the code. so let’s get into it

Parts

- Seeed studio xiao esp32c3
- MPU-6050 3-Axis Accelerometer and Gyro Sensor
- 500mah 3.7v battery (identical battery with 600mah)
- Slide switch
- Push switch
- Buzzer

Tools

- Glue gun
- Soldering iron
- 3d printer
- wire shrink
- soldering kit
- small gauge wire
- wire cutter”

Link to article