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 #115 background imageLoading...
Page #115 background image
ID in line 31. Then we check whether the current distance is less than or
equal to the threshold value that belongs to the current LED. If yes, we change
the LEDs color accordingly. Otherwise, we set its color to white.
Some Fun with Sensors
With an ultrasonic sensor, you can easily detect whether someone is nearby. This
automatically brings a lot of useful applications to mind. You could open a door
automatically as soon as someone is close enough, for example.
Alternatively, you can use advanced technology for pure fun. What about some Hal-
loween gimmicks, such as a pumpkin that shoots silly string whenever you cross an
invisible line?
a
It could be a nice gag for your next party, and you can build it using
the PING))) sensor.
a.
http://www.instructables.com/id/Arduino-controlled-Silly-String-shooter/
Connect the Arduino to your computer and upload the sketch we developed
in the previous section. Start the Chrome App and move your hand back and
forth in front of the PING))) sensor. The display on the screen will look exactly
like the display in a typical car.
Sensors are an exciting topic, and in this chapter youve learned the basics
of working with both analog and digital sensors. In the next chapter, well
build on that foundation and connect the Arduino to an accelerometer to
create a motion-sensing game controller.
What If It Doesnt Work?
See What If It Doesnt Work?, on page 59, and make sure that youve connected
all parts properly to the breadboard. Take special care with the PING))) and
the TMP36 sensors, because you havent worked with them before. Make sure
youve connected the right pins to the right connectors of the sensors.
In case of any errors with the softwareno matter whether its JavaScript or
Arduino codedownload the code from the books website and see whether
it works.
If you have problems with serial communication, double-check whether youve
used the right serial port and the right Arduino type. Remember to adjust
the path to your Arduinos serial port in the first line of
dashboard.js
. Also check
whether the baud rate in the JavaScript code matches the baud rate youve
used in the Arduino code.
report erratum discuss
What If It Doesnt Work? 97
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