Site icon AranaCorp

Arduino UNO microcontroller overview

The Arduino UNO board is the most robust and widely used Arduino microcontroller. Ideal for starting to learn electronics and programming.

Microcontroller features

The Arduino UNO microcontroller uses the ATmega328P microprocessor. This processor operates at a clock frequency of 16 MHz. It has 2 kB RAM, 1 kB EEPROM and 32 kB Flash memory (for programming and data logging).

  • CPU: ATmega328P
  • (AVR 8-bit)
  • Voltage : 5V
  • Flash : 32 kB
  • RAM : 2 kB
  • EEPROM : 1 kB
  • Clock speed : 16MHz
  • WiFi : No
  • Bluetooth : No
  • SD : No

Power supply

The Arduino UNO microcontroller operates over a voltage range of 7-12V, thanks to its on-board voltage regulator, while the microprocessor operates at 5V. In normal operation, the microcontroller consumes up to 45mA (if no power is supplied) and can accept a current of 20mA (absolute maximum 40mA) on each of its IO pins. There is a 200mA limit for the whole board.

Pinout

Basic code and pin identification

To use the input/output pins in the code, simply use the labels present on the board, i.e. A0-A5 and 0-13. Pins A0, A1, A2, A3, A4 and A5 can also be replaced by 14, 15, 16, 17, 18 and 19 respectively. For your information, analog pins can also be used as digital I/Os.

const int analogPin=A0; // broches A0-A5 ou 14-19
const int digitalInPin=2; // broches 0-13 et 14-19
const int digitalOutPin=4; // broches 0-13 et 14-19
const int pwmPin=3; // broches 3 5 6 9 10 11

int analogVal=0;
int digitalState=LOW;
int pwmVal=250;

void setup() {
  Serial.begin(9600); //broches 0(Rx) et 1(Tx)
  
  pinMode(analogPin,INPUT_PULLUP); // broches 0-13 et 14-19, Argument OUTPUT, INPUT, INPUT_PULLUP
  pinMode(digitalInPin,INPUT);
  pinMode(digitalOutPin,OUTPUT);
  pinMode(pwmPin,OUTPUT);
}

void loop() {
 analogVal=analogRead(analogPin); // broches A0-A5 ou 14-19, return int
 digitalState=digitalRead(digitalInPin); // broches 0-13 et 14-19, return boolean
 digitalWrite(digitalOutPin,HIGH); //broches 0-13 et 14-19, valeur LOW(0) ou HIGH(1)
 analogWrite(pwmPin,pwmVal);// broches 3 5 6 9 10 11, valeur 0-255
}

Summary of features

Microcontrôleur 
Nom:Arduino UNO
Marque:Arduino
Caractéristiques 
CPU:ATmega328P
Tension d’alimentation :7-12V
Tension logique:5V
E/S digitales:14
Entrées analogiques:6
Flash:32kB
SRAM:2kB
EEPROM:1kB
Fréquence d’horloge:16 MHz
Wifi:No
Bluetooth:No
SD card:No
Touch:No
UART/SPI/I2C/I2S:Yes/Yes/Yes/No

How to get started

Exit mobile version