Boxodir Xoshimovich Karimov "Arduino and electronic creativity. Study guide"

The tutorial discusses the Arduino family, the installation of the Arduino and USB platform program, describes the process of writing sketches, assembling circuits, uploading sketches to a microcontroller, checking the circuit’s operability. Instructions for more than 10 experiments are also provided. The book is addressed to students, masters, university teachers, faculty and other specialists.

date_range Год издания :

foundation Издательство :Издательские решения

person Автор :

workspaces ISBN :9785005952271

child_care Возрастное ограничение : 12

update Дата обновления : 14.06.2023

Arduino Pro Mini can receive power: via an FTDI cable, or from aВ converter board, or from an adjustable 3.3V or 5V power supply (depending on the platform model) via the VCC pin, or from an unregulated source via the RAWВ pin.

Power terminals:

· RAW – for connection of unregulated voltage;

· VCC – for connection of regulated 3.3 V or 5 V;

· GND – ground terminals.

2.2. ArduinoВ Nano

The Nano platform (Fig. 2.2), built on the ATmega328 microcontroller (Arduino Nano 3.0) or ATmega168 (Arduino Nano 2.x), is small inВ size and can be used inВ laboratory work.

Fig. 2.2. Arduino Nano Board

The Arduino Nano can be powered via a USB Mini-B connection, or from an unregulated 6—20 V (pin 30) or an adjustable 5V (pin 27) external power supply. The source with the highest voltage is automatically selected.

The characteristics ofВ the Arduino Nano board are presented inВ TableВ 2.2.

2.3. ArduinoВ Uno

The Arduino Uno controller (Fig. 2.3) is built on the ATmega328 microcontroller. Unlike all previous boards that used the FTDI USB microcontroller for USB communication, the new Arduino Uno uses the ATmega8U2 microcontroller.

Figure 2.3. Arduino Uno Board

The characteristics ofВ the Arduino Uno board are presented inВ TableВ 2.3.

2.4. Arduino Mega2560

The Arduino Mega (Fig. 2.4) is built on the ATmega2560 microcontroller.

Рис. 2.4. Плата Arduino Mega2560

The characteristics ofВ the Arduino Mega2560 board are presented inВ TableВ 2.4.

Chapter 3. DOWNLOADING THE ARDUINO PROGRAM AND DRIVER

3.1. Downloading the Arduino IDE program

Arduino is an electronic designer and aВ convenient platform for the rapid development ofВ electronic devices for beginners and professionals. The platform has become popular all over the world due toВ the convenience ofВ the programming language, as well as open architecture and program code. It is programmed via USB without the use ofВ programmers.

The blue-green board is the Arduino. At its core, Arduino is aВ small personal computer that allows you toВ go beyond the virtual world into the physical world and interact with it. Arduino-based devices can receive information about the environment through various sensors, and can also control various actuators.

Arduino-based device designs can work independently or interact with computer software.

Consider the most popular versions ofВ Arduino (Nano, UNO, Mega,) used inВ the work.

Arduino UNO is aВ developer board, one ofВ several (Mega, Nano, etc.), based on the ATmega328 microcontroller. It is popular mainly because ofВ its extensive support network and versatility.

The Arduino UNO has 14 digital I – O ports, six of which can output PWM. There are also 6 incoming analog ports. There is a 16 MHz generator, a USB port, a power connector, a reset button, and an ICSP connector.

InВ order toВ get started with Arduino, you need toВ go toВ the website arduino.cc and download the Arduino IDE program from the Download section ver 1.8.19, completely free.

Fig.3.1. Computer operating systems

First specify the type ofВ operating system on your computer. Using any browser, enter the following inВ the addressВ bar:

Connect the Arduino Uno board toВ the computer use the USB cable included inВ the kit, connect the Arduino board toВ one ofВ the USB 2.0В connectors ofВ your computer.

3.2. Installing drivers

Depending on which operating system is installed on your computer, you need toВ choose the way toВ install the driver.

Below are the links and installation methods for the Arduino Uno board.

*You should pay very careful attention toВ the selection and installation ofВ drivers.

Installation for Windows

Follow the link below toВ access the installation instructions on aВ Windows computer.

http://arduino.cc/en/Guide/Windows

Installation for Macintosh OSВ X

There is no need toВ install additional drivers for Mac OS, but you can visit the В«quick startВ» page.

http://arduino.cc/en/Guide/MacOSX

Follow the link below toВ access the installation instructions on aВ computer running the Linux operating system.

http://www.arduino.cc/playground/Learning/Linux

Arduino IDE Program Interface:

This is how the Arduino IDE programming environment running on your computer looks like. We are starting toВ get acquainted with its interface. Now we will not touch the code, but only tell you about the purpose ofВ the function keys inВ the program menu.

The following shows the most important commands used inВ new projects, such as check, upload, new, open, save, serial monitor port, sketch name, code drop and message area. Sketches ofВ new projects are checked if loaded correctly. After that, the scheme should work. If the sketch and the diagram are incorrect, then the malfunction is eliminated. After all, the scheme should work.

Fig.3.2. Arduino IDE programming environment

3.3. Graphical user interface and the most important commands

Figure 3.3. Graphical user interface

Figure 3.4. The three most important commands inВ the Arduino IDEВ menu

Похожие книги


Все книги на сайте предоставены для ознакомления и защищены авторским правом