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 #41 background imageLoading...
Page #41 background image
0 V
5 V
The figure shows the activity on pin
13 while the program is running.
The pin starts in
LOW
state and doesnt
output any current. We use
digitalWrite
to set it to
HIGH
and let it output 5 volts
for 500 milliseconds. Finally, we set it back to
LOW
for 500 milliseconds and
repeat the whole process.
Thats it! Youve created your first physical computing project. Youve written
some code, and it makes the world brighter. Your very own digital version of
fiat lux.
17
Admittedly, the status LED doesnt look spectacular. In Chapter 3, Building
Binary Dice, on page 39, well attach real LEDs to the Arduino.
Youll need the theory and skills youve learned in this chapter for nearly every
Arduino project. In the next chapter, youll see how to gain more control over
LEDs, and youll learn how to benefit from more advanced features of the
Arduino IDE.
What If It Doesnt Work?
Choosing the wrong serial port or Arduino type is the most common mistake
when doing the first experiments with an Arduino. If you get an error message
such as Serial port already in use when uploading a sketch, check whether
you have chosen the right serial port from the
Tools > Serial Port
menu. If you
get messages such as Problem uploading to board or Programmer is not
responding, check whether you have chosen the right Arduino board from
the
Tools > Board
menu.
Your Arduino programs, like all programs, will contain bugs. The compiler
will detect typos and syntax errors. Figure 6, The Arduino IDE explains syntax
errors nicely, on page 22 shows a typical error message. Instead of
pinMode
,
we called
pinMod
, and because the compiler didnt find a function with that
name, it stopped with an error message. The Arduino IDE highlights the line,
showing the error with a yellow background, and prints a helpful error mes-
sage.
Other bugs might be more subtle, and sometimes you have to carefully study
your code and use some plain old debugging techniques. (In Debug It! Find,
17.
http://en.wikipedia.org/wiki/Fiat_lux
report erratum discuss
What If It Doesnt Work? 21
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