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 #36 background imageLoading...
Page #36 background image
Although using the IDE is easy, you might run into problems or want to look
up something special. In such cases, take a look at the Help menu. It points
to many useful resources at the Arduinos website that provide not only quick
solutions to all typical problems, but also reference materials and tutorials.
Hello, World!
To get familiar with the IDEs most important features, well create a simple
program that makes an light-emitting diode (LED) blink. An LED is a cheap
and efficient light source, and the Arduino already comes with several LEDs.
One LED shows whether the Arduino is currently powered, and two other
LEDs blink when data is transmitted or received via a serial connection.
In our first little project, well make the Arduinos status LED blink. The status
LED is connected to digital IO pin 13. Digital pins act as a kind of switch and
can be in one of two states: HIGH or LOW. If set to HIGH, the output pin is
set to 5 volts, causing a current to flow through the LED so it lights up. If set
back to LOW, the current flow stops, and the LED turns off. You dont need
to know exactly how electricity works at the moment, but if youre curious,
take a look at Current, Voltage, and Resistance, on page 239.
Open the IDE and enter the following code in the editor:
Welcome/HelloWorld/HelloWorld.ino
const unsigned int LED_PIN = 13;
Line 1
const unsigned int PAUSE = 500;
-
-
void setup() {
-
pinMode(LED_PIN, OUTPUT);
5
}
-
-
void loop() {
-
digitalWrite(LED_PIN, HIGH);
-
delay(PAUSE);
10
digitalWrite(LED_PIN, LOW);
-
delay(PAUSE);
-
}
-
Chapter 1. Welcome to the Arduino 16
report erratum discuss
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