- Arduino Nano - 1
- Arduino Nano USB Cable – 1
- Ultrasonic Sensor Module HC-SR04 - 1
- 9v Battery -1
- Battery snapper -1
- B20 Buzzer-1
- Jumper Wire (Male to Male) - 20 pcs
- Jumper wire (Male to Female) - 20 pcs
- Mini Rocker switch-1
- 830 pt. Breadboard - 1
Introduction
In this project, we have used an ultrasonic sensor and buzzer with Arduino Nano to prevent blind people from being hit by an obstacle up in the air which cannot be detected by their stick.
HARDWARE REQUIRED
- Arduino Nano - 1
- Arduino Nano USB Cable – 1
- Ultrasonic Sensor Module HC-SR04 - 1
- 9v Battery -1
- Battery snapper -1
- B20 Buzzer-1
- Jumper Wire (Male to Male) - 20 pcs
- Jumper wire (Male to Female) - 20 pcs
- Mini Rocker switch-1
- 830 pt. Breadboard - 1
SOFTWARE REQUIRED
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download :https://www.arduino.cc/en/Main/Software
SPECIFICATIONS
HC SR-04 Ultrasonic Sensor Module
The HC-SR04 ultrasonic sensor uses sonar to measure the distance to an object. It offers excellent range accuracy and stable readings in an easy-to-use package. Its operation is not affected by sunlight or black material like sharp range finders are (soft materials like cloth can be difficult to detect). Module main technical parameters.
- Working Voltage: 5V(DC).
- Static Current: Less than 2mA.
- Output Signal: Electric frequency signal, high-level 5V, low-level 0V. Sensor Angle: Not more than 15 degrees.
- Detection Distance: 2 to 450 cm.
- High Precision: Up to 0.3cm.
Arduino Nano
CIRCUIT CONNECTION
- Connect one GND pin of Arduino Nano with the GND of HC-SR04.
- Connect 5V of Arduino Nano with the Vcc pin of HC-SR04.
- Connect echo pin of HC-SR04 to the D3 pin of Arduino Nano.
- Connect the trig pin of HC-SR04 to the D2 pin of Arduino Nano.
- Connect D12 pin of arduino Nano to buzzer’s negative pin.
- Connect the A3 pin of Arduino Nano to the buzzer’s positive pin.
- Cut the positive wire of battery snapper into two parts and solder a switch between them.
- Connect the red wire with the VIN pin of Arduino Nano.
- Connect the black wire with any of the left GND pins on Arduino Nano.
CODE
Click to see code here:
https://drive.google.com/open?id=1oxuRh3Ps0u8oEGEAFFZkl-taMUf230-F
WORKING AND OUTPUT
Welcome to the Arduino Based project which consists of buzzer and Ultrasonic Sensor Module. The basic working principle of the Ultrasonic Sensor module is being described here. This Ultrasonic Sensor sends a signal through a trigger pin which when blocked by an obstacle returns high at the echo pin.
The time taken between this interval is used to calculate the distance in cm.
The buzzer produces a sound that keeps on increasing as the distance from obstacle gets less after a certain set minimum distance limit.