A proximity alarm device that emits a varying frequency buzz depending on the distance of an object to the devices ultrasonic distance sensor
Explore the docs »
View Demo
Table of Contents
Instructions for building the device yourself can be found in the design document pdf. Inside, you will find circuit diagrams, part names and cost, as well as an assembly guide.
- STM32CubeIDE
- STM32F401RE nucleo development board
- Breadboard
- Wires
- HCSR04 UltraSonic Distance Sensor
- Buzzer
The device works by converting the analog voltage signals returned by the HCSR04 distance sensor when an object is placed infront of it to float distance values. These distance values are then used to determine the magnitude and frequency of the noises emitted by the buzzer. This conversion is done using input capture and PwM