Description
The processor core of the UNO R3 BOARD is ATMEGA328P-PU, which is fully compatible with
ARDUINO UNO REV3. It comes with 14 digital input/output pins (six of which can be used as
PWM output), 6 analog inputs, a 16MHz crystal oscillator, a USB port, a power interface, an ICSP interface, and a reset button.
Among them, ICSP can burn firmware for ATMEGA328P-PU. Since we have burned the firmware for this chip before it go out, so it is generally not used. When in use, we power the board
through the USB cable, external DC power supply (DC 7-12V), or the Vin GND (DC 7-12V).
Parameters
- Main control chip: ATMEGA328P-PU
- Operating voltage: 5V
- Input voltage (Recommended) : DC 7-12V
- Digital I/O Pin: 14 (DO-D13)
- PWM digital I/O pin: 6 (D3 D5 D6 D9 D10 D11)
- Analog input pin: 6 (A0-A5)
- DC current per I/O pin: 20 MA
- 8.DC 3.3V current pin: 50MA
- Flash memory: 32 KB (ATMEGA328P-PU), 0.5 KB of which is used bybootloader
- SRAM:2 KB (ATMEGA328P-PU)
- EEPROM: 1 KB (ATMEGA328P-PU)
- Clock speed: 16 MHz
- LED_BUILTIN:D13
- Developmentboard size: 68.7MM×53MM×12MM
- Developmentboard weight:19.3G
- Operating temperature: 0℃~50℃
Pin-Out
Special Interfaces
Serial communication port: D0 is RX, D1 is TX
PWM interface (pulse width modulation) : D3 D5 D6 D9 D10 D11
External interrupt interfaces: D2(interrupt 0) and D3 (interrupt)
SPI communication interface: D10 is SS, D11 is MOSI, D12 is MISO, and D13 is SCK
IIC communication ports: A4 for SDA, A5 for SCL
Product Guide
Download Arduino IDE(WIN10/MAC)
First of all, we need to download and install the Arduino IDE.
You can download Arduino IDE at:
https://www.arduino.cc/en/software/
Choose the version compatible with your computer system.
Download the latest IDE version 2.3.4
After that, install the software.
Remember the installation path to make sure you can find the file next time. Click Install.
The Arduino IED is downloaded and installed here.
Download USB driver
Next, download the CH340 driver. Driver download:
https://www.wch.cn/downloads/category/67.html
First, choose the same chip model as your board.
Then, download the driver according to your computer system.
Windows Driver
Select the Windows version of the driver, click to download, and then find the download icon in the upper right corner to open the downloaded file.
Then click install.
Then check to see if the driver installation is successful. After connecting the control board to your computer by a USB cable, open the Device Manager.
Open the device manager.
If you see a yellow mark, try re-installing or changing to another interface.
The following port without a yellow mark means that the driver is installed.
Mac Driver
After opening the installation package, we get these three files. Put the three files in one folder please! Then click the file suffix PKG to install it.
Install it. Still remember the installation path!
Burn Code on Arduino IDE
Click Arduino IDE:
and connect it to the development board and COM port. Be sure to select the correct development board, otherwise it fails to connect!
Enter the board name to select the board model, connect to the port, and click OK.
Press Ctrl+N or click the folder icon to open a new script. You will see the following interface:
Copy and paste the following code inside. Please delete its own content.
int val; //set variable
int ledpin=13; //set led pin to 13
voidsetup (){
Serial.begin (9600); //set baud rate
pinMode (ledpin,OUTPUT); //set pin mode
}
voidloop ()
{
val=Serial.read (); //assign serial values
if (val=='R')//determine the serial value
{
digitalWrite (ledpin,HIGH); // light on
delay (500); //delay 500 ms
digitalWrite (ledpin,LOW); // light out
delay (500); //delay 500 ms
Serial.println ("Hello World!"); //serial outputs Hello World!
}
}
After that, let's compile and burn codes on it. First click the Check icon to see prompts and show compiling results. If no error is reported in the "Output" area, you can click the arrow icon to proceed.
Open the Serial Monitor to check that the code baud rate is consistent with the software baud rate. Type a letter R into it and press Enter to display "Hello World". At the same
time, the onboard LED will also flash.
Troubleshooting
Fails to Connect to Serial Port
- Check whether the driver is installed successfully. If not, reinstall the CH340 driver.
- See if the type-c interface and data cable can be replaced, or the computer interface can be re-plugged.
Fails to Burn Code
- Check whether the development board and port are selected correctly. If not, select the board model and port again.
- Check if the code is correct. Copy and paste the text code into it.
- Check whether the port is loose. Reinsert the port.
- Close the software and restart the computer.