What is Arduino and how to use it?

Many of us are wondering how everything is arranged everywhere, because such is human nature. From birth, we ask our parents about the hitherto unknown how everything works, by what algorithms it works, and so on.

Now many people use computers, but the question of how it works is of some concern to some. Therefore, one part teaches programming at home, and the second at universities.

For one and the other in this article we will tell you what Arduino is, why it is recommended for beginner programmers to buy it, and how it works. This article is intended for novice programmers or confident users of the Windows operating system.

History of Arduino

In the distant zero years, programming was just beginning to gain momentum around the world. But at that time there were no such β€œsmart” learning applications, so some universities came up with their own personal teaching methods. So, one young programming teacher from Italy decided to create a cheap and multi-functional microcontroller that can teach any person the basics of programming both at a low level and at a software level.

Arduino circuit board

Success did not come immediately, but it did come anyway. First, a small company opened, where several friends of this same teacher made boards with him, soldered components and much more. The company was named in honor of the wineglass, which friends-employees went to after work. The glass itself is named after the Italian king Arduin of Hebrew.

So began the rapid growth of the company, right up to 2008, when there were exactly 2 sites on the network where completely different models of Arduino printed circuit boards were distributed. After some time (after 8 years), the two sites merged together. Maybe not everyone knows, but the IDE is used to program microcontrollers, and on these sites both IDEs were very different, which created chaos among users.

So we told you what Arduino is, and in the next paragraph we will analyze how to use the integrated development environment. The following paragraphs are recommended for reading, since they contain no less interesting facts about such a popular platform as Arduino.

Office Arduino

As already mentioned, the Arduino has a microcontroller. According to the developers, it is the ATmel microcontroller that does all the work in the best way, although many say that STM is much better. However, such options are also available on the official website, so we recommend that you visit it.

projects on arduino

So what is a microcontroller? Roughly speaking, this is a chip in which a certain kind of machine code is written , after which it is executed, using its own conclusions (physical, in the form of legs on a printed circuit board).

The number of available conclusions depends on the model of the microcontroller. As a rule, there are two types of conclusions: analog and digital. If you are special, then you should not explain, but to beginners we say: in a digital signal it has 2 values ​​(0 and 1), and in analog, the values ​​can start from 0 and end with 511 (in case the resonator has 512 signal levels).

In the next paragraph of the article, we will discuss such a thing as the Arduino Windows IDE. This is a special program that converts C ++ code to machine code so that the controller can execute it.

Work with the Arduino program

First you need to go to the official Arduino website. Fortunately, he is currently the only one. From here you need to download the special Arduino IDE for Windows application.

If you ask the programmer what Arduino is, he will surely say: this is a development environment for a microcontroller. The thing is that the company is more famous for its own libraries for working with different microcontrollers, so you will hear such an answer in 70% of cases.

arduino duet

Work with Arduino IDE:

  1. Download the application from the official site (preferably the latest version, since updating the libraries is a very important task for the programmer).
  2. Install in any accessible place, whether it be the desktop or the root folder of drive C.
  3. Launch the app. Before you open a new project with the functions loop () and setup ().
  4. In the settings, select your Arduino model, connect via USB cable and select it in the settings.
  5. Write an Arduino program in the wonderful C ++ language!
Arduino mini

Finally

We hope that after reading you understand what Arduino is, how to work with it and why this ambitious project was created at all. We recommend that you immerse yourself in the amazing and difficult world of programming, because this is our common future, which must be built right here and now.

Source: https://habr.com/ru/post/K2414/


All Articles