Distance Buzzer Warning
Last updated
Last updated
This project centers around creating a distance-based feedback system using the ACROME Smart Motion Device (SMD) platform. The system incorporates a distance sensor, RGB LED lights, and a buzzer to provide real-time feedback based on the distance of an object from the sensor. The system also includes a graphical user interface (GUI) for users to monitor the sensor readings and adjust distance settings. The RGB lights and buzzer provide visual and auditory signals, respectively, based on the proximity of the object to the sensor.
Key Components:
SMD (Smart Motion Device) The SMD acts as the communication hub, connecting and controlling the distance sensor, RGB lights, and buzzer. It processes sensor data and translates it into corresponding RGB and buzzer feedback, ensuring that the system functions in real-time.
Ultrasonic Distance Sensor The distance sensor measures the distance between itself and nearby objects. This data is continuously sent to the SMD, which then determines the appropriate feedback to provide based on predefined distance thresholds.
RGB LED Module The RGB LED Module displays different colors depending on the distance between the sensor and the object. Colors such as green, yellow, and red are used to indicate different proximity ranges, providing users with an intuitive visual cue for the distance.
Buzzer Module The buzzer module emits sound at varying frequencies based on the object's distance from the sensor. Lower frequencies indicate a larger distance, while higher frequencies signal closer proximity, adding an auditory layer to the feedback.
Project Key Features:
Distance-Based RGB and Buzzer Feedback The system defines three key distance ranges: far, medium, and near. These ranges are associated with different RGB colors and buzzer frequencies.
Far Distance: When an object is far (above a certain threshold), the system shows a green LED and the buzzer is silent.
Medium Distance: As the object gets closer, the LED changes to yellow, and the buzzer emits a low-frequency sound.
Near Distance: For very close objects, the LED turns red, and the buzzer produces a higher-pitched sound.
Real-Time Distance Monitoring The distance sensor continuously measures the object’s proximity, sending this data to the SMD. The system processes this information and updates the RGB lights and buzzer in real time, ensuring immediate feedback for the user.
Customizable Distance Thresholds Users can customize the distance thresholds through a user-friendly GUI. The GUI allows them to input values for the far and medium distance thresholds, which directly affect when the LED and buzzer change states. These settings can be saved and loaded for future use.
User-Friendly Graphical Interface (GUI) The GUI is created using Tkinter, providing real-time updates on distance, RGB color, and buzzer frequency. It also offers fields where users can enter new distance thresholds, ensuring that the system is flexible and adaptable to different environments or applications.
Threaded Operation for Continuous Monitoring The system runs the distance monitoring process in a separate thread, allowing the GUI to remain responsive while the sensor continuously collects data. This ensures smooth operation even as the user interacts with the interface.
Project Wiring Diagram
Workflow:
Distance Monitoring: The system continuously monitors the distance of an object using the distance sensor, and the data is processed in real time.
GUI Interaction: The user can view the real-time data in the GUI and adjust the distance thresholds for the far and medium ranges.
Threshold Customization: Users can input new values for the distance thresholds, apply them, and save these settings for future use.
Conclusion: This project showcases the versatility of the ACROME SMD platform in integrating a distance sensor with RGB lights and a buzzer to provide real-time feedback. The combination of distance-based RGB feedback, customizable thresholds, and a user-friendly GUI makes the system both practical and adaptable. Whether used for safety, automation, or interactive installations, this project highlights the potential of the SMD platform in creating dynamic, sensor-driven environments.