Ks0248 keyestudio Leonardo R3 Development Board: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[image:KS0248.jpg|thumb|900px|right|Keyestudio Leonardo R3 Development Board ]]
<br>
==Introduction ==
==Introduction ==
The keyestudio Leonardo R3 development board is our newest easy-to-use open-source controller. It has twenty-three digital I/O ports, seven PWM ports and twelve analog input ports. Compared with other versions of Arduino using separate USB - Serial conversion chips, it only uses a single Atmega32u4 to achieve USB communication and control. The Atmega32u4's native support USB feature also enables Leonardo to simulate a mouse and keyboard.
The keyestudio Leonardo is a microcontroller board based on the ATmega32u4 ([https://www.microchip.com/wwwproducts/en/atmega32u4  datasheet ]). It is an easy-to-use open source hardware.<br>
<br>[[File:Ks0248.png|500x|frameless|thumb]]<br>
It has 20 digital input/output pins (of which 7 can be used as PWM outputs), 12 analog inputs, a 16 MHz crystal oscillator, a micro USB connection, a power jack, an ICSP header, and a reset button. <br>
It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.
Note that ICSP (In-Circuit Serial Programming) header can not only program the firmware to Atmega32u4, but also be used as SPI communication interface. <br>
The keyestudio Leonardo can be powered via the micro USB connection, or via an external power supply jack (DC 7-12V) or even with female headers Vin /GND (DC 7-12V).<br>
The Leonardo differs from other Arduino boards using separate USB-Serial chip in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. This allows the Leonardo to appear to a connected computer as a mouse and keyboard.
 
<br>
 
==TECH SPECS==
{| class="wikitable" cellpadding="1" cellspacing="1"
|-
! scope="row" | Microcontroller
|Atmega32u4
|-
! scope="row" | Operating Voltage
| 5V
|-
! scope="row" | Input Voltage (recommended)
| DC7-12V
|-
! scope="row" | Digital I/O Pins
| 20 (of which 7 provide PWM output)
|-
! scope="row" | PWM Digital I/O Pins
| 7
|-
! scope="row" | Analog Input Pins
| 12
|-
! scope="row" | DC Current per I/O Pin
| 40 mA
|-
! scope="row" | DC Current for 3.3V Pin
| 50 mA
|-
! scope="row" | Flash Memory
| 32 KB (Atmega32u4) of which 4 KB used by bootloader
|-
! scope="row" | SRAM
| 2.5 KB (ATmega32u4)
|-
! scope="row" | EEPROM
| 1 KB (Atmega32u4)
|-
! scope="row" | Clock Speed
| 16 MHz
|-
! scope="row" | LED_BUILTIN
| D13
|-
|}
 
<br>
==Details==
* '''PCB Dimensions:''' 71mm*54mm*15mm
* '''Weight:''' 18.4g
<br>[[Image:KS0248 Details.jpg|700px|frameless]]<br>
 
<br>
==Element and Interfaces==
Here is an explanation of what every element and interface of the board does:
<br>[[Image:KS0248 pinout.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" | D0-D13 and A0-A5 (D18-D23); Note that if the digital pins are not enough, the ICSP pins can be used as digital pins. MISO (D14); SCK(D15); MOSI (D16).
 
|-
| align="center" | '''Analog Inputs'''
| align="light" | A0-A5, A6-A11 (on digital pins 4, 6, 8, 9, 10, and 12). That is, D4 (A6)、D6 (A7)、D8 (A8)、D9 (A9)、D10 (A10) and D12 (A11).
Pins A0-A5 appear in the same locations as on the Uno; inputs A6-A11 are on digital i/o pins 4, 6, 8, 9, 10, and 12 respectively.
Each analog input provide 10 bits of resolution (i.e. 1024 different values). By default the analog inputs measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and the [https://www.arduino.cc/en/Reference/AnalogReference analogReference()] function.
 
|-
| align="center" | '''PWM (Pulse-Width Modulation)'''
| align="light" | D3, D5, D6, D9, D10, D11 and D13. 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).
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" | On the ICSP header.
These pins support SPI communication using the [https://www.arduino.cc/en/Reference/SPI SPI library].
Note: the SPI pins are not connected to any of the digital I/O pins as they are on the Uno. They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Leonardo's 6-pin ICSP header, the shield will not work.
 
|-
| align="center" | '''AREF'''
| align="light" | Reference voltage for the analog inputs.
Used with [https://www.arduino.cc/en/Reference/AnalogReference analogReference()].
Sometimes used to set the external reference voltage (0-5 volts) as the upper end of analog input pins.
|-
 
| align="center" | '''IOREF'''
| align="light" | The voltage at which the i/o pins of the board are operating (i.e. VCC for the board).
This is 5V on the Leonardo. Used to configure the operating voltage of microcontroller.
|-
|}
 
<br>
 
==Tips==
* '''Automatic (Software) Reset:'''
Rather then requiring a physical press of the reset button before an upload, the Arduino Nano is designed in a way that allows it to be reset by software running on a connected computer.
 
* '''USB Overcurrent Protection:'''
The Leonardo has a resettable polyfuse that protects your computer's USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed.
 
<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 Leonardo 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 Leonardo”.
<br>[[Image:ks0248-DRIVER 1.png|600px|frameless]]<br>
 
Then right-click on the Arduino Leonardo and select the top menu option (Update Driver Software...) shown as the figure below.
<br>[[Image:ks0248-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:ks0248-DRIVER 3.png|600px|frameless]]<br>
 
After that, select the option to browse and navigate to the “drivers” folder.
<br>[[Image:ks0248-DRIVER 4.png|600px|frameless]]<br>
 
Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”. 
<br>[[Image:ks0248-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:ks0248-DRIVER 6.png|600px|frameless]]<br>
 
<br>
 
===Step3| Connect the board===
Connect the Leonardo board to your computer using the USB cable. The power LED should go on.
<br>[[Image:KS0248 Step3.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:ks0248 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:ks0248-DRIVER 6.png|600px|frameless]]<br>
<br>[[Image:ks0248 port.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:ks0248 code.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:ks0248 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:ks0248 upload.png|800px|frameless]]<br>
 
<br>
 
===Step7| Open the Serial Monitor===
After that, click the button to open the serial monitor.
<br>[[Image:ks0248 monitor 1.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 Leonardo R3 board successfully sends "Hello World!" to the computer, you should see the "Hello World!" is showed on the monitor, and TX led on the board flash once.  
<br>[[Image:ks0248 monitor 2.png|700px|frameless]]<br>
 
<br>
==Package Included==
* keyestudio Leonardo R3 board * 1pcs
* Black micro USB cable 1m * 1pcs
<br>[[Image:package- ks0248.png|700px|frameless]]<br>


==Specification==
<br>
* Controller: ATmega32u4
==Resource Links==
* Working frequency: 16 MHz
* Working voltage: 5V
* Input voltage (recommended) : 7-12v
* Digital I/O port: 23
* PWM channel: 7
* Analog input: 12
* Maximum allowable current of 5V digital/analog port: 40 mA
* Maximum allowable current of 3.3V digital/analog port: 50 mA
* Flash Memory: 32 KB (ATmega32u4) of which 4 KB used by boot loader
* SRAM: 2.5 KB (ATmega32u4)
* EEPROM: 1 KB (ATmega32u4)


==Other related instructions ==
'''You might also want to look at:''' <br>
* Digital IO port: 23 (D0 - D13, D14-MISO, D15-SCK, D16-MOSI, D18-23 [A0-A5])
[http://arduino.cc/en/Reference/HomePage the reference] for the Arduino language;


* Analog input: 12 (A0 - A5, D4 - A6, D6 - A7, D8 - A8, D9 - A9, D10 - A10, D12-A11)
'''Download ARDUINO Software:''' <br>
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x


* Serial communication: D0 (RX) and D1 (TX)
'''PDF:''' <br>
https://fs.keyestudio.com/KS0248


* IIC communication: D2 (SDA) and D3 (SCL)
<br>


* External interrupt: D3 (interrupt 0), D2 (interrupt 1), D0 (interrupt 2), D1 (interrupt 3) and D7 (interrupt 4)
==Troubleshooting==
If you have problems, please see the [http://arduino.cc/en/Guide/Troubleshooting troubleshooting suggestions].


* PWM port: D3, D5, D6, D9, D10, D11 and D13


* SPI: ICSP pins.Support SPI communication by using the SPI library. It is important to note that SPI pins do not connect to any number I/O pins like UNO, they can only work on the ICSP port.This means that if your expansion board has no ICSP pin connected to the 6 feet, it will not work.
<br>
==Shop Now==
*[https://www.keyestudio.com/free-shipping-keyestudio-atmega32u4-leonardo-r3-development-board-1m-micro-usb-cable-for-for-arduino-diy-project-p0365.html  '''Official Website''' ]


* LED: 13. There is a built-in LED on the digital pin 13. When the pins are high level, LED is bright;when the pins are low level,the LED is not bright.
*[https://www.amazon.com/dp/B0786LJQ8K '''Shop on Amazon''' ]


== Resources ==
*[https://www.aliexpress.com/store/product/Free-shipping-leonardo-R3-development-board-USB-Cable-compatible-for-arduino/1452162_32310214921.html?spm=2114.12010612.8148356.10.690b2ca4ZzHH0g '''Shop on AliExpress''' ]
'''Datasheet:'''


http://www.keyestudio.com/files/index/download/id/1500424728/
*[https://www.ebay.com/itm/132597287541 '''Shop on eBay''']


== Get One Now ==


http://www.keyestudio.com/keyestudio-leonardo-r3-development-board.html


[[Category: Arduino Board]]
[[Category: Arduino Board]]

Latest revision as of 11:38, 29 April 2021

Keyestudio Leonardo R3 Development Board


Introduction

The keyestudio Leonardo is a microcontroller board based on the ATmega32u4 (datasheet ). It is an easy-to-use open source hardware.
It has 20 digital input/output pins (of which 7 can be used as PWM outputs), 12 analog inputs, a 16 MHz crystal oscillator, a micro USB connection, a power jack, an ICSP header, and a reset button.
It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. Note that ICSP (In-Circuit Serial Programming) header can not only program the firmware to Atmega32u4, but also be used as SPI communication interface.
The keyestudio Leonardo can be powered via the micro USB connection, or via an external power supply jack (DC 7-12V) or even with female headers Vin /GND (DC 7-12V).
The Leonardo differs from other Arduino boards using separate USB-Serial chip in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. This allows the Leonardo to appear to a connected computer as a mouse and keyboard.


TECH SPECS

Microcontroller Atmega32u4
Operating Voltage 5V
Input Voltage (recommended) DC7-12V
Digital I/O Pins 20 (of which 7 provide PWM output)
PWM Digital I/O Pins 7
Analog Input Pins 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 bootloader
SRAM 2.5 KB (ATmega32u4)
EEPROM 1 KB (Atmega32u4)
Clock Speed 16 MHz
LED_BUILTIN D13


Details

  • PCB Dimensions: 71mm*54mm*15mm
  • Weight: 18.4g


KS0248 Details.jpg


Element and Interfaces

Here is an explanation of what every element and interface of the board does:
KS0248 pinout.jpg

Specialized Functions of Some Pins


Digital I/O pins D0-D13 and A0-A5 (D18-D23); Note that if the digital pins are not enough, the ICSP pins can be used as digital pins. MISO (D14); SCK(D15); MOSI (D16).
Analog Inputs A0-A5, A6-A11 (on digital pins 4, 6, 8, 9, 10, and 12). That is, D4 (A6)、D6 (A7)、D8 (A8)、D9 (A9)、D10 (A10) and D12 (A11).

Pins A0-A5 appear in the same locations as on the Uno; inputs A6-A11 are on digital i/o pins 4, 6, 8, 9, 10, and 12 respectively. Each analog input provide 10 bits of resolution (i.e. 1024 different values). By default the analog inputs measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and the analogReference() function.

PWM (Pulse-Width Modulation) D3, D5, D6, D9, D10, D11 and D13. 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
On the ICSP header.

These pins support SPI communication using the SPI library. Note: the SPI pins are not connected to any of the digital I/O pins as they are on the Uno. They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Leonardo's 6-pin ICSP header, the shield will not work.

AREF Reference voltage for the analog inputs.

Used with analogReference(). Sometimes used to set the external reference voltage (0-5 volts) as the upper end of analog input pins.

IOREF The voltage at which the i/o pins of the board are operating (i.e. VCC for the board).

This is 5V on the Leonardo. Used to configure the operating voltage of microcontroller.


Tips

  • Automatic (Software) Reset:

Rather then requiring a physical press of the reset button before an upload, the Arduino Nano is designed in a way that allows it to be reset by software running on a connected computer.

  • USB Overcurrent Protection:

The Leonardo has a resettable polyfuse that protects your computer's USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed.


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.
KS0313-1.png

Then click the SOFTWARE on the browse bar, you will have two options ONLINE TOOLS and DOWNLOADS.
KS0313-2.png

Click DOWNLOADS, it will appear the latest software version of ARDUINO 1.8.5 shown as below.
KS0313-3.png

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.

KS0313-4.png

KS0313-5.png

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.
thumb

Click“I Agree”to see the following interface.
thumb

Click “Next”. Pop up the interface below.
thumb

You can press Browse… to choose an installation path or directly type in the directory you want.
Then click “Install” to initiate installation.
thumb

Wait for the installing process, if appear the interface of Window Security, just continue to click Install to finish the installation.
thumb


Introduction for Arduino IDE Toolbar

Double-click the icon of Arduino software downloaded well, you will get the interface shown below.
Ks0313图片1.png
(Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page for details.)
717.png

The functions of each button on the Toolbar are listed below:
IDE.png

IDE 1.png Verify/Compile Check the code for errors
IDE 2.png Upload Upload the current Sketch to the Arduino
IDE 3.png New Create a new blank Sketch
IDE 4.png Open Show a list of Sketches
IDE 5.png Save Save the current Sketch
IDE 6.png Serial Monitor Display the serial data being sent from the Arduino



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.

Ks0248 Step2.jpg

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 Leonardo 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 Leonardo”.
Ks0248-DRIVER 1.png

Then right-click on the Arduino Leonardo and select the top menu option (Update Driver Software...) shown as the figure below.
Ks0248-DRIVER 2.png

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”.
Ks0248-DRIVER 3.png

After that, select the option to browse and navigate to the “drivers” folder.
Ks0248-DRIVER 4.png

Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”.
Ks0248-DRIVER 5.png

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.
Ks0248-DRIVER 6.png


Step3| Connect the board

Connect the Leonardo board to your computer using the USB cable. The power LED should go on.
KS0248 Step3.png


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.
Ks0313图片1.png

Ks0248 board.png


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.
Ks0248-DRIVER 6.png

Ks0248 port.png


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!");
}
}


Ks0248 code.png

Then click verify button to check the errors. If compiling successfully, the message "Done compiling." will appear in the status bar.
Ks0248 compile.png

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.
Ks0248 upload.png


Step7| Open the Serial Monitor

After that, click the button to open the serial monitor.
Ks0248 monitor 1.png

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 Leonardo R3 board successfully sends "Hello World!" to the computer, you should see the "Hello World!" is showed on the monitor, and TX led on the board flash once.
Ks0248 monitor 2.png


Package Included

  • keyestudio Leonardo R3 board * 1pcs
  • Black micro USB cable 1m * 1pcs


Package- ks0248.png


Resource Links

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

PDF:
https://fs.keyestudio.com/KS0248


Troubleshooting

If you have problems, please see the troubleshooting suggestions.



Shop Now