KS0547 Keyestudio NANO PLUS Development Board Compatible with Arduino NANO(Black and Eco-friendly): Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 31: Line 31:
{| class="wikitable"
{| class="wikitable"
|-
|-
! !! !!  
!             !!                   !!  
|-
|-
| 1 || ICSP Header  || ICSP (In-Circuit Serial Programming) Header
| 1 || ICSP Header  || ICSP (In-Circuit Serial Programming) Header

Revision as of 10:44, 24 May 2022


Description

The processor core of Keyestudio NANO PLUS is ATMEGA328P-AU. It is as same as the official Arduino Nano in addition to driver file and USB to serial chip (CH340G).

It also has 14 digital input / output interfaces (6 of which can be used as PWM output), 8 analog input interfaces, 1 16MHz crystal oscillator, 1 mini USB port, 1 ICSP interface and a reset button. The ICSP interface is used to program the Atmega328P-Au. We can supply power with a type-CUS cable or the port VIN GND (DC 7-12V)



Specification

  • Microcontroller: ATMEGA328P-AU
  • Operating Voltage: 5V
  • Input Voltage (recommended): DC 7-12V
  • Digital I/O Pins: 14 (D0-D13)
  • PWM Digital I/O Pins:6 (D3 D5 D6 D9 D10 D11)
  • Analog Input Pins: 8(A0-A7)
  • DC Current per I/O Pin: 40 mA
  • Flash Memory: 32 KB of which 2 KB used by bootloader
  • SRAM:2 KB
  • EEPROM: 1 KB
  • Clock Speed:16 MHz
  • LED_BUILTIN:D13


Pins

1 ICSP Header ICSP (In-Circuit Serial Programming) Header

ICSP is the AVR, an micro-program header consisting of MOSI, MISO, SCK, RESET, VCC, and GND. It is often called the SPI (serial peripheral interface) and can be considered an "extension" of output. In fact, slave the output devices under the SPI bus host. When connecting to PC, program the firmware to ATMEGA328P-AU.

示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例
示例 示例 示例



Specialized Functions of Some Pins:

  • Serial communication: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data.
  • PWM (Pulse-Width Modulation): D3, D5, D6, D9, D10, D11
  • External Interrupts: D2 (interrupt 0) and D3 (interrupt 1). 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. 
  • SPI communication: D10 (SS), D11 (MOSI), D12 (MISO), D13 (SCK).
  • IIC communication: A4 (SDA); A5(SCL)

Windows System

Installing Arduino IDE

When getting this control board, we need to install Arduino IDE Enter the website https://www.arduino.cc/, click thumb and thumb


thumb

Select the version you want to download, the latest version could be downloaded.


thumb

Alternatively, you could select previous release. In this project, we use 1.8.12 version.


thumb

Clickthumb to view the below page


thumb


Click thumb to download an installer of Arduino 1.8.12 version,which needs to be installed manually. When you tap thumb,a zip file of Arduino 1.8.12 version will be directly downloaded, and you only need to unzip it to finish installation.


thumb

Click thumbicon to download Arduino IDE.

Download CH340 driver:

https://sparks.gogo.co.nz/ch340.html

Installing the Driver

The driver will be installed after downloading Arduino IDE.

If your system is Windows 10, the computer will automatically install driver.
For other systems, like Windows7, we need to install driver manually.
The USB to serial chip of control board is CH340G, therefore, we will install the driver(usb_ch341_3.1.2009.06) for it.
Connect control board to computer with USB cable.
Click Computer----- Properties----- Device Manager, as shown below:


Ks0354 driver 1.png

Then right-click on the device and select the top menu option (Update Driver Software...) shown as the figure below.
Ks0354 driver 2.png

Then it will be prompted to either “Search Automatically forupdated driversoftware” or “Browse my computer for driver software”. Shown as below. In this page, select “Browse my computer for driver software”.
Ks0354 driver 3.png

After that, select the option to browseand navigate to the “drivers” folder of usb-ch341 installation.
Ks0354 driver 4.png

Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”.
Ks0354 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.
KS0173----1.png



Arduino IDE Setting

Clickthumb icon,open Arduino IDE.


thumb

To avoid the errors when uploading the program to the board, you need to select the correct Arduino board that matches the board connected to your computer. Then come back to the Arduino software, you should click Tools→Board, select the board. (as shown below)


thumb

Then select the correct COM port (you can see the corresponding COM port after the driver is successfully installed)


thumb

thumb

Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar.
0085=17.png

A- Used to verify whether there is any compiling mistakes or not. B- Used to upload the sketch to your Arduino board. C- Used to create shortcut window of a new sketch. D- Used to directly open an example sketch. E- Used to save the sketch. F- Used to send the serial data received from board to the serial monitor.

Start your first program

Open the file to select Example, choose BLINK from BASIC, as shown below:


048610png.png

0498-----7.png

Set board and COM port, the corresponding board and COM port are shown on the lower right of IDE.


0498-----4.png

Click 0486-20.png to start compiling the program, check errors.


0498-----5.png

Click 0486-23.pngto upload the program, upload successfully.


0498-----6.png

Upload the program successfully, the onboard LED lights on for 1s, lights off for 1s. Congratulation, you finish the first program.


MAC System

Install Arduino IDE on MAC System

The installation instruction is as same as the chapter 5.1, as shown below:


图片8883.png

Download the Driver of CH340

https://fs.keyestudio.com/CH340-MAC

How to Install teh Driver of CH340

Please refer to the following link: https://wiki.keyestudio.com/Download_CH340_Driver_on_MAC_System

Setting Arduino IDE

The setting method is as same as the chapter 5.6 except from COM port, as shown below:


0173+图20.png