Getting started with Arduino
WHAT IS ARDUINO?
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It’s intended for anyone making interactive projects.
ARDUINO SOFTWARE
You can tell your Arduino what to do by writing code in the Arduino programming language and using the Arduino development environment.
1. Download arduino IDE
A. Windows System
You could download Arduino IDE from the official website: https://www.arduino.cc/
Enter the link and click SOFTWARE:
There are various versions of IDE for Arduino. Just download a version compatible with your system.
Here we will show you how to download and install the windows version of Arduino IDE.
There are two versions of IDE for WINDOWS system. You can choose between the installer (.exe) and the Zip file. For installer, it can be directly downloaded, without the need of installing it manually while for Zip package, you will need to install the driver manually.
You just need to click JUST DOWNLOAD.
B. Mac System
The versions of Arduino IDE vary from operation systems.
For how to download Arduino IDE on Mac, please refer to Windows:
After downloading, double-click to open it and follow the installation instructions.
C.Detailed installation steps:
1.Save the .exe file downloaded from the software page to your hard drive and simply run the file .
2.Read the License Agreement and agree it.
3.Choose the installation options.
4.Choose the install location.
5.Click finish and run Arduino IDE
2. Install Driver
We need a driver to boot our development board. Or else, the COM port connected to computer will not be found.
Select the corresponding development board and computer system in the table and click the link to enter the tutorial:
Sku |
Development Board |
Image |
Windows System |
MAC System |
---|---|---|---|---|
ks0497 |
keyestudio V4.0 |
|||
ks0498 |
keyestudio MEGA |
|||
ks0486 |
keyestudio Plus |
|||
ks0499 |
keyestudio MEGA Plus |
|||
ks0173 |
keyestudio NANO |
|||
ks0546 |
keyestudio 328 PULS |
|||
KS0413 |
keyestudio ESP32 |
|||
KS5016 |
keyestudio ESP32S |
|||
KS0389 |
keyestudio ESP8266 |
3. Arduino IDE Settings
Clickicon to open Arduino IDE.
“File”: Including New Sketch, Open…, Sketchbook, Examples, Close, Save(Save as…), Preferences, Advanced…, etc.
“Edit”: Including Copy, Paste, Auto Format, Increase/Decrease Font Size, etc. Commonly, you can use shortcuts to do these operations.
“Sketch”: Including Verify/Compile, Upload, Include Library, etc.
“Tools”: Including Board and Port, which are two of the most important functions.
“Help”: Including Check for Updates as well as some official data references.
“Serial Plotter”: To display the data from serial port in the way of a line chart.
“Serial Monitor”: To prints the data from serial port.
Verify code.
Verify and upload code.
“Sketchbook”: To create a new sketch, or sign in to Arduino Cloud to sync and edit your Cloud Sketches.
“Boards Manager”: To install or remove development board.
“Library Manager”: To install or remove library.
“Debug”: To monitor code and debug breakpoints.
Search.
Sketch editing area.
IDE Output: To report error or successful uploading, and to display data from serial monitor.
4. Upload Code via Arduino IED
Example of using Keystudio Plus UNO for tutorials marked with ‘/’
Development board |
windows system |
MAC system |
---|---|---|
Keyestudio Plus UNO |
||
Keyestudio NANO |
/ |
/ |
Keyestudio MEGA 2560 |
/ |
/ |
Keyestudio Leonardo |
/ |
/ |
Keyestudio Micro pro\por Mini |
/ |
/ |
Keyestudio ESP32\ESP32 Plus |
||
raspberry pi pico |
5. Import Library
First of all, the corresponding Arduino library files are required.
A. What are Libraries ?
Libraries are a collection of code that make it easy for you to connect a sensor,display, module, etc.
For example, the built-in LiquidCrystal library helps talk to LCD displays.
There are hundreds of additional libraries available on the Internet for download. The built-in libraries and some of these additional libraries are listed in the reference.
If there is an error ‘No such file or directory’ when compiling or uploading code, it means the library file is missing. As shown in the figure below, the error occurred when uploading LCD1602 module code due to the missing ‘LiquidCrystal_I2C’ library file.
B. How to Install a Library ?
Let's take adding the "LiquidCrystal_I2C" library file as an example.
Here we will introduce the most simple way to add libraries.
Click Skerch > Include Library > Add .Zip Library… in sequence.
Find files(.zip) you need to add as library and wait. “Library installed” will be displayed if library is successfully added.
Dynamic operation example:
For how to include a library, the method of the two system is the same.
For more details, please visit our official website: https://www.keyestudio.com/