1. Introducció
The KEYESTUDIO Leonardo R3 is a microcontroller development board designed for various electronic projects. It is based on the ATmega32u4 microcontroller, offering integrated USB communication capabilities.
This board provides a robust platform for learning and developing embedded systems, compatible with the Arduino IDE. Its design allows it to function as a Human Interface Device (HID) such as a mouse or keyboard when connected to a computer.

2. Característiques
- Microcontrolador: ATmega32u4
- Vol. Operatiutage: 5V
- Entrada Voltage (recommended): 7-12V
- Pins d'E/S digital: 20 (7 of which can be used as PWM outputs)
- Analog Input Pins: 12
- Velocitat del rellotge: Oscil·lador de cristall de 16 MHz
- Connectivitat USB: Micro USB connection for programming and power
- Característica especial: Built-in USB communication allows the board to act as a mouse or keyboard to a connected computer.
- Certificacions: FCC and CE certified, ensuring environmental friendliness and quality.
3. Contingut del paquet
The package for the KEYESTUDIO Leonardo R3 Microcontroller Development Board typically includes:
- 1 x KEYESTUDIO Leonardo R3 Microcontroller Development Board
- 1 x cable USB
4. Especificacions
| Especificació | Valor |
|---|---|
| Microcontrolador | ATmega32u4 |
| Vol. Operatiutage | 5V |
| Entrada Voltage (recommended) | 7-12V |
| Pins I / O digitals | 20 (7 PWM outputs) |
| Pins d'entrada analògics | 12 |
| Corrent continu per pin d'E / S | 40 mA |
| Corrent continu per pin de 3.3 V. | 50 mA |
| Memòria Flash | 32 KB (ATmega32u4) of which 4 KB used by bootloader |
| SRAM | 2.5 KB (ATmega32u4) |
| EEPROM | 1 KB (ATmega32u4) |
| Velocitat del rellotge | 16 MHz |
| Dimensions (LxWxH) | 2.7 x 2.09 x 0.17 polzades |
| Pes de l'article | 2.08 unces |
| Número de model | KE-0011 |

5. Instruccions de configuració
5.1 Connecting the Board
- Connect the provided USB cable to the micro USB port on the KEYESTUDIO Leonardo R3 board.
- Plug the other end of the USB cable into an available USB port on your computer. The board will power on, and the 'ON' LED indicator should illuminate.
5.2 Installing the Arduino IDE
To program the Leonardo R3 board, you will need the Arduino Integrated Development Environment (IDE). If you do not have it installed, download the latest version from the official Arduino weblloc (www.arduino.cc/en/software).
5.3 Selecting the Correct Board in Arduino IDE
It is crucial to select the correct board type in the Arduino IDE for successful compilation and program transfer.
- Obriu l'IDE d'Arduino.
- Navega a Eines > Junta > Arduino AVR Boards.
- Seleccioneu Arduino Leonardo de la llista.

5.4 Powering the Board
The board can be powered via the USB connection from your computer. Alternatively, it can be powered by an external AC-to-DC adapter or battery connected to the power jack (DC 7-12V).
6. Instruccions de funcionament
6.1 Programació bàsica
Once the board is connected and configured in the Arduino IDE, you can write and upload sketches (programs) to the microcontroller. Refer to the extensive documentation and examples available on the Arduino website for programming guidance.
6.2 Digital and Analog I/O
The Leonardo R3 provides 20 digital input/output pins and 12 analog input pins. These can be used to interface with various sensors, actuators, and other electronic components. Seven of the digital pins support Pulse Width Modulation (PWM) for controlling analog-like outputs.
6.3 Human Interface Device (HID) Functionality
Un avantatge clautage of the Leonardo R3 is its ability to emulate a USB keyboard or mouse. This allows for direct interaction with a computer, enabling projects such as custom game controllers, macro keypads, or specialized input devices without additional drivers.
7. Manteniment
To ensure the longevity and proper functioning of your KEYESTUDIO Leonardo R3 board, follow these maintenance guidelines:
- Manejar amb cura: Avoid dropping the board or subjecting it to physical stress.
- Descàrrega estàtica: Microcontrollers are sensitive to electrostatic discharge. Handle the board by its edges and avoid touching the pins or components directly, especially in dry environments.
- Neteja: Keep the board free from dust, dirt, and moisture. Use a soft, dry brush or compressed air for cleaning.
- Emmagatzematge: Store the board in an anti-static bag or a protective enclosure when not in use.
- Font d'alimentació: Always use a stable power supply within the recommended voltage range (7-12V for external power, 5V via USB).
8. Solució De Problemes
If you encounter issues with your KEYESTUDIO Leonardo R3 board, consider the following troubleshooting steps:
- Placa no reconeguda per l'ordinador:
- Assegureu-vos que el cable USB estigui connectat correctament tant a la placa com a l'ordinador.
- Prova un port USB o un cable USB diferent.
- Verify that the correct board type (Arduino Leonardo) is selected in the Arduino IDE (refer to Section 5.3).
- Check your computer's Device Manager (Windows) or System Information (macOS) to see if the board is listed under Ports (COM & LPT) or USB devices.
- Program Upload Fails:
- Confirm that 'Arduino Leonardo' is selected under Eines > Junta.
- Ensure the correct serial port is selected under Eines > Port. The Leonardo board's port may appear and disappear briefly during reset/upload.
- Check for any syntax errors in your code.
- Disconnect any external components that might interfere with the USB communication during upload.
- La placa no s'encén:
- If using USB power, ensure the USB cable is functional and the computer's USB port is providing power.
- If using external power, verify the power adapter or battery is providing the correct voltage (7-12V DC) and polarity.
- Check for any visible damage to the board or power components.
9. Garantia i Suport
For specific warranty information, please refer to the product packaging or contact KEYESTUDIO customer support directly. General support and resources for Arduino-compatible boards are widely available online through the Arduino community forums and documentation.
For technical assistance or inquiries regarding your KEYESTUDIO Leonardo R3 board, please visit the official KEYESTUDIO weblloc web o contacteu amb els seus canals d'assistència.





