Session 1 Arduino
Session 1 Arduino
EMBEDDED SYSTEM
Arduino Board
Arduino Board “Strong Friend” Created in Ivrea, Italy in 2005 by
Massimo Banzi & David Cuartielles &Tom Igole &David Mellis
& Gianluca Martino.
it’s an Open Source Hardware.
Projects with arduino
Introduction
Not long ago, working on an electronic circuit to perform a •
specific function meant building a complex electronic design
consist of resistors, capacitors, and coils
Data
Central memory
processing
unit ( Volatile
memory)
ROM
Program
memory
(Non volatile
memory)
Definition of variable
A variable is a name given to a storage area that our programs
can manipulate.
Each variable in C has a specific type, which determines the
size and layout of the variable's memory.
the range of values that can be stored within that memory and
the set of operations that can be applied to the variable.
Variable
RAM
Variable naming conditions
The name of a variable can be composed of •
letters, digits, and the underscore character. It
must begin with either a letter or an underscore.
Upper and lowercase letters are distinct because
C is case-sensitive
Memory
The memory consist of some locations each •
location called byte. •
byte consist of 8 bit each bit can be zero or one •
bit
byte
ROM RAM
basic variable types(data types)
1-bool (1bit) - simple logical true/false
2-byte (8 bit) - unsigned number from 0-255 •
3-char (8 bit) - signed number from -128 to 127 •
4-unsigned char (8 bit) - same as 'byte’.
5-word (16 bit) - unsigned number from 0-65535 •
6-unsigned int (16 bit)- the same as 'word'. Use 'word' instead for clarity and brevity •
7-int (16 bit) - signed number from -32768 to 32767.
8-unsigned long (32 bit) - unsigned number from 0-4,294,967,295. •
9- long (32bit) - signed number from -2,147,483,648 to 2,147,483,647 •
10-float (32 bit) - signed number from -3.4028235E38 to3.4028235E38.
Bread board
A breadboard is a rectangular plastic board with a bunch of tiny
holes in it.
These holes let you easily insert electronic components to
prototype.
Explain the breadboard
inside of the breadboard is made up of sets of five metal clips. This
means that each set of five holes forming a half column- (columns A–E
or columns F–J) is electrically connected.
For example, that means hole A1 is electrically connected to holes B1,
C1, D1, and E1. It is not connected to hole A2, because that hole is in
a different row, with a separate set of metal clips. It is also not
connected to holes F1, G1, H1, I1, or J1, because they are on the
other "half" of the breadboard—the clips are not connected across the
gap in the middle.
The LED (light emitting diode)
Arduino code