Posts

Showing posts with the label Ultrasonic Sensor

Arduino - Ultrasonic Sensor

Image
The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet. The operation is not affected by sunlight or black material, although acoustically, soft materials like cloth can be difficult to detect. It comes complete with ultrasonic transmitter and receiver module. Components required Breadboard x 1 (optional) Arduino Uno R3 x 1 Ultrasonic Sensor (HC-SR04) x 1 Jumper x 4 (Female-Male) Procedure Follow the circuit diagram and hook up the components on the breadboard as shown in the image given below. Ultrasonic Sensor 5V -  Arduino VCC Ultrasonic Sensor GND - Arduino GND Ultrasonic Sensor Trigger Pin - Arduino Pin 7 Ultrasonic Sensor  Echo Pin -  Arduino Pin 6   Sketch Open the Arduino IDE software on your computer. Coding in the Arduino language will control your circuit...