Ping Ultrasonic Range Finder
The SEN136B5B is an ultrasonic range finder from Seeedstudio. It detects the distance of the closest object in front of the sensor (from 3 cm up to 400 cm). It works by sending out a burst of ultrasound and listening for the echo when it bounces off of an object. It pings the obstacles with ultrasound. The Arduino board sends a short pulse to trigger the detection, then listens for a pulse on the same pin using the pulseIn() function. The duration of this second pulse is equal to the time taken by the ultrasound to travel to the object and back to the sensor. Using the speed of sound, this time can be converted to distance.
Hardware Required
Arduino Board
hook-up wires
Circuit
The 5V pin of the SEN136B5B is connected to the 5V pin on the board, the GND pin is connected to the GND pin, and the SIG (signal) pin is connected to digital pin 7 on the board.
Schematic
Code
See Also
pinMode()
pulseIn()
ADXL3xx - Read an ADXL3xx accelerometer.
Knock - Detect knocks with a piezo element.
Memsic2125 - Two-axis accelerometer.
Last revision 2015/07/29 by SM