Menu
Close
SIGN IN REGISTER
Forgot password?
Close
Cart
21.07.2023

How to Program Arduino? How to Use Arduino?

How to Program Arduino? How to Use Arduino?

 
In this blog post, we will cover how to get started with Arduino programming for beginners, including how to connect Arduino Uno or other Arduino models to your computer, how to upload software to it, and how to install libraries for the components we will use with Arduino.
 

Connecting Arduino to the Computer

 
If the Arduino model we are using is original or Arduino Uno R3 DIP, we can directly connect it to the computer with the cable that comes with the product. The computer will automatically recognize Arduino. If your board is Arduino Uno R3 SMD CH340 Chip model, you need to install a driver for the CH340 chip. After this installation, your Arduino will work seamlessly. You can download the driver by clicking here.
 

Uploading Software to Arduino

 
There are several steps we need to follow to upload a program to the Arduino board. First, we need to download the software compatible with our operating system from the official Arduino website. After downloading and installing the software on our computer, we will encounter a screen like the one below. 
 
 
From this screen, we will select our Arduino model under Tools > Board:, and then select the port our Arduino is connected to on the computer under Tools > Port. Then, by clicking the Upload button, we can upload our software to the Arduino board.
 

Adding Libraries to Arduino

 
Libraries are compiled versions of the code necessary for hardware components such as sensors, screens, etc., to work with Arduino. For example, when using an LCD screen with Arduino, specific commands need to be written. Later, the screen can work with the Lcd.begin command. However, if these specific codes are not written, the screen will not work. But when a ready-made library is selected, the necessary codes start working in the system, and you only need to give the begin command.
 
Adding Arduino Library
To add a library to Arduino, you can use the Sketch > Include Library section as shown in the image on the left. From here, you can use the existing libraries in the Arduino software, download and install a new library from the internet, and write your own library codes.