Proximity Sensor
A sensor that measures the distance
Author: Iubitu Mara
GitHub Project Link: https://github.com/UPB-FILS-MA/project-MaraIubitu.git
Description
A proximity sensor designed for safety and awareness. It accurately detects nearby objects and alerts users visually and audibly through a progressive buzzer and LCD screen. Ideal for navigating tight spaces or vehicles, it offers comprehensive spatial awareness, reducing the risk of accidents.
Motivation
While researching for project ideas, I came across a parking sensor and a distance measuring project and I thought it would be interesting to try and combine these two ideas.
Architecture
Log
Week 6 - 12 May
Got the components for the project and made the documentation part.
Week 7 - 19 May
I did some more research for the hardware and made the KiCad schematics.
Week 20 - 26 May
Hardware
I am using a Pico MCU to recieve the distance measured by the HR-SC04 proximity sensor, while sending the data to an LCD screen. Additionally, the buzzer is connected to the sensor, changing its intensity based on the distance from the outside object.
Schematics
Bill of Materials
Device | Usage | Price |
---|---|---|
Rapspberry Pi Pico W | The microcontroller | 35 RON |
Senzor Ultrasonic de Distanță HC-SR04+ | The distance sensor | 15 RON |
Breadboard | The breadboard | 10 RON |
Wires | The wires | 8 RON |
LCD screen | The screen | 15 RON |
Buzzer | The buzzer | 2 RON |
Resistors | The resistors | 15 RON |
Software
Library | Description | Usage |
---|---|---|
pwm | Pulse-width modulation | Used for controlling the buzzer's sound intensity |
embassy-executor | Asynchronous executor for Rust embedded systems | Used for task scheduling and asynchronous programming |
embassy-rp | Peripheral access library | Used for initializing and interacting with peripherals |
log | Logging facade | Used for logging messages |
embassy-sync | Synchronization primitives | Used for syncronizing asynchronous tasks |
ag-lcd | Display library | Used for writing to the display |