Arduino Leonardo

Introduction

Arduino Leonardo is one of the members of Arduino family. It is a microcontroller board based on the ATmega32u4, and it has inbuilt USB connection which eliminate the requirement of secondary processor, it is an open source microcontroller. Arduino Leonardo has some advanced feature which is not available in previous boards of Arduino family. Most exciting feature of Leonardo board is it directly connects to PC that means it can operate as an actual USB device. The Leonardo board can appear to a computer as an HID (human interface device) such as mouse or a keyboard. The operating voltage of Arduino Leonardo Board is 5volts. It includes 20 digital input and out pins. There are total 7 PWM output on Leonardo board.

The microcontroller of a board can be programmed with the help of C and C++ programming language using a standard AIP which is also known as Arduino Language. The Arduino projects provide an Integrated Development Environment (IDE). Aiming to provide a low-cost and easy way for beginners and professionals to create devices that interact with their environment using sensors and actuators Leonardo is a great choice.

Arduino leonardo specification

Microcontroller ATmega32u4
Operating Voltage 5V
Input Voltage (Recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 20
PWM Channels 7
Analog Input Channels 12
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega32u4) of which 4 KB used by boot loader
SRAM 2.5 KB (ATmega32u4)
EEPROM 1 KB (ATmega32u4)
Clock Speed 16 MHz
Length 68.6 mm
Width 53.3 mm
Weight 20 g

 

Arduino leonardo pin configuration

Digital input and output pins

Serial: 0 (Rx) and 1 (TX)

TWI: 2 (SDA) and 3 (SCL)

Support TWI communication using the Wire library.
External Interrupts: 3 (interrupt 0), 2 (interrupt 1), 0 (interrupt 2), 1 (interrupt 3) and 7 (interrupt 4)- These pins can be configured to trigger an interrupt on a low value, an increasing or diminishing edge, or a change in value.

PWM: 3, 5, 6, 9, 10, 11, and 13

PWM refers to pulse with modulation. It provides 8-bit PWM output with the analog Write function.

SPIon the ICSP header

These pins support SPI communication using the SPI library. SPI pins are not connected to any of the digital input and output pins as they are on the UNO board.

LED: 13

In Leonardo board there is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it’s off.

Analog Inputs: A0-A5, A6 — A11 (on digital pins 4, 6, 8, 9, 10, and 12)

AREF-Reference voltage for the analog inputs.

Reset- Bring this line LOW to reset the microcontroller.

Advantages of arduino leonardo

APPLICATIONS OF ARDUINO LEONARDO