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 #13 background imageLoading...
Page #13 background image
13
Interacting with the world has two sides. First, the designer must create electronic interface
circuits that allow motors and other devices to be controlled by a low (1-10 mA) current signal
that switches between 0 and 5 V, and other circuits that convert sensor readings into a switched 0
or 5 V signal. Second, the designer must write a program using the set of Arduino commands
that set and read the I/O pins. Examples of both can be found in the Arduino resources section of
the ME2011 web site.
When reading inputs, pins must have either 0 or 5V applied. If a pin is left open or "floating", it will read random
voltages and cause erratic results. This is why switches always have a 10K pull up resistor connected when
interfacing to an Arduino pin.
Note: The reason to avoid using pins 0 and 1 is because those pins are used for the serial communications between
the Arduino and the host computer.
The Arduino also has six analog input pins for reading continuous voltages in the range of 0 to 5
V from sensors such as potentiometers.
6 Programming Concepts
This chapter covers some basic concepts of computer programming, going under the assumption
that the reader is a complete novice.
A computer program is a sequence of step-by-step instructions for the computer to follow. The
computer will do exactly what you tell it to do, no more no less. The computer only knows
what's in the program, not what you intended. Thus the origin of the phrase, "Garbage in,
garbage out".
Program reads
value of pins (1/0)
Board pins
set to +5V/0V
Interface
electronics change
sensor signals into
+5V/0V
digitalRead(4);
10K
PIN 4
+5 V
+5V
0V
Program reads
value of pins (1/0)
Board pins
set to +5V/0V
Interface
electronics change
sensor signals into
+5V/0V
digitalRead(4);
10K
PIN 4
+5 V
+5V
0V
+5V
0V

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