Arduino Russian version. Installing additional boards in the Arduino IDE

Let's take a look at getting started with Arduino on Windows using the Arduino Uno as an example. For other boards, the difference is minimal - these features are listed on the specific board description pages.

1. Installing Arduino IDE

Step 1

Select the version of the environment based on your operating system.

Step 2

Click on the "JUST DOWNLOAD" button to download the Arduino IDE for free.

2. Launching Arduino IDE

Start the Arduino IDE programming environment.

Arduino IDE won't start?

Most likely, the JRE (Java Runtime Environment) is not installed correctly on the computer. To solve the problem

3. Connecting the board to the computer

The operating system recognized the Arduino board as a COM port and assigned the number 2. If you connect another Arduino to your computer, the operating system will assign a different number to it. If you have multiple Arduino boards, it is very important not to get confused about the COM port numbers.

Something went wrong?

After connecting the Arduino to the computer, no new devices appear in the device manager? This may be due to the following reasons:

    Defective USB cable or port

    Locking from the operating system

    Defective Arduino board

4. Setting up the Arduino IDE

To configure the Arduino IDE with a specific Arduino platform, you need to select the name of the Arduino model and the number of the COM port assigned to the board.


In this example, we have selected the Arduino Uno board. In your case, select specifically your Arduino model.

Congratulations, the Arduino IDE is set up to flash your Arduino board.

Something went wrong?

The environment is set up, the board is connected. It's time to flash the platform.

Arduino IDE contains a large list of ready-made examples in which you can quickly spy on the solution to any problem. Let's choose the most common example - "Blink".

Modify the code a little to see the difference with the factory LED blinking.

Let's replace the line:

Delay (1000);

Delay (100);

Full version of the code:

void setup () ( // set pin 13 to exit mode pinMode (13, OUTPUT); ) void loop () ( // send a "high signal" to pin 13 digitalWrite (13, HIGH); // wait 100 milliseconds delay (100); // send a "low signal" to pin 13 digitalWrite (13, LOW); // wait 100 milliseconds delay (100); )

The "L" LED should now turn on and off every 100 milliseconds - 10 times faster than the original version. Upload the sketch to Arduino and test it.
After loading, the LED will start flashing faster. Everything worked out.

Something went wrong?

As a result of the download, an error of the form appears: avrdude: stk500_get sync (): not in sync: resp = 0x00? This means the Arduino is not configured correctly. Go back to the previous steps and make sure that the device was correctly recognized by the operating system, and that the correct COM port settings and board model are set in the Arduino IDE.

The Arduino development environment is a program code text editor, a message area, a text output window (console), a toolbar and several menus. For downloading programs and communication, the development environment is connected to the Arduino hardware.

Where can I download it?

The latest version can always be found on the official website arduino.cc

What operating systems does it access for?

Windows, Mac, Linux

Is there a complete, official reference for Arduino programming?

Yes, but unfortunately only in English. Link.

Let's move on to an overview of the environment itself. At the time of this writing, the most recent version is 1.0.5. It is the review of this version that we will conduct. By the way, have you already installed your Arduino board? No? We have for you :)

The concepts of "sketch", "compilation" and other basic definitions can be found in the following article: "". For now, let's just look at the basic functionality of the Arduino IDE.

"File"... Omitting the obvious menu items, I would like to mention such an item as "Sketch folder". By default, the Arduino IDE saves each sketch to a separate folder. The folder name is the same as the name specified for the sketch when you saved it. You can change the working directory for folders with sketches in the "Settings" menu item.

On the menu "Edit" commands for working with the code of your program are located. Frequently used commands come in handy with shortcuts for keyboard shortcuts. Convenient functions are the ability to copy for forums and in html format, which allows you to share your sketches, keeping the markup clear in the form of BB codes or html markup, respectively.

"Sketch"... The command from the control panel "Check / Compile" is duplicated in this menu. The execution of which will lead to checking your code for errors, and if they are absent, to compilation.

The "Show Sketch Folder" menu item will open the Arduino IDE working directory specified in the settings.

"Add file ..." allows you to open a text file (or sketch) in a separate tab.

I would also like to dwell on the import of libraries. Arduino IDE contains many pre-installed libraries. A list of them, as well as a reference manual in English, can be found at arduino.cc.

Libraries add additional functionality to sketches, for example, when working with hardware or when processing data. One or more directives #include will be placed at the beginning of the sketch code with subsequent compilation of the libraries and together with the sketch. Loading libraries requires additional space in the Arduino's memory. To install third-party libraries, you can use the "Import Library ..." / "Add Library ..." command:

Alternatively, it is possible to add libraries directly to the working directory in the libraries folder. This approach requires a restart of the IDE.

On the menu "Service" you need to specify the model of your Arduino board, as well as the COM port to which it is connected.

A handy feature is auto-formatting, which allows you to fix flaws in the layout of the sketch and make it readable. Especially important when copying third-party programs.

The Arduino IDE allows you to upload bootloader to atmega microcontrollers. The device used is indicated in the "Programmer" menu item. The "Write bootloader" command directly fills the bootloader for the specified board model.

Menu item "Port Monitor" calls a window to exchange messages with arduino via COM port:

"Reference": Menu items lead to related articles on the official website (English).

The control panel commands, as we can see, duplicate the most relevant menu items.

This concludes our Arduino IDE review. As always, we are ready to answer any questions that arise in the comments. Stay with us:)

Useful links:

MariaMole Is an open-source project that implements an alternative Arduino IDE for advanced users.

Setting up Eclipse to work with the Arduino Uno.

The Arduino development environment consists of a built-in text editor for program code, a message area, a text output window (console), a toolbar with buttons for frequently used commands, and several menus. For downloading programs and communication, the development environment is connected to the Arduino hardware.

Download
Serial Monitor

Displays the data sent to the Arduino board (USB board or serial bus board). To send data, you must enter the text and press the Send or Enter button. Then the baud rate is selected from the drop-down list corresponding to the value Serial.begin in the sketch. On Mac or Linux OS, the Arduino platform will reboot (sketch start over) when serial bus monitoring is connected.

It is possible to exchange information with the platform through the programs Processing, Flash, MaxMSP, etc. (see details on the interface description page).

Settings

Some settings change in the window Preferences(Arduino menu on Mac OS or File menu on Windows and Linux). The rest of the settings are in the file, the location of which is specified in the Preferences window.

Platforms

The choice of platform affects: the parameters (eg CPU speed and baud rate) used when compiling and loading sketches and the bootloader recording settings of the microcontroller. Some platform characteristics differ only in the last parameter (Bootloader loading), so even with a successful boot with the appropriate selection, it may be necessary to check the difference before writing the Bootloader.

  • Arduino BT
    The clock frequency of the ATmega168 is 16 MHz. Bootloader loading occurs together with codes for initializing the Bluetooth module.
  • LilyPad Arduino with ATmega328
    The ATmega328 has an 8 MHz (3.3 V) clock speed with automatic reboot capability. Matches Arduino Pro or Pro Mini (3.3V, 8MHz) with ATmega328.
  • LilyPad Arduino with ATmega168
    The clock frequency of the ATmega168 is 8 MHz.

    The loaded Bootloader has a long timeout (upon reboot, the pin 13 LED blinks three times), because original LilyPad versions do not support automatic reboots. Also, no external clock is supported and hence the Bootloader configures the loading of the internal 8MHz clock into the ATmega168.

    If you have a later version of the LilyPad (with 6-pin software input), you must select an Arduino Pro or Pro Mini (8 MHz) with an ATmega168 before loading the Bootloader.

  • Arduino Pro or Pro Mini (3.3V, 8 MHz) with ATmega328
    The ATmega328 has an 8 MHz (3.3 V) clock speed with automatic reboot capability. Matched to LilyPad Arduino with ATmega328.
  • Arduino Pro or Pro Mini (3.3V, 8 MHz) with ATmega168
    The ATmega168 is clocked at 8 MHz (3.3 V) with automatic reboot capability.
  • Arduino NG or earlier with ATmega168
    The clock frequency of the ATmega168 is 16 MHz, no automatic reboot possible. Compilation and upload is the same as Arduino Diecimila or Duemilanove with ATmega168, but Bootloader booting has a long timeout (on reboot, pin 13 LED blinks three times).
  • Arduino NG or earlier with ATmega8
    The clock speed of the ATmega8 is 16 MHz, no auto-reboot option.

Arduino is a controller program for programming various automatic devices.

Application

Arduino software consists of several parts - a development environment and a board. First you need to download the program. There should be no problems with downloading and using it, since the software is distributed completely free of charge and has Russian-language localization. After that, you should buy a special board. Keep in mind that there is no point in installing the software without purchasing it.

The board itself is needed in order to connect various elements to it, such as light bulbs, motors, sensors, speakers and other parts. Well, with the help of the controller, it will be possible to write a program that will control all this created device. Among other things, Arduino can connect to software installed on the user's computer. Among those programs with which it integrates are Pure Data, Macromedia Flash, Super Collider and several others.

Interface

The Arduino's interface is pretty laconic. On the top bar you can find the "File", "Edit", "Sketch", "Tools" and "Help" buttons. There are also several function keys under them, whose functionality can be understood by the icons present on them. The development environment includes a slightly primitive code editor, a compiler and a module with which you can download firmware to the board using a USB cable. To use all these modules, you need to be proficient in the C ++ programming language, since the writing of firmware will take place exactly on the "pluses".

Key features

  • allows you to create robotic devices and fully control them;
  • when installing the software, you must additionally buy a board and USB;
  • suitable for beginner programmers;
  • interacts with some of the programs installed on the PC;
  • uses the C ++ language when programming;
  • supports all current versions of Windows;
  • includes a compiler and debugging tools;
  • has a very pragmatic graphical interface.

Let's take a look at getting started with Arduino on a Windows operating system. Take the Arduino Uno platform as an example. For other boards, the difference is minimal.

Installing the Arduino IDE

First, you need to install the Arduino integrated development environment - Arduino IDE on your computer. Due to the war between Arduino SRL and Arduino LLC, depending on the platform model, choose the Arduino IDE version.

Download Arduino IDE 1.6.4 - d for all platforms except Arduino Leonardo ETH and Arduino M0 (stable version from Arduino LLC).

Launching the Arduino IDE

After you downloador and installed the Arduino IDE, let's get it running! A window should open as in the picture below.

Something went wrong?

    Arduino IDE won't start? The JRE (Java Runtime Environment) is probably not installed correctly on the computer. Refer to item (1) to reinstall the Arduino IDE: the installer will do all the work of deploying the JRE.

Connecting Arduino to Computer

After installing the Arduino IDE, it's time to connect the Arduino platform to your computer.

Connect the Arduino to your computer via a USB cable. You will see the "ON" LED on the board light up and the "L" LED will start blinking. This means the board is powered on and the Arduino microcontroller has started to execute the factory-programmed "Blink" (LED blinking) program.

To configure the Arduino IDE to work with a specific Arduino, we need to find out which COM port number the computer assigned to this platform. To do this, go to the Windows "Device Manager" and open the "Ports (COM and LPT)" tab. We should see the following picture:


This means that the operating system recognized our Arduino board as a COM port, matched the correct driver for it, and assigned this COM port number 2. If we connect another Arduino to the computer, the operating system will assign a different number to it. Therefore, if you have multiple Arduino boards, it is very important not to get confused about the COM port numbers.

Something went wrong?

If after connecting the Arduino to the computer, no new devices appear in the device manager, this may be due to one of the reasons:

    Defective USB cable or port

    Locking from the operating system

    Defective Arduino board

Setting up the Arduino IDE to work with the Arduino

Now we need to tell the Arduino IDE that the board it will communicate with is on COM port 2.

To do this, go to the menu: Tools Port and select the "COM2" port. Now the Arduino IDE knows that something is on the "COM2" port. And with this "something" she will soon have to communicate.

So that the Arduino IDE has no doubts, we need to tell the Arduino IDE which board we will work with. To do this, go to the menu: Tools Pay and select the "Arduino Uno" board.

The Arduino IDE now knows everything it needs to flash the Arduino.

Something went wrong?

    Is the serial port list empty? This means the Arduino is not properly connected. Return to step (3) to debug the connection.

    Arduino IDE is incredibly slow when navigating menus? Disable all external Bluetooth Serial devices in Device Manager. For example, a virtual device to connect to a mobile phone via Bluetooth may cause this behavior.

The environment is set up, the board is connected. Now you can proceed to download the sketch.

The Arduino IDE contains a lot of ready-made examples in which you can quickly spy on the solution to any problem. There is also a simple example of "Blink" in it. Let's choose it.

Modify the code a little to see the difference with the factory LED blinking.

Instead of a line:

write:

Full version of the code:

void setup () (// set pin 13 to output mode pinMode (13, OUTPUT);) void loop () (// send a “high signal” to pin 13 digitalWrite (13, HIGH); // wait 100 milliseconds delay ( 100); // send a "low signal" to pin 13 digitalWrite (13, LOW); // wait 100 milliseconds delay (100);)

The "L" LED should now turn on and off every 100 milliseconds. That is 10 times faster than the factory version. Let's upload our sketch to Arduino and check if this is so?

After loading, the LED will start flashing faster. This means that everything worked out. Now you can safely go to ""

Something went wrong?

    The download results in an error like avrdude: stk500_get sync (): not in sync: resp = 0x00? This means that the Arduino is not configured correctly. Go back to the previous steps to make sure the device was recognized by the operating system and the correct settings for the COM port and board model are set in the Arduino IDE.