How To Read Digital Ultrasonic Range Sensors; Supported Ultrasonic Sensors; How To Connect Your Ultrasonic Range Sensor - Raspberry Pi RoboPi User Manual

Hide thumbs Also See for RoboPi:
Table of Contents

Advertisement

RoboPi v1.00

How to Read Digital Ultrasonic Range Sensors

The RoboPi firmware implements preliminary support ultrasonic range sensors.
All supported ultrasonic distance sensors will use a generic interface
RoboPiLib:
int
readDistance(int ch)
RoboPiObj:
readDistance(ch) will return the distance to the nearest object in millimeters.

Supported Ultrasonic Sensors:

HC-SR04
PARALLAX_PING
SEEDSTUDIO_136B

How to connect your ultrasonic range sensor:

HC-SR04 pin
Vcc
Trig
Echo
GND
Ping pin
5V
SIG
GND
Seeedstudio 136B pin
5V
SIG
GND
http://Mikronauts.com
User Manual v0.85
tested, working
not tested, should function
not tested
RoboPi Pin
Servo header red wire (any of 24 servo three pin headers)
10 pin female header corresponding to selected pin
Servo header white wire
Servo header black wire
RoboPi Pin
Servo header red wire
Servo header white wire
Servo header black wire
RoboPi Pin
Servo header red wire
Servo header white wire
Servo header black wire
Copyright 2014 William Henning
(use any of 24 servo three pin headers)
(use any of 24 servo three pin headers)
(use any of 24 servo three pin headers)
27
2014-01-27

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RoboPi and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents