1c - Slide - Arduino and ATmega328p Architecture
1c - Slide - Arduino and ATmega328p Architecture
1c - Slide - Arduino and ATmega328p Architecture
board
www.arduino.cc
What do you need to start working with
Arduino?
1. Arduino board
2. USB cable
• 6 analog inputs
(can be used as digital outputs).
• Power
Shields
Shields connect to the I/O board to extend it's functionality.
More Shields…
Communication shields - XBee, Ethernet, and Wifi
Modules
Modules send serial data strings to the Arduino.
RFID Module
Sensors and Modules
Shields aren't the only way to extend an Arduino board - you
can hook sensors to it!
Sensors
Photoresistor, infared, force sensitive resistor, Hall effect (varies its output
voltage in response to a magnetic field), Piezo, tilt sensor..
Arduino Uno Board
Overview
Arduino Uno/ATmega328 Technical Specifications
Microcontroller ATmega328
Operating Voltage 5 V
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 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which 2 KB used by bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MH
Components of the Arduino
• ATMega168/328.
• Hardware (Board).
Necessary parts for any circuit
• ATMega168/328.
• ATmega16u2 replaces
FT232RL for USB-serial
communication / Arduino
Uno R3
Digital or Analog
• Digital – may take two values only: ON or OFF (1 or 0 / binary signal)
• Analog – has many (infinite) values (continuous signal)
• Output pins can provide 40 mA of current
Input voltage to the Arduino board
The power pins are as follows:
• Vin. The input voltage to the Arduino board when it's using an external
power source (as opposed to 5 volts from the USB connection or other
regulated power source). You can supply voltage through this pin, or, if
supplying voltage via the power jack, access it through this pin. (7v-12v)
• 5V. The regulated power supply used to power
the microcontroller and other components on
the board. This can come either from Vin via
an on-board regulator, or be supplied by USB
or another regulated 5V supply.
• 3V3. A 3.3 volt supply generated by the on-
board FTDI chip. Maximum current draw is 50
mA.
• GND. Ground pins.
Serial Communication
• RX blinks when the Arduino is receiving data.
• TX blinks when the Arduino is transmitting data.
Serial data transfer with Arduino UNO
• Universal asynchronous
receiver/transmitter
(UART)
• Serial Peripheral Interface
(SPI)
• Inter-integrated Circuit
(I2C) or Two-Wire
Interface (TWI)
Serial Communication - UART
• All Arduino boards have at least one serial port (also known as a
UART). It communicates on digital pins 0 (RX) and 1 (TX) as well as
with the computer via USB.
• Used for communication between the Arduino board and a computer
or other devices.
Serial Communication (other)
SPI I2C
Software Serial
• It is possible to have multiple software serial ports (UART)
with speeds up to 115200 bps.
• If using multiple software serial ports, only one can receive
data at a time.