Salta al contenuto
Note per Studenti Arduino Platform Report

Arduino Platform

In questa pagina 7

What Arduino is

Arduino UNO

Main features (as listed on the slide):

Item Value
Microcontroller ATMega328P
Digital I/O pins 14 (numbered 0-13)
Analog input pins 6 (numbered 0-5, i.e. A0-A5)
"Analog output" pins 6, numbers 3, 5, 6, 9, 10, 12 as written on the slide
Programming connector ICSP (In-Circuit Serial Programming)
Other connectors one USB connector, one power plug
Controls one reset button

Caution on the "analog output" pins: the "analog output" is obtained by PWM (Pulse Width Modulation, see Lab 8 - Analog Output and Sensors with ArduinoLaboratory 8 covers digital input modes, PWM analog output with analogWrite (LED fading), the 10-bit analogRead input, the map and constrain functions, trimmer and photoresistor exercises, the LM35 temperature sensor and two additional exercises (hysteresis and potentiometer-controlled data logger).Lab 8 - Analog Output and Sensors with Arduino →). The list printed on this slide (3, 5, 6, 9, 10, 12) differs from the PWM pins stated in Lab 8, which are 3, 5, 6, 9, 10 and 11. The pinout drawing on the slides (PWM pins marked with a "~" and a tilde wave symbol) shows PWM on 3, 5, 6, 9, 10, 11; pin 12 in the lecture slide is most likely a typo for 11. Use the Lab 8 list.

The UNO is shown on the slides in five views:

  1. a photograph of the board, with the USB connector (type B) on the left, the DC power plug in the lower left, the reset button at the top left, the digital header on the top edge (pins 0-13, GND, AREF, SDA, SCL) and the power/analog header on the bottom edge;
  2. the electrical schematic (Arduino UNO Rev3), which contains the 5 V and 3.3 V regulators, the USB-to-serial section, the 16 MHz crystal and the ATMEGA328P-PU itself (illegible at this resolution in detail, so not transcribed);
  3. the PCB layout (top copper, with the four mounting holes MH1-MH4);
  4. a 3D rendering of the board;
  5. the UNO pinout drawing (see below).

Pinout drawing (UNO PINOUT sheet)

Elements legible on the sheet:

ATMega328P block diagram

The slide reproduces the internal architecture of the microcontroller. Blocks, all connected to an 8-bit data bus:

  • Program Counter and Flash Program Memory, followed by the Instruction Register and the Instruction Decoder, which produces the control lines;
  • Status and Control;
  • 32 x 8 General Purpose Registers, feeding the ALU;
  • Data SRAM and EEPROM;
  • Direct Addressing and Indirect Addressing paths from the instruction register / registers to the data space;
  • peripheral blocks: Interrupt Unit, SPI Unit, Watchdog Timer, Analog Comparator, I/O Module 1, 2, ..., n and I/O Lines.

Arduino Mega

Shown only as a photograph of the board (the slide gives no numeric specification; the markings in the picture read ARDUINO MEGA 2560). It is a larger board with a much larger microcontroller and extra headers along the right side (digital pins 22-53).

Arduino Micro

Item Value
Microcontroller ATMega32U4
Digital I/O pins 20
Analog input pins 12
"Analog output" (PWM) pins 7
Connectors micro USB, ICSP
Controls reset button

Shields

  • Shields are boards that add functionality to the Arduino.
  • They have a standard format that matches the pinout of the Arduino UNO, so they plug on top of the board.

Examples shown on the slides (one photograph each, with no technical data):

Shield What the photograph shows
LCD Shield 16-column display with six push buttons (SELECT, LEFT, UP, DOWN, RIGHT, RST) and a contrast trimmer
Motor Shield board with screw/connector blocks for motors
Ethernet Shield RJ45 Ethernet jack and a micro-SD card slot
Data Logger Shield SD card slot, battery holder for the real-time clock, prototyping area
GSM Shield SIM900 module with external antenna, audio jacks

(The GSM shield is the link with cellular technologies of Data Transmission Technologies - Wired, Wireless, LAN and WANSurvey of the data transmission technologies used to connect measurement and IoT nodes, from local ones (RFID, NFC, Bluetooth, WiFi, ZigBee) to wide-area ones (LoRa, SigFox, GSM/GPRS, UMTS, LTE, LTE-M, NB-IoT, 5G), with frequencies, ranges and bit rates.Data Transmission Technologies - Wired, Wireless, LAN and WAN →; the Ethernet shield with wired LANs.)

Where this is used in the course

Versione ripasso

Teoria collegata