Iot-Arduino Board
Iot-Arduino Board
• What is Arduino?
• Arduino Terminology
• Arduino Type
• Arduino UNO R3
Terminology Description
The I/O Board is the "brain" of the operation (main
I/O Board
microcontroller you program it from your computer).
A Shield is a device that plugs into an I/O Board. These
Shield
extend the capabilities of the I/O Board.
Sketch A Sketch is a program written for the board and shields.
Sensor components (Gas, etc.)
Module serial data (GPS module, etc.).
Pin an input or output connected to something.
values have the resolution of 0 to 1024, and in terms of
Analog
voltage the 5 volts will be 1024.
Digital value is either HIGH or LOW.
XBee Shield
Bluetooth Module
GPS Module
Component Specification
Microcontroller ATmega328P
Operating voltage 5V
Input voltage (recommended) 7 – 12 V
Input voltage (limits) 6 – 20 V
Digital I/O pins 14 (of which 6 provide PWM output)
Analog input pins 6
DC current per I/O pin 20 mA
Flash memory 32 KB
SRAM 2 KB
EEPROM 1 KB
Clock speed 16 MHz
Weight 25 g
Structure
(The elements of Arduino (C++) code)
% (remainder) * (multiplication)
Arithmetic Operators + (addition) - (subtraction)
/ (division) = (assignment operator)
& (bitwise and) << (bitshift left)
Bitwise Operators >> (bitshift right) ^ (bitwise xor)
| (bitwise or) ~ (bitwise not)
! (logical not) && (logical and)
Boolean Operators
|| (logical or)
!= (not equal to) < (less than)
Comparison Operators <= (less than or equal to) == (equal to)
> (greater than) > = (greater than or equal to)
%= (compound remainder) &= (compound bitwise and)
*= (compound multiplication) ++ (increment)
Compound Operators += (compound addition) -- (decrement)
-= (compound subtraction) /= (compound division)
^= (compound bitwise xor) |= (compound bitwise or)
Structure
(The elements of Arduino (C++) code)
break continue
do …while else
Control Structure for goto
if return
switch…case while
#define (define) #include (include)
Further Syntax /* */ (block comment) // (single line comment)
; (semicolon) {curly braces}
Pointer Access Operators & (reference operator) * (dereference operator)