Smart Doorbell
The Smart Doorbell project allows the user to interact with environment with both input and output modules. The Ultrasonic Distance Sensor Module is used to detect if there is a person or a hand in front of the doorbell. If anything is near it, it detects and sends a feedback to script, allowing the user to play a sound with a buzzer.
About Tools and Materials:
SMD Red (Robot Shop)
SMD USB Gateway (Robot Shop)
Buzzer Module (Robot Shop)
Ultrasonic Distance Sensor Module (Robot Shop)
Step 1: Hardware & Software Overview
Project Key Components
The SMD acts as a bridge between the script and the modules. It is responsible for interpreting the commands sent by the script and translating them into actions that read input from the Ultrasonic Distance Sensor Module and play an alert sound with the Buzzer Module.
The Buzzer Module is connected to the system for the most crucial role for the application, that is alerting the user when something is nearby.
Ultrasonic Distance Sensor Module
The Ultrasonic Distance Sensor Module is used to detect if anything is nearby and if there is, how many centimeters away.
The SMD library is at the heart of the application. It communicates with the SMD using a specific communication protocol, sending commands to read the Ultrasonic Distance Sensor Module and play an alert sound with the Buzzer Module.
Project Key Features
Proximity-Based Activation
The project uses the module with the HC-SR04 to detect the surroundings via ultrasonic sound waves. It makes a great way to understand how physics of sound works and also see that it is a way of interacting with environment with such an input sensor.
Adjustable Sensitivity
The user can change the sensivity of the distance check, customizing it to be more sensitive or unresponsive to near surroundings.
Real-time Monitoring
The script can easily provide the real-time distance monitoring if the user add a simple line. It enhances the code and gives more opportunity to monitor the surroundings.
Step 2: Assemble
Getting Started
Hardware Setup
Connect the SMD to the PC or Arduino board using USB Gateway Module or Arduino Gateway Module.
Connect the Ultrasonic Distance Sensor Module and the Buzzer Module to the SMD using an RJ-45 cable.
Make sure that the SMD is powered and all connections are correct.
Project Wiring Diagram
Step 3: Run & Test
Run the Script
Run the script on your computer. This will establish communication with the SMD and initiate control of the Ultrasonic Distance Sensor Module and the Buzzer Module.
Observe Buzzer Activation
Use an object or a hand to trigger the Ultrasonic Distance Sensor Module, if it will detect an obstacle in the specified range, the script will send a signal to the Buzzer Module to alert the user.
Project Codes
Last updated