Ks0249 keyestudio PRO MICRO Development Board: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[image:Ks0249 (2).png|thumb|900px|right|Keyestudio PRO MICRO Development Board ]] | |||
==Introduction== | ==Introduction== | ||
keyestudio PRO MICRO is a microcontroller board based on the ATMEGA32U4-MU. It is an easy-to-use open source hardware. <br> | |||
It has 18 digital input/output pins (of which 5 can be used as PWM outputs), 9 analog inputs, a 16 MHz crystal oscillator, and a micro USB connection. <br> | |||
It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable to get started. <br> | |||
The keyestudio PRO MICRO can be powered via the micro USB connection, or via the interface RAW GND (DC 7-9V). <br> | |||
Note that the operating voltage of PRO MICRO is 3.3V. The PRO MICRO differs from other Arduino boards using separate USB-Serial chip in that the ATMEGA32U4-MU has built-in USB communication, eliminating the need for a secondary processor. <br> | |||
It is easy to integrate this Micro in everyday objects to make them interactive. To facilitate the physical design, the board is not welded with pin headers, so you can solder the pin headers by yourself. And the package includes 2pcs of yellow 1*12 2.54 straight pins and 1m black micro USB cable. <br> | |||
At same time, to facilitate to links with other electrical components, shield breaks out the signal end of micro:bit with pins in 2.54mm pitch. Every signal end has two ports for your reference, moreover, there are 8 sets of power output ends for external power. | |||
==TECH SPECS== | |||
{| class="wikitable" cellpadding="1" cellspacing="1" | |||
|- | |||
! scope="row" | Microcontroller | |||
| ATMEGA32U4-MU | |||
|- | |||
! scope="row" | RAW | |||
| DC 7-9V | |||
|- | |||
! scope="row" | VCC | |||
| 3.3V at 500mA | |||
|- | |||
! scope="row" | Operating Voltage | |||
| 3.3V | |||
|- | |||
! scope="row" | Digital I/O Pins | |||
| 18 (of which 5 provide PWM output) | |||
|- | |||
! scope="row" | Analog Input Pins | |||
| 9 | |||
|- | |||
! scope="row" | Maximum current for chip | |||
| 200mA | |||
|- | |||
! scope="row" | Maximum current per pin | |||
| 40mA | |||
|- | |||
! scope="row" | Recommended current per pin | |||
| 20mA | |||
|- | |||
! scope="row" | Atmel AVR | |||
| 8-bit | |||
|- | |||
! scope="row" | Flash Memory | |||
| 32 KB | |||
|- | |||
! scope="row" | SRAM | |||
| 2.5 KB | |||
|- | |||
! scope="row" | EEPROM | |||
| 1 KB | |||
|- | |||
! scope="row" | ADC | |||
| 10-bit | |||
|- | |||
! scope="row" | PWM | |||
| 8-bit | |||
|- | |||
|} | |||
<br> | |||
==Details== | |||
* '''PCB Dimensions:'''35mm*18mm*2mm | |||
* '''Weight:''' 2.6g | |||
* Pin pitch:2.54mm | |||
<br>[[Image:ks0249 size.jpg|500px|frameless]]<br> | |||
<br> | |||
==Element and Interfaces== | |||
<br>[[Image:ks0249- pinouts.jpg|800px|frameless]]<br> | |||
<br> | |||
==Specialized Functions of Some Pins== | |||
<br> | |||
{| width="80%" cellspacing="0" border="1" | |||
|- | |||
| align="center" | '''Digital I/O pins''' | |||
| align="light" | RX (D0)、TX (D1)、D2-D10、D14-D16、A0-A3(D18-D21) | |||
|- | |||
| align="center" | '''Analog Inputs''' | |||
| align="light" | A0-A3, A6-A10 (on digital pins 4, 6, 8, 9, and 10). That is, D4 (A6)、D6 (A7)、D8 (A8)、D9 (A9)、D10 (A10). | |||
|- | |||
| align="center" | '''PWM (Pulse-Width Modulation)''' | |||
| align="light" | D3, D5, D6, D9 and D10. Provide 8-bit PWM output with the [https://www.arduino.cc/en/Reference/AnalogWrite analogWrite()] function. | |||
|- | |||
| align="center" | '''External Interrupts''' | |||
| align="light" | D3 (interrupt 0); D2 (interrupt 1); D0 (interrupt 2), D1 (interrupt 3) and D7 (interrupt 4). <br> | |||
These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the [https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ attachInterrupt()] function for details. | |||
|- | |||
| align="center" | '''Serial communication''' | |||
| align="light" | D0 (RX) and D1 (TX). | |||
|- | |||
| align="center" | '''SPI communication'''<br> | |||
| align="light" | D14 (MISO); D15 (SCLK); D16 (MOSI) | |||
|- | |||
| align="center" | '''I2C communication''' | |||
| align="light" | D2 (SDA) and D3 (SCL) | |||
|- | |||
| align="center" | '''RAM''' | |||
| align="light" | Connect the external power DC 7-9V | |||
|- | |||
|} | |||
<br> | |||
==Detailed Use with ARDUINO Software as follows== | |||
===Step1| Download the Arduino IDE=== | |||
When you get the board, first you should install the Arduino software and driver. <br> | |||
We usually use the Windows software Arduino 1.5.6 version. You can download it from the link below: <br> | |||
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x<br> | |||
Or you can browse the ARDUINO website to download the latest version from this link, https://www.arduino.cc, pop up the following interface. | |||
<br>[[Image:KS0313-1.png|600px|frameless]]<br> | |||
Then click the '''SOFTWARE''' on the browse bar, you will have two options ONLINE TOOLS and DOWNLOADS. | |||
<br>[[Image:KS0313-2.png|600px|frameless]]<br> | |||
Click '''DOWNLOADS''', it will appear the latest software version of ARDUINO 1.8.5 shown as below. | |||
<br>[[Image:KS0313-3.png|600px|frameless]]<br> | |||
In this software page, on the right side you can see the version of development software for different operating systems. ARDUINO has a powerful compatibility. You should download the software that is compatible with the operating system of your computer.<br> | |||
We will take '''WINDOWS system''' as an example here. There are also two options under Windows system, one is installed version, the other is non-installed version. | |||
For simple installed version, first click '''Windows Installer''', you will get the following page.<br> | |||
<br>[[Image:KS0313-4.png|600px|frameless]]<br> | |||
<br>[[Image:KS0313-5.png|600px|frameless]]<br> | |||
This way you just need to click JUST DOWNLOAD, then click the downloaded file to install it. <br> | |||
For non-installed version, first click Windows ZIP file, you will also get the pop-up interface as the above figure.<br> | |||
Click JUST DOWNLOAD, and when the ZIP file is downloaded well to your computer, you can directly unzip the file and click the icon of ARDUINO software to start it. <br> | |||
<br> | |||
====Installing Arduino (Windows)==== | |||
Install Arduino with the exe. Installation package downloaded well. | |||
<br>[[File:Arduino Setup 1.jpg|800px|frameless|thumb]]<br> | |||
Click“I Agree”to see the following interface. | |||
<br>[[File:Arduino Setup 2.jpg|800px|frameless|thumb]]<br> | |||
Click “Next”. Pop up the interface below. | |||
<br>[[File:Arduino Setup 3.jpg|800px|frameless|thumb]]<br> | |||
You can press Browse… to choose an installation path or directly type in the directory you want.<br> | |||
Then click “Install” to initiate installation. | |||
<br>[[File:Arduino Setup 4.jpg|800px|frameless|thumb]]<br> | |||
Wait for the installing process, if appear the interface of Window Security, just continue to click Install to finish the installation. | |||
<br>[[File:Arduino1.5.6- setup 5.png|800px|frameless|thumb]]<br> | |||
<br> | |||
====Introduction for Arduino IDE Toolbar==== | |||
Double-click the icon of Arduino software downloaded well, you will get the interface shown below. | |||
<br>[[Image:Ks0313图片1.png|600px|frameless]]<br> | |||
('''Note:''' if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See [https://www.arduino.cc/en/Guide/Environment-Languages the environment page] for details.) | |||
<br>[[Image:717.png|600px|frameless]]<br> | |||
<br> | |||
The functions of each button on the Toolbar are listed below: | |||
<br>[[Image:IDE.png|600px|frameless]]<br> | |||
{| class="wikitable" cellpadding="1" cellspacing="1" | |||
|- | |||
!scope="row" |[[Image:IDE 1.png|600px|frameless]] Verify/Compile | |||
| Check the code for errors | |||
|- | |||
!scope="row" |[[Image:IDE 2.png|600px|frameless]] Upload | |||
| Upload the current Sketch to the Arduino | |||
|- | |||
!scope="row" |[[Image:IDE 3.png|600px|frameless]] New | |||
| Create a new blank Sketch | |||
|- | |||
! scope="row" |[[Image:IDE 4.png|600px|frameless]] Open | |||
| Show a list of Sketches | |||
|- | |||
! scope="row" |[[Image:IDE 5.png|600px|frameless]] Save | |||
| Save the current Sketch | |||
|- | |||
! scope="row" |[[Image:IDE 6.png|600px|frameless]] Serial Monitor | |||
| Display the serial data being sent from the Arduino | |||
|- | |||
|} | |||
<br> | |||
===Step2| Installing the Driver === | |||
Installed well the Arduino, the next step is to install the driver. The Arduino folder contains both the Arduino program itself and the drivers that allow the Arduino to be connected to your computer with a USB cable. <br> | |||
<br>[[Image:ks0248 Step2.jpg|600px|frameless]]<br> | |||
In different systems, the driver installation is similar. Here we start to install the driver on the Win7 system.<br> | |||
Plug one end of your USB cable into the keyestudio PRO MICRO and the other into a USB socket on your computer. <br> | |||
When you connect the board to your computer at the first time, right click your “Computer” —>for “Properties”—> click the “Device manager”, under Other devices, you should see the “Arduino Micro”. | |||
<br>[[Image:ks0249- driver 1.png|600px|frameless]]<br> | |||
Then right-click on the Arduino Micro and select the top menu option (Update Driver Software...) shown as the figure below. | |||
<br>[[Image:ks0249- driver 2.png|600px|frameless]]<br> | |||
Then it will be prompted to either “Search Automatically for updated driver software” or “Browse my computer for driver software”. Shown as below. In this page, select “Browse my computer for driver software”. | |||
<br>[[Image:ks0249- driver 3.png|600px|frameless]]<br> | |||
After that, select the option to browse and navigate to the “drivers” folder. | |||
<br>[[Image:ks0249- driver 4.png|600px|frameless]]<br> | |||
Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”. | |||
<br>[[Image:ks0249- driver 5.png|600px|frameless]]<br> | |||
Up to now, the driver is installed well. Then you can right click “Computer” —>“Properties”—>“Device manager”, you should see the device as the figure shown below. | |||
<br>[[Image:ks0249- driver 6.png|600px|frameless]]<br> | |||
<br> | |||
===Step3| Connect the board=== | |||
Connect the Pro Micro board to your computer using the USB cable. The power LED should go on. | |||
<br>[[Image:ks0249 connect.png|600px|frameless]]<br> | |||
<br> | |||
===Step4| Select the Arduino Board === | |||
Open the Arduino IDE, you’ll need to click the “Tools”, then select the Board that corresponds to your Arduino. | |||
<br>[[Image:Ks0313图片1.png|600px|frameless]]<br> | |||
<br>[[Image:ks0249 board.png|600px|frameless]]<br> | |||
<br> | |||
===Step5| Select your serial port=== | |||
Select the serial device of the Arduino board from the '''Tools | Serial Port menu.''' <br> | |||
'''Note:''' to avoid errors, the COM Port should keep the same as the Ports shown on Device Manager. | |||
<br>[[Image:ks0249- driver 6.png|600px|frameless]]<br> | |||
<br>[[Image:ks0249 port 1.png|600px|frameless]]<br> | |||
<br> | |||
===Step6| Upload the Code=== | |||
Below is an example code for displaying the Hello World!<br> | |||
Copy and paste the code to the Arduino environment IDE.<br> | |||
<pre> | |||
int val; | |||
int ledpin=13; | |||
void setup() | |||
{ | |||
Serial.begin(9600); | |||
pinMode(ledpin,OUTPUT); | |||
} | |||
void loop() | |||
{ | |||
val=Serial.read(); | |||
if(val=='R') | |||
{ | |||
digitalWrite(ledpin,HIGH); | |||
delay(500); | |||
digitalWrite(ledpin,LOW); | |||
delay(500); | |||
Serial.println("Hello World!"); | |||
} | |||
} | |||
</pre> | |||
<br>[[Image:ks0249 code 1.png|600px|frameless]]<br> | |||
<br> | |||
Then click verify button to check the errors. If compiling successfully, the message "Done compiling." will appear in the status bar. | |||
<br>[[Image:ks0249 compile.png|800px|frameless]]<br> | |||
<br> | |||
After that, click the “Upload” button to upload the code. If the upload is successful, the message "Done uploading." will appear in the status bar. | |||
<br>[[Image:ks0249 upload.png|800px|frameless]]<br> | |||
<br> | |||
===Step7| Open the Serial Monitor=== | |||
After that, click the button to open the serial monitor. | |||
<br>[[Image:ks0249 monitor.png|600px|frameless]]<br> | |||
<br> | |||
Then set the baud rate to 9600, enter an “R” and click Send, that is, the computer will send the character R. When the board receives it, you should see the RX led on the board flash once, and then D13 led flash once; when keyestudio PRO MICRO successfully sends "Hello World!" to the computer, you should see the "Hello World!" is showed on the monitor, and TX led on the PRO MICRO board flash once. | |||
<br>[[Image:ks0249 monitor 2.png|700px|frameless]]<br> | |||
<br> | |||
==Package Includes== | |||
* keyestudio PRO MICRO* 1pcs | |||
* Black micro USB cable 1m * 1pcs | |||
* Yellow Pin headers * 2pcs | |||
<br>[[Image:ks0249 package .jpg|700px|frameless]]<br> | |||
<br> | |||
==Resource Links== | |||
'''Test Code:''' | |||
https://fs.keyestudio.com/KS0249 | |||
'''You might also want to look at:'''<br> | |||
[https://www.arduino.cc/reference/en/ the reference] for the Arduino language; | |||
'''Download ARDUINO Software:'''<br> | |||
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x | |||
<br> | |||
==Troubleshooting== | |||
If you have problems, please see the [http://arduino.cc/en/Guide/Troubleshooting troubleshooting suggestions]. | |||
==Get One Now== | |||
* [https://www.keyestudio.com/keyestudio-pro-micro-atmega32u4-33v-16mhz-development-board-with-2-row-pin-header-for-arduino-leonardo-p0485-p0485.html '''Official Website''' ] | |||
* [https://www.amazon.com/dp/B07J55YWKZ '''From Amazon:'''] | |||
* [https://www.aliexpress.com/item/Keyestudio-PRO-MICRO-ATmega32U4-5V-16MHz-Development-Board-with-2-row-pin-header-For-Leonardo-for/32824183077.html?spm=2114.search0104.3.2.248474e1lZbgGU&ws_ab_test=searchweb0_0,searchweb201602_4_10065_10068_10546_10059_10548_5016918_10696_5016818_100031_5016718_10084_10083_10103_451_10618_452_10307_5016618,searchweb201603_1,ppcSwitch_7&algo_expid=8aa1d972-ae62-4c40-86c5-d724f364d782-0&algo_pvid=8aa1d972-ae62-4c40-86c5-d724f364d782&priceBeautifyAB=0 '''From Aliexpress:''' ] | |||
* | |||
* [https://www.ebay.com/itm/Keyestudio-Pro-Micro-ATmega32U4-Development-Board-USB-Cable-for-Arduino/132717431555?hash=item1ee6934b03:g:O7IAAOSwBfdbPEUr '''From eBay:''' ] | |||
[[Category: Arduino Board]] | [[Category: Arduino Board]] |
Latest revision as of 11:05, 6 January 2021
Introduction
keyestudio PRO MICRO is a microcontroller board based on the ATMEGA32U4-MU. It is an easy-to-use open source hardware.
It has 18 digital input/output pins (of which 5 can be used as PWM outputs), 9 analog inputs, a 16 MHz crystal oscillator, and a micro USB connection.
It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable to get started.
The keyestudio PRO MICRO can be powered via the micro USB connection, or via the interface RAW GND (DC 7-9V).
Note that the operating voltage of PRO MICRO is 3.3V. The PRO MICRO differs from other Arduino boards using separate USB-Serial chip in that the ATMEGA32U4-MU has built-in USB communication, eliminating the need for a secondary processor.
It is easy to integrate this Micro in everyday objects to make them interactive. To facilitate the physical design, the board is not welded with pin headers, so you can solder the pin headers by yourself. And the package includes 2pcs of yellow 1*12 2.54 straight pins and 1m black micro USB cable.
At same time, to facilitate to links with other electrical components, shield breaks out the signal end of micro:bit with pins in 2.54mm pitch. Every signal end has two ports for your reference, moreover, there are 8 sets of power output ends for external power.
TECH SPECS
Microcontroller | ATMEGA32U4-MU |
---|---|
RAW | DC 7-9V |
VCC | 3.3V at 500mA |
Operating Voltage | 3.3V |
Digital I/O Pins | 18 (of which 5 provide PWM output) |
Analog Input Pins | 9 |
Maximum current for chip | 200mA |
Maximum current per pin | 40mA |
Recommended current per pin | 20mA |
Atmel AVR | 8-bit |
Flash Memory | 32 KB |
SRAM | 2.5 KB |
EEPROM | 1 KB |
ADC | 10-bit |
PWM | 8-bit |
Details
- PCB Dimensions:35mm*18mm*2mm
- Weight: 2.6g
- Pin pitch:2.54mm
Element and Interfaces
Specialized Functions of Some Pins
Digital I/O pins | RX (D0)、TX (D1)、D2-D10、D14-D16、A0-A3(D18-D21) |
Analog Inputs | A0-A3, A6-A10 (on digital pins 4, 6, 8, 9, and 10). That is, D4 (A6)、D6 (A7)、D8 (A8)、D9 (A9)、D10 (A10). |
PWM (Pulse-Width Modulation) | D3, D5, D6, D9 and D10. Provide 8-bit PWM output with the analogWrite() function. |
External Interrupts | D3 (interrupt 0); D2 (interrupt 1); D0 (interrupt 2), D1 (interrupt 3) and D7 (interrupt 4). These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details. |
Serial communication | D0 (RX) and D1 (TX). |
SPI communication |
D14 (MISO); D15 (SCLK); D16 (MOSI) |
I2C communication | D2 (SDA) and D3 (SCL) |
RAM | Connect the external power DC 7-9V |
Detailed Use with ARDUINO Software as follows
Step1| Download the Arduino IDE
When you get the board, first you should install the Arduino software and driver.
We usually use the Windows software Arduino 1.5.6 version. You can download it from the link below:
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
Or you can browse the ARDUINO website to download the latest version from this link, https://www.arduino.cc, pop up the following interface.
Then click the SOFTWARE on the browse bar, you will have two options ONLINE TOOLS and DOWNLOADS.
Click DOWNLOADS, it will appear the latest software version of ARDUINO 1.8.5 shown as below.
In this software page, on the right side you can see the version of development software for different operating systems. ARDUINO has a powerful compatibility. You should download the software that is compatible with the operating system of your computer.
We will take WINDOWS system as an example here. There are also two options under Windows system, one is installed version, the other is non-installed version.
For simple installed version, first click Windows Installer, you will get the following page.
This way you just need to click JUST DOWNLOAD, then click the downloaded file to install it.
For non-installed version, first click Windows ZIP file, you will also get the pop-up interface as the above figure.
Click JUST DOWNLOAD, and when the ZIP file is downloaded well to your computer, you can directly unzip the file and click the icon of ARDUINO software to start it.
Installing Arduino (Windows)
Install Arduino with the exe. Installation package downloaded well.
Click“I Agree”to see the following interface.
Click “Next”. Pop up the interface below.
You can press Browse… to choose an installation path or directly type in the directory you want.
Then click “Install” to initiate installation.
Wait for the installing process, if appear the interface of Window Security, just continue to click Install to finish the installation.
Introduction for Arduino IDE Toolbar
Double-click the icon of Arduino software downloaded well, you will get the interface shown below.
(Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page for details.)
The functions of each button on the Toolbar are listed below:
Step2| Installing the Driver
Installed well the Arduino, the next step is to install the driver. The Arduino folder contains both the Arduino program itself and the drivers that allow the Arduino to be connected to your computer with a USB cable.
In different systems, the driver installation is similar. Here we start to install the driver on the Win7 system.
Plug one end of your USB cable into the keyestudio PRO MICRO and the other into a USB socket on your computer.
When you connect the board to your computer at the first time, right click your “Computer” —>for “Properties”—> click the “Device manager”, under Other devices, you should see the “Arduino Micro”.
Then right-click on the Arduino Micro and select the top menu option (Update Driver Software...) shown as the figure below.
Then it will be prompted to either “Search Automatically for updated driver software” or “Browse my computer for driver software”. Shown as below. In this page, select “Browse my computer for driver software”.
After that, select the option to browse and navigate to the “drivers” folder.
Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”.
Up to now, the driver is installed well. Then you can right click “Computer” —>“Properties”—>“Device manager”, you should see the device as the figure shown below.
Step3| Connect the board
Connect the Pro Micro board to your computer using the USB cable. The power LED should go on.
Step4| Select the Arduino Board
Open the Arduino IDE, you’ll need to click the “Tools”, then select the Board that corresponds to your Arduino.
Step5| Select your serial port
Select the serial device of the Arduino board from the Tools | Serial Port menu.
Note: to avoid errors, the COM Port should keep the same as the Ports shown on Device Manager.
Step6| Upload the Code
Below is an example code for displaying the Hello World!
Copy and paste the code to the Arduino environment IDE.
int val; int ledpin=13; void setup() { Serial.begin(9600); pinMode(ledpin,OUTPUT); } void loop() { val=Serial.read(); if(val=='R') { digitalWrite(ledpin,HIGH); delay(500); digitalWrite(ledpin,LOW); delay(500); Serial.println("Hello World!"); } }
Then click verify button to check the errors. If compiling successfully, the message "Done compiling." will appear in the status bar.
After that, click the “Upload” button to upload the code. If the upload is successful, the message "Done uploading." will appear in the status bar.
Step7| Open the Serial Monitor
After that, click the button to open the serial monitor.
Then set the baud rate to 9600, enter an “R” and click Send, that is, the computer will send the character R. When the board receives it, you should see the RX led on the board flash once, and then D13 led flash once; when keyestudio PRO MICRO successfully sends "Hello World!" to the computer, you should see the "Hello World!" is showed on the monitor, and TX led on the PRO MICRO board flash once.
Package Includes
- keyestudio PRO MICRO* 1pcs
- Black micro USB cable 1m * 1pcs
- Yellow Pin headers * 2pcs
Resource Links
Test Code:
https://fs.keyestudio.com/KS0249
You might also want to look at:
the reference for the Arduino language;
Download ARDUINO Software:
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
Troubleshooting
If you have problems, please see the troubleshooting suggestions.