KEYESTUDIO KE-0011

KEYESTUDIO Leonardo R3 Microcontroller Development Board User Manual

Model: KE-0011

1. Introduction

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.

KEYESTUDIO Leonardo R3 Microcontroller Development Board with USB Cable
Figure 1: KEYESTUDIO Leonardo R3 Microcontroller Development Board and included USB cable.

2. Features

  • Microcontroller: ATmega32u4
  • Operating Voltage: 5V
  • Input Voltage (recommended): 7-12V
  • Digital I/O Pins: 20 (7 of which can be used as PWM outputs)
  • Analog Input Pins: 12
  • Clock Speed: 16 MHz crystal oscillator
  • USB Connectivity: Micro USB connection for programming and power
  • Special Feature: Built-in USB communication allows the board to act as a mouse or keyboard to a connected computer.
  • Certifications: FCC and CE certified, ensuring environmental friendliness and quality.

3. Package Contents

The package for the KEYESTUDIO Leonardo R3 Microcontroller Development Board typically includes:

  • 1 x KEYESTUDIO Leonardo R3 Microcontroller Development Board
  • 1 x USB Cable

4. Specifications

SpecificationValue
MicrocontrollerATmega32u4
Operating Voltage5V
Input Voltage (recommended)7-12V
Digital I/O Pins20 (7 PWM outputs)
Analog Input Pins12
DC Current per I/O Pin40 mA
DC Current for 3.3V Pin50 mA
Flash Memory32 KB (ATmega32u4) of which 4 KB used by bootloader
SRAM2.5 KB (ATmega32u4)
EEPROM1 KB (ATmega32u4)
Clock Speed16 MHz
Dimensions (LxWxH)2.7 x 2.09 x 0.17 inches
Item Weight2.08 ounces
Model NumberKE-0011
Labeled diagram of KEYESTUDIO Leonardo R3 board components
Figure 2: Detailed component layout and pin functions of the KEYESTUDIO Leonardo R3 board.

5. Setup Instructions

5.1 Connecting the Board

  1. Connect the provided USB cable to the micro USB port on the KEYESTUDIO Leonardo R3 board.
  2. 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 website (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.

  1. Open the Arduino IDE.
  2. Navigate to Tools > Board > Arduino AVR Boards.
  3. Select Arduino Leonardo from the list.
Screenshot of Arduino IDE with 'Arduino Leonardo' board selected
Figure 3: Selecting 'Arduino Leonardo' in the Arduino IDE Tools menu.

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. Operating Instructions

6.1 Basic Programming

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.

Video 1: A brief demonstration of the KEYESTUDIO Leonardo R3 board in operation, controlling multiple LEDs on a breadboard.

6.3 Human Interface Device (HID) Functionality

A key advantage 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. Maintenance

To ensure the longevity and proper functioning of your KEYESTUDIO Leonardo R3 board, follow these maintenance guidelines:

  • Handle with Care: Avoid dropping the board or subjecting it to physical stress.
  • Static Discharge: Microcontrollers are sensitive to electrostatic discharge. Handle the board by its edges and avoid touching the pins or components directly, especially in dry environments.
  • Cleanliness: Keep the board free from dust, dirt, and moisture. Use a soft, dry brush or compressed air for cleaning.
  • Storage: Store the board in an anti-static bag or a protective enclosure when not in use.
  • Power Supply: Always use a stable power supply within the recommended voltage range (7-12V for external power, 5V via USB).

8. Troubleshooting

If you encounter issues with your KEYESTUDIO Leonardo R3 board, consider the following troubleshooting steps:

  • Board Not Recognized by Computer:
    • Ensure the USB cable is securely connected to both the board and the computer.
    • Try a different USB port or USB cable.
    • 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 Tools > Board.
    • Ensure the correct serial port is selected under Tools > 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.
  • Board Not Powering On:
    • 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. Warranty and Support

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 website or contact their support channels.