Electronics

Keyestudio Pro Micro ATmega32U4 3.3V/16MHz Development Board KS0249

AED 87.95

1

Description

The Keyestudio PRO MICRO is a compact and powerful microcontroller, with the "ATmega32U4" MCU at its core, offering advanced functionality for modern applications. Its onboard USB interface enables seamless PC connection, serving as a configurable keyboard or mouse. Supporting multiple power options and operating at 3.3V, it the PRO MICRO features the ATMEGA32U4-MU with built-in USB communication, eliminating the need for a secondary processor. Its user-friendly design facilitates easy integration into everyday objects, With its diverse range of I/O pins and comprehensive power options, the Keyestudio PRO MICRO is a reliable and versatile microcontroller board, suited for an extensive array of innovative projects and applications.

 

Package Includes:

  • 1 x Keyestudio PRO MICRO
  • 1 x Black Micro USB cable 1m 
  • 2 x Yellow Pin headers 

 

Features:

  1. Compact Size: The board is smaller in size, making it suitable for projects with space constraints or portable applications.
  2. MCU Core: Powered by the "ATmega32U4" MCU, providing enhanced performance and processing capabilities.
  3. USB Interface: Equipped with an embedded USB interface for seamless PC connectivity, enabling configuration as a keyboard or mouse.
  4. Power Options: Supports multiple power options, including micro USB and RAW GND interface (DC 7-9V), providing flexibility in power supply.
  5. Operating Voltage: Operates at a stable 3.3V, ensuring consistent and reliable performance.
  6. Built-in USB Communication: The ATMEGA32U4-MU features built-in USB communication, eliminating the need for an additional USB-Serial chip.
  7. Versatility: Can be easily configured for various applications, offering adaptability to meet project requirements.
  8. User-Friendly Integration: Designed for easy integration into everyday objects, enabling interactive projects and innovative possibilities.
  9. Customizable Physical Design: The absence of welded pin headers allows users to solder the pin headers themselves, tailoring the board's physical layout.

 

Description:

The Keyestudio PRO MICRO is a powerful microcontroller with enhanced functionality, akin to the Leonardo but in a smaller form factor. At its core lies the advanced "ATmega32U4" MCU, providing optimal performance for a diverse range of projects. Equipped with a USB interface, this microcontroller effortlessly connects to a PC, transforming into a configurable keyboard or mouse to cater to your needs. The PRO MICRO offers multiple power options, supporting both micro USB and RAW GND interface (DC 7-9V). Its operating voltage is 3.3V, ensuring stable and reliable performance. Standout from other Arduino boards, the ATMEGA32U4-MU boasts built-in USB communication, eliminating the requirement for a secondary processor. Versatile and interactive, the Keyestudio PRO MICRO seamlessly incorporates into everyday objects, fostering a world of innovation. The absence of welded pin headers facilitates physical design, allowing users to personalize and solder pin headers as needed. Moreover, this microcontroller arrives complete with two yellow 1*12 2.54 straight pins and a one-meter black micro USB cable for added convenience. Explore limitless possibilities with the Keyestudio PRO MICRO, where power, versatility, and creativity converge.

 

Principle of Work:

In 2005, Arduino boards were introduced in Italy with the goal of providing a single platform where non-technologists could obtain these boards and develop electronic devices that could interact with the environment using actuators and sensors. These boards are so simple to use that even the most inexperienced user can operate them. Arduino is Free hardware which is anything whose blueprints and specs are available for anybody to copy. This means that Arduino provides the framework so that any other individual or business can design their own boards, each of which can be unique yet function well when built upon the same framework. Free software is a computer program whose source code is available to anybody, allowing them to use and alter it as they see fit. In order to allow anyone to create apps for Arduino boards and provide them with a variety of utilities, Keyestudio PRO MICRO works with the Arduino IDE (Integrated Development Environment) platform. which you can use to program and upload your code (sketch) and do this using a Built-in USB Functionality without the need for any external programmer just write your code on Arduino IDE then press the upload button and the code will be on your board ready to be used.

Pinout of the Module:

  • Digital I/O Pins: With a generous count of 18 digital I/O pins, the Keyestudio PRO MICRO facilitates seamless input and output operations tailored to your application's needs. These pins can be easily controlled to switch between 3.3V (HIGH) and 0V (LOW), offering flexibility in signal manipulation.
  • Analog Pins: Harness the power of 9 channels of 10-bit ADC on this board. These analog pins provide the ability to read a wide range of values, making them ideal for sensing continuous variables compared to the binary nature of digital pins.
  • PWM Pins: Equipped with 5 Pulse Width Modulation (PWM) channels, the Keyestudio PRO MICRO unlocks the potential for generating analog-like output through digital means. This opens up possibilities for controlling various actuators and devices requiring smooth analog control.
  • UART Pins: Effortlessly establish UART serial communication with the dedicated Rx and Tx pins. These pins enable seamless transmission and reception of serial data, facilitating robust and reliable communication between devices.
  • SPI Pins: The inclusion of a Serial Peripheral Interface (SPI) enhances connectivity, allowing communication between the MCU and other peripherals like sensors or shift registers. Utilizing the MOSI (Master Output Slave Input) and MISO (Master Input Slave Output) pins, data transfer between devices becomes efficient and rapid.
  • I2C Pins: Leverage the power of I2C communication with two dedicated pins, SDA (Serial Data Line) and SCL (Serial Clock Line). This two-wire communication protocol facilitates data exchange and synchronization between devices, expanding the board's capabilities.

Power Pins: The Keyestudio PRO MICRO offers a variety of power options for seamless operation:

  1. RAW: Accepts unregulated voltage input, ranging from USB's 3.3V (minus a Schottky diode drop) to an external supply up to 9V, ensuring flexibility in power sources.
  2. VCC: Supplies regulated 3.3V to the onboard ATmega32U4, controlled by the voltage applied to the RAW pin. It can also function as an output to power other devices.
  3. RST: Facilitates a restart of the Keyestudio PRO MICRO when pulled low. This active-low pin, pulled high by a 10kOhm resistor, ensures controlled resets for the board.
  4. GND: Serves as the common ground reference (0V) for the system, providing stability and coherence to the circuit.

 

Applications:

  • IoT Systems: Leveraging its compact size and advanced functionality, the PRO MICRO is perfect for building IoT devices, connecting sensors and actuators to create smart and interconnected systems.
  • Embedded Systems: As a powerful microcontroller, the PRO MICRO excels in embedded systems development, controlling, and managing various components in compact and efficient setups.
  • Keyboard or Mouse: Its embedded USB interface allows seamless configuration as a responsive keyboard or mouse, offering a unique input solution for a wide range of projects.
  • Windows PC Lock/Unlock Application: The PRO MICRO can be programmed to serve as a security key, allowing for convenient and secure PC lock and unlock functions.
  • USB Trackpad: Utilize the microcontroller's capabilities to create a custom USB trackpad, providing precise and responsive control for various applications.
  • USB Joystick: Implement the PRO MICRO as a USB joystick for gaming or remote control purposes, providing users with an immersive and engaging experience.
  • Water Level Meter: Employ the PRO MICRO to build a water level meter, accurately monitoring water levels in tanks, reservoirs, or other liquid containers.
  • Electric Bike: Utilize the microcontroller to control and manage electric bike components, offering improved performance and efficiency for electric mobility solutions.
  • Creating a Wireless Keyboard: With its USB communication and configurability, the PRO MICRO can be used to design wireless keyboards, eliminating the need for physical connections.
  • Automatic Pill Dispenser: Implement the microcontroller to create an automated pill dispenser, ensuring precise medication management for patients and caregivers.

 

Circuit:

Connect an LED to pin 5 on the board through a 220 Ohm resistor.

 

Connecting with Arduino for the First Time:

  1. Open Arduino IDE: If you haven't already, download the Arduino IDE from the official website: https://www.arduino.cc/en/software. Once installed, the Arduino folder contains both the Arduino program and the necessary drivers to connect your Arduino board to the computer using a USB cable.
  2. Connect the Board to Your Computer: Using a data USB cable (not a charge-only cable), connect the board to your computer. This will power the board and enable the Arduino IDE to communicate with it.
  3. Select the Board: In the Arduino IDE, click on "Tools" in the menu bar and find the "Board" row. Hover over it to reveal the installed board packages. Select "Arduino Micro" or "Leonardo" as your board depending on your model.
  4. Select the Port: Still in the "Tools" menu, locate the "Port" row. Choose the serial device of your Arduino board from the "Serial Port" menu, usually labeled as COM3 or higher. To find the correct port, you can disconnect the board, reopen the menu, and see which entry disappears. Reconnect the board and select that serial port.

With these steps completed, your Keyestudio PRO MICRO is now connected and ready to be programmed with your desired sketches and projects using the Arduino IDE. For more information and troubleshooting, you can refer to the official Arduino documentation: https://www.arduino.cc/reference/en/.

5. Upload a sketch 

  • Copy the code below.
  • Optional: Click the Verify button to try compiling the sketch and check for errors.
  • Click the Upload button to program the board with the sketch.
  • Your sketch will start running on the board. It will run again each time the board is reset.
  • Now you can open the Serial Monitor by clicking on the icon in the upper right corner.

 

Code:

the Arduino code to blink an LED connected to pin 5 of the Keyestudio PRO MICRO board. Additionally, it will display the status of the LED (ON or OFF) on the Serial Monitor.

// LED Pin
const int ledPin = 5;

// Variable to store LED status
bool ledStatus = false;

void setup() {
  // Initialize LED pin as OUTPUT
  pinMode(ledPin, OUTPUT);
  
  // Start Serial communication
  Serial.begin(9600);
}

void loop() {
  // Toggle LED status
  ledStatus = !ledStatus;
  
  // Turn ON or OFF the LED based on the status
  digitalWrite(ledPin, ledStatus);

  // Display LED status on Serial Monitor
  if (ledStatus) {
    Serial.println("LED is ON");
  } else {
    Serial.println("LED is OFF");
  }

  // Delay for 1 second
  delay(1000);
}

Make sure to connect an LED with a current-limiting resistor (e.g., 220-470 ohms) to pin 5 (LED Pin) of the Keyestudio PRO MICRO board. The other leg of the LED should be connected to the GND (Ground) pin. Upload the code to the board using the Arduino IDE and open the Serial Monitor (Tools > Serial Monitor) to observe the status of the LED blinking on and off. The status will be displayed as "LED is ON" and "LED is OFF" on the Serial Monitor.

 

Technical Details:

  • CPU 8bit
  • Microcontroller Atmega32u4
  • Operating voltage 3.3V
  • 5v regulating circuit
  • Input voltage max. 9V
  • Input Voltage:- 7-9V
  • micro USB connection
  • 9 x 10-bit Analog input pins
  • 18 x digital I/O pins
  • 5 x 8-bit PWM pins (part of the digital Pins)
  • RX/TX serial port
  • Flash Memory: 32KB
  • SRAM: 2.5KB
  • Clock Speed 16MHz
  • PCB Dimensions: 35mm*18mm*2mm
  • Weight: 2.6g
  • Pin pitch:2.54mm

Resources:

 

Comparisons:

the Keyestudio PRO MICRO offers a more compact and cost-effective solution for projects requiring USB communication. It features a different microcontroller with built-in USB capabilities, eliminating the need for a separate USB-to-serial converter. However, it may have a slightly different pin configuration compared to the Arduino UNO. Both boards provide analog input capabilities and are suitable for a wide range of projects, with the Keyestudio PRO MICRO being a particularly suitable option for space-constrained applications:

  1. Size and Form Factor: The Keyestudio PRO MICRO is considerably smaller in size compared to the Arduino UNO board. Its compact form factor makes it ideal for projects with limited space requirements.
  2. MCU Core: Both boards use different microcontrollers at their core. The Keyestudio PRO MICRO utilizes the "ATmega32U4" MCU, which has built-in USB communication, eliminating the need for an external USB-to-serial converter. In contrast, the Arduino UNO features the "ATmega328P" MCU, which requires an additional USB-to-serial chip (ATmega16U2) for USB connectivity.
  3. USB Interface: As mentioned earlier, the Keyestudio PRO MICRO has an embedded USB interface, enabling direct connection to a computer without the need for a separate USB-Serial converter. On the other hand, the Arduino UNO relies on an additional USB-to-serial chip for USB communication.
  4. Pin Configuration: The Keyestudio PRO MICRO and Arduino UNO have different pin configurations. The PRO MICRO may lack certain pins found on the UNO, such as AREF and additional analog and digital pins. However, the PRO MICRO offers a sufficient number of pins for most projects.
  5. Power Options: The Keyestudio PRO MICRO supports multiple power options, including powering through the micro USB connection or the RAW GND interface (DC 7-9V). The Arduino UNO, on the other hand, can be powered via the USB or an external power supply (DC barrel jack).
  6. Analog Pins: Both boards provide analog input capabilities. The Keyestudio PRO MICRO offers 9 channels of 10-bit ADC, while the Arduino UNO offers 6 channels.
  7. Price: Due to its smaller size and integrated USB interface, the Keyestudio PRO MICRO may be more cost-effective compared to the Arduino UNO, which includes additional components like the USB-to-serial chip.