EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #99 background imageLoading...
Page #99 background image
Figure 16Photo of PING))) basic circuit
The real action happens in
loop
, where we actually implement the PING)))
protocol. According to the data sheet,
2
we can control the sensor using pulses,
and it returns results as variable-width pulses, too.
In lines 9 to 11, we set the sensors signal pin to
LOW
for 2 microseconds to
bring it to a proper state. This will ensure clean
HIGH
pulses that are needed
in the next steps. (In the world of electronics, you should always be prepared
for jitters in the power supply.)
Finally, its time to tell the sensor to do some work. In lines 13 to 15, we set
the sensors signal pin to
HIGH
for 5 microseconds to start a new measurement.
Afterward, we set the pin to
LOW
again, because the sensor will respond with
a
HIGH
pulse of variable length on the same pin.
2.
http://www.parallax.com/downloads/ping-ultrasonic-distance-sensor-product-guide
report erratum discuss
Measuring Distances with an Ultrasonic Sensor 81
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

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

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals