|
|
Número de pieza | SRF04 | |
Descripción | Ultrasonic Range Finger Application Note | |
Fabricantes | Parallax | |
Logotipo | ||
1. SRF04 Hay una vista previa y un enlace de descarga de SRF04 (archivo pdf) en la parte inferior de esta página. Total 5 Páginas | ||
No Preview Available ! 599 Menlo Drive, Suite 100
Rocklin, California 95765, USA
Office: (916) 624-8333
Fax: (916) 624-8003
General: [email protected]
Technical: [email protected]
Web Site: www.parallax.com
Educational: www.stampsinclass.com
Devantech SRF04 Ultrasonic Range Finder
(#28015)
The Devantech SRF04 ultrasonic range finder provides precise, non-contact distance measurements from
about 3 cm (1.2 inches) to 3 meters (3.3 yards). It is very easy to connect to BASIC Stamps or the
Javelin, requiring only two I/O pins.1 The SRF04 library makes this device very simple to use and is an
ideal component for robotics applications.
The SRF04 works by transmitting an ultrasonic (well above human hearing range) pulse and measuring
the time it takes to "hear" the pulse echo. Output from the SRF04 is in the form of a variable-width pulse
that corresponds to the distance to the target.
The SRF04 is designed and manufactured by Devantech, who provides additional technical resources for
the device. Their web site is http://www.robot-electronics.co.uk.
Features
• Voltage – 5 v
• Current – 30 mA Typ. 50mA Max.
• Frequency – 40 kHz
• Max Range - 3 m
• Min Range - 3 cm
• Sensitivity - Detect 3 cm diameter broom handle at > 2 m
w • Input Trigger – 10 uS Min. TTL level pulse
• Echo Pulse - Positive TTL level signal, width proportional to range.
w • Small Size – (1.7 in x .8 in x .7 in height) 43 mm x 20 mm x 17 mm height
w.DataSheet4U1 For a Javelin Stamp application note see www.javelinstamp.com.
.comParallax, Inc. • Devantech SRF04 Ultrasonic Range Finder (#28015) • 10/2003
Page 1
1 page ' -----[ Initialization ]--------------------------------------------------
Setup:
LOW Trigger
DEBUG CLS,
"Devantech SRF04 Demo", CR,
"--------------------", CR,
"Raw...........
", CR,
"Centimeters...
", CR,
"Inches........
"
' -----[ Program Code ]----------------------------------------------------
Main:
DO
GOSUB Get_Sonar
DEBUG CRSRXY, 15, 2, DEC rawDist, CLREOL
' take sonar reading
cm = rawDist / ToCm
DEBUG CRSRXY, 15, 3, DEC cm, CLREOL
' convert to centimeters
inches = cm */ $03EF
DEBUG CRSRXY, 15, 4,
DEC inches / 10, ".", DEC1 inches,
CLREOL
' x 3.937 (to 0.1 inches)
PAUSE 250
LOOP
' delay between readings
END
' -----[ Subroutines ]-----------------------------------------------------
Get_Sonar:
rawDist = 0
FOR samples = 1 TO 5
PULSOUT Trigger, Trig10
#SELECT $STamp
#CASE BS2, BS2E
RCTIME Echo, 1, pWidth
#CASE #ELSE
PULSIN Echo, 1, pWidth
#ENDSELECT
rawDist = rawDist + (pWidth / 5)
PAUSE 10
NEXT
RETURN
' clear measurement
' take five samples
' 10 uS trigger pulse
' measure pulse
' measure pulse
' simple digital filter
' minimum period between
Parallax, Inc. • Devantech SRF04 Ultrasonic Range Finder (#28015) • 10/2003
Page 5
5 Page |
Páginas | Total 5 Páginas | |
PDF Descargar | [ Datasheet SRF04.PDF ] |
Número de pieza | Descripción | Fabricantes |
SRF01 | Ultrasonic range finder | ETC |
SRF02 | Ultrasonic Range Finder | ETC |
SRF02 | Ultrasonic Range Finder Tech | ETC |
SRF04 | Ultrasonic Rangefinger Schematic | ETC |
Número de pieza | Descripción | Fabricantes |
SLA6805M | High Voltage 3 phase Motor Driver IC. |
Sanken |
SDC1742 | 12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters. |
Analog Devices |
DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares, |
DataSheet.es | 2020 | Privacy Policy | Contacto | Buscar |