EasyManuals Logo

Arduino uno User Guide

Arduino uno
27 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 #7 background imageLoading...
Page #7 background image
7
To test whether the LED works, temporarily
disconnect the wire from pin 2 on the Arduino
board and touch to the 5V power bus. The LED
should light up. If not, try changing the orientation
of the LED. Place the wire back in pin 2.
On the LED, current runs from the anode (+) to the
cathode (-) which is marked by the notch. The
circuit you just wired up is represented in schematic
form in the figure to the right.
Create and run this Arduino program
void setup()
{
pinMode(2,OUTPUT);
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
}
void loop()
{}
Did the LED light up for one second? Push the Arduino reset button to run the program again.
Now try this program, which will flash the LED at 1.0 Hz. Everything after the // on a line is a
comment, as is the text between „/*‟ and „*/‟ at the top. It is always good to add comments to a
program.
/*---------------------------
Blinking LED, 1.0 Hz on pin 2
----------------------------*/
PIN 2
Gnd
330

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