Hardware Documentation
Overview
The hardware platform is designed for scanning and detecting objects using ultrasonic sensors. It includes a platform for placing objects and two ultrasonic sensors that can be triggered from the frontend. The system includes a status indication light and a buzzer for feedback during the scanning process.
Hardware Components
🔊 Ultrasonic Sensors
Two ultrasonic sensors are placed on the hardware platform. These sensors are responsible for detecting objects passing through the scanning area.
- First Sensor: Detects when an object enters the scan zone. This triggers the buzzer and turns on the status light.
- Second Sensor: Detects when an object exits the scan zone. This triggers the buzzer again and turns off the status light.
💡 Status Light
A status light is provided to give visual feedback to the user. It turns on when an object is detected by the first sensor and turns off once the second sensor detects the object leaving the scan zone.
🔔 Buzzer
A buzzer is used to provide audible feedback during the scanning process. When an object enters the scan zone, the buzzer sounds. It also beeps again once the object passes through the second sensor, indicating the scanning process is complete.
Operation Workflow
The system works by detecting objects in two stages using the ultrasonic sensors. Here's how the process works:
- An object enters the scan zone, detected by the first ultrasonic sensor.
- The buzzer sounds and the status light turns on.
- The object moves through the scan zone, and the second ultrasonic sensor detects it exiting.
- The buzzer sounds again and the status light turns off, indicating the end of the scan.
Hardware Mode Control
The hardware can be controlled through the frontend. The frontend triggers the scanning process and activates the sensors via the hardware mode.
- Activate Sensors: The sensors can be activated from the frontend to begin scanning.
- Control Status Light: The status light is controlled automatically based on sensor input.
- Buzzer Feedback: The buzzer is automatically triggered when the object enters or exits the scanning zone.
Video Demonstration
Below is a video demonstration showing how the scanning process works: