Vin arduino nano что это

Arduino Nano: распиновка, схема подключения и программирование

Плата Arduino Nano — аналог флагманской Uno в миниатюрном размере. На ней предусмотрено всё необходимое для удобной работы с микроконтроллером: 14 цифровых входов/выходов (6 из них могут использоваться в качестве ШИМ-выходов), 6 аналоговых входов, кварцевый резонатор на 16 МГц, разъём Mini-USB, разъём питания, разъём для внутрисхемного программирования (ICSP) и кнопка сброса.

Видеообзор

Подключение и настройка

Для запуска платформы скачайте и установите на компьютер интегрированную среду разработки Arduino IDE.

При выборе платформы выбирайте Arduino Nano.

Если всё получилось — можете смело переходить к экспериментам.

Элементы платы

Микроконтроллер ATmega328P

Сердцем платформы Arduino Nano является 8-битный микроконтроллер семейства AVR — ATmega328P с тактовой частотой 16 МГц. Контроллер предоставляет 32 КБ Flash-памяти для хранения прошивки, 2 КБ оперативной памяти SRAM и 1 КБ энергонезависимой памяти EEPROM для хранения данных.

Микросхема FT232R

Микросхема FTDI FT232R обеспечивает связь микроконтроллера ATmega328P с USB-портом компьютера. При подключении к компьютеру Nano определяется как виртуальный COM-порт.

USB-UART преобразователь общается с микроконтроллером ATmega328P по интерфейсу UART через пины 0(RX) и 1(TX) . Рекомендуем не использовать эти контакты в своём проекте.

Светодиодная индикация

Имя светодиода Назначение
RX и TX Мигают при обмене данными между Arduino Nano и ПК.
L Пользовательский светодиод подключённый к 13 пину микроконтроллера. При высоком уровне светодиод включается, при низком – выключается.
ON Наличие питания на Arduino Nano.

Разъём Mini-USB

Разъём Mini-USB предназначен для прошивки платформы с помощью компьютера.

Регулятор напряжения 5 В

Линейный понижающий регулятор напряжения LM1117MPX-5.0 с выходом 5 вольт обеспечивает питание микроконтроллера ATmega328P и другой логики платформы. Максимальный выходной ток составляет 800 мА.

ICSP-разъём для ATmega328

ICSP-разъём предназначен для загрузки прошивки в микроконтроллер ATmega328 через программатор.

Также через контакты ICSP Nano общается с платами расширения по интерфейсу SPI.

Источник

Arduino nano распиновка

Arduino Nano — это небольшая и дружественная к макету плата с микроконтроллером. Плата разработанна итальянской компанией Arduino.cc на основе ATmega328p (Arduino Nano V3.x) / Atmega168 (Arduino Nano V2.x).

Описание пинов

У ардуино нано распиновка выполнена так, как показано на картинке ниже:

Ардуино нано распиновка

  • Vin. Это входное напряжение питания платы при использовании внешнего источника питания от 7 до 12 В.
  • 5V. Это регулируемое напряжение питания платы, которое используется для питания контроллера и других компонентов, размещенных на плате.
  • 3.3В. Это минимальное напряжение, генерируемое регулятором напряжения на плате.
  • GND. Это штыри заземления. На плате имеется несколько заземляющих контактов, которые могут быть соответствующим образом соединены, когда требуется более одного заземляющего контакта.
  • RST. Пин сброса, который сбрасывает плату. Это очень полезно, когда запущенная программа слишком сложна и зависает. Низкое значение на выводе сброса приведет к сбросу контроллера.
  • A0-A7. Аналоговые контакты. На плате есть 8 аналоговых контактов, помеченных как A0 — A7. Эти контакты используются для измерения аналогового напряжения в диапазоне от 0 до 5 В.
  • Rx,Tx. Эти контакты используются для последовательной связи, где Tx представляет передачу данных, в то время как Rx представляет приемник данных.
  • D13. Этот вывод используется для включения встроенного светодиода.
  • REF. Этот вывод используется в качестве опорного напряжения для входного напряжения.
  • ШИМ. Шесть контактов 3,5, 6, 9, 10, 11 могут использоваться для обеспечения 8-канального выхода ШИМ (широтно-импульсной модуляции). Это метод, используемый для получения аналоговых результатов с цифровыми источниками.
  • SPI. Четыре контакта 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK) используются для SPI (последовательный периферийный интерфейс). SPI является интерфейсной шиной и в основном используется для передачи данных между микроконтроллерами и другими периферийными устройствами, такими как датчики, регистры и SD-карта.
  • Прерыватель. Контакты 2 и 3 используются как внешние прерывания, которые используются в случае чрезвычайной ситуации, когда нам нужно остановить основную программу и вызвать важные инструкции в этот момент. Основная программа возобновляется после вызова и выполнения инструкции прерывания.
  • I2C. Связь I2C разработана с использованием выводов A4 и A5, где A4 представляет собой линию последовательных данных (SDA), которая переносит данные, а A5 представляет собой последовательную линию синхронизации (SCL), которая является тактовым сигналом, генерируемым ведущим устройством, используемым для синхронизации данных между устройства на шине I2C.

Распиновка ICSP

ICSP (In Circuit Serial Programming) — это один из нескольких методов, доступных для программирования плат Arduino. Обычно для программирования платы Arduino используется программа загрузчика Arduino, но если загрузчик отсутствует или поврежден, вместо него можно использовать ICSP. ICSP можно использовать для восстановления отсутствующего или поврежденного загрузчика.

Распиновка arduino nano icsp

Каждый вывод ICSP обычно соединен с другим выводом Arduino с тем же именем или функцией. Например, MISO в ICSP Nano подключен к MISO / цифровому выводу D12, MOSI в ISCP подключен к MOSI / цифровому выводу D11, и так далее.

Источник

Powering Alternatives for Arduino Boards

AUTHOR: JosГ© Bagur, Taddy Chung, Karl SГ¶derby

LAST REVISION: 10/05/2022, 01:00 PM

Arduino boards can be powered in several ways; we can use dedicated connectors (USB ports, barrel jacks or battery connectors) or dedicated pins. One fundamental question that usually arises when using an Arduino board in real-life applications is what dedicated power connector or pin we should use. This article will describe the main characteristics and correct use of power pins and connectors of Arduino boards.

Powering Alternatives

Arduino boards have five options in which they can be powered:

Powering via USB connector

Powering via the onboard barrel jack connector (if available on the board)

Powering via the onboard battery connector (if available on the board)

Powering via the VIN (Voltage In) pin

Powering via the 3V3/5V pin*

* Powering your board via the 3V3/5V pins is not recommended, as it can damage your board’s voltage regulator. Read more here.

This article will examine these alternatives more in-depth.

USB Connector

The most common and easiest way we can power an Arduino board is by using its onboard USB connector. The USB connector provides a regulated 5V line to power the board’s electronics. However, 5V from the USB connector can also power external components through the 5V pin that can be found in Arduino boards.

Micro USB connector of the Arduino Nano RP2040 board.

Something important about the USB connection is the current rating of the USB host device. For example, a USB host device can be a computer; this means that the computer’s USB port is the 5V power source of the Arduino board connected to it. Besides USB ports of computers, we can also use power banks, for example, as power sources for Arduino boards. Power banks usually have one or more USB outputs that provide regulated 5V lines at different current ratings. Arduino boards that run at 5V use the USB-regulated 5V line directly, boards that run at 3V3 regulate the 5V line from the USB connector to 3V3 using their onboard voltage regulator. Output current rating from the 5V pin will vary, depending on the 5V power source.

Current from USB ports of computers is usually limited to 500mA.

Barrel Jack Connector

Some Arduino boards have an onboard barrel jack connector that is used to connect external power supplies. The Arduino boards with an onboard barrel jack connector are the following:

Arduino boards with onboard barrel jacks are configured with positive polarity; this means a negative sleeve and a positive pin. Boards with an onboard barreljack use a negative 5.5mm sleeve and a 2.1mm positive pin

Barrel jack connector of the Arduino Zero board.

The voltage line from the barrel jack connector is regulated in Arduino boards using their onboard voltage regulator; usually, it is first regulated to 5V and then regulated again to 3V3 in most Arduino boards. The recommended voltage and current ratings for external regulated DC power supplies connected to the barrel jack connector are summarized in the table below:

Board External Power Supply Voltage (V) External Power Supply Current (A)
Arduino UNO Rev3 7-12 1
Arduino UNO WiFi Rev2 7-12 1.5
Arduino Leonardo 7-12 1
Arduino Mega 2560 Rev3 7-12 1
Arduino Due 7-12 1.5
Arduino Zero 5-18 1

Battery Connector

Some Arduino boards have an onboard battery connector to connect a battery to the board and use it as its primary or secondary power supply. The Arduino boards with an onboard battery connector are the following:

Pro family boards use a 3-pin, 1.2mm SMD ACH battery connector; MKR family boards use a 2-pin, 2mm SMD PH battery connector.

Battery connector of the Arduino MKR WAN 1310 board.

The boards mentioned before have an onboard integrated battery charge management circuit. This circuit integrates the most common battery and power management functions, like a battery charger, a voltage regulator, and a load switch, all in one.

Arduino boards with an onboard battery connector can work with single cell 3V7 Li-Ion and Li-polymer batteries.

VIN Pin

The VIN pin in Arduino boards is a power pin with a dual function. This pin can work as a voltage input for regulated external power supplies that do not use a barrel jack connector. This pin can also work as a voltage output when an external power supply is connected to the barrel jack connector present in some Arduino boards. An important consideration is that the VIN pin is connected directly to the input pin of the onboard voltage regulator on Arduino boards. Since the VIN pin is directly connected to the voltage regulator, the VIN pin does not have reverse polarity protection.

Use the VIN pin carefully to avoid damaging your Arduino board since it does not have reverse polarity protection.

The minimum and maximum voltages that can be applied to the VIN pin are determined by the onboard voltage regulator on Arduino boards, varying from board to board. Those voltages are summarized in the table below:

Board VIN Voltage (V)
UNO Mini 5-18
UNO Rev3 7-12
UNO WiFi Rev2 7-12
UNO Rev3 SMD 7-12
Leonardo 7-12
Mega 2560 Rev3 7-12
Due 7-12
Micro 7-12
Zero 5-18
Portenta H7 5
Nicla Sense ME 5
Nano RP2040 Connect 5-18
MKR NB 1500 5-7
MKR GSM 1400 5-7
MKR Vidor 4000 5-7
MKR WiFi 1010 5-7
MKR Zero 5-5.5
MKR1000 WIFI 5-5.5
MKR WAN 1300 5-5.5
MKR WAN 1310 5-7
Nano 7-12
Nano Every 7-18
Nano 33 IoT 5-18
Nano 33 BLE 5-18
Nano 33 BLE Sense 5-18

3V3/5V Pin

3V3 and 5V pins are also power pins with a dual function. They can work as power outputs since these pins are directly connected to the onboard 3V3 and 5V voltage regulators outputs (depending on the board). Moreover, 3V3 and 5V pins can also be used as power inputs if no regulated power supply is connected through the other power inputs (USB port, barrel jack connector or VIN pin).

Since 3V3 and 5V pins are directly connected to the onboard’s 3V3 and 5V voltage regulators outputs, these pins have no reverse polarity protection. Use them carefully when working as power inputs to avoid damaging your board’s voltage regulator.

Although 3V3 and 5V pins can be used as power inputs, it is not recommended if no power supply is connected through the USB port, the barrel jack connector, or the VIN pin. 3V3 and 5V pins are connected directly to the onboard voltage regulator’s output pin. Suppose the voltage in the voltage regulator output pin becomes higher than the input voltage of the voltage regulator. In that case, a large current may flow into the voltage regulator from its output pin to its input pin. That large current can permanently damage your board’s voltage regulator.

It is safe, but not recommended, to apply a voltage to the 3V3 or 5V pins that are not higher than the input voltage of the voltage regulators.

The maximum current that can be drawn from the 3V3 and 5V pins when working as power outputs are summarized below. Notice that these currents can be provided by the 3V3 and 5V onboard voltage regulators, or from the power source connected to the board:

Board 5V Pin Output Current (A) 3V3 Pin Output Current (A)
UNO Mini 1 0.5
UNO Rev3 1 0.15
UNO WiFi Rev2 1 0.5
UNO Rev3 SMD 1 0.15
Leonardo 1 0.15
Mega 2560 Rev3 0.8 0.05
Micro 1 0.15
Zero 1 0.5
Portenta H7 1
Nicla Sense ME* 0.5
Nano RP2040 Connect 1
MKR NB 1500 0.5
MKR Vidor 4000 1 0.3
MKR WiFi 1010 1 0.5
MKR Zero 0.5
MKR1000 WIFI 0.5
MKR WAN 1300 0.5
MKR WAN 1310 0.5
Nano 0.8 0.15
Nano Every 1 0.5
Nano 33 IoT 1 0.5
Nano 33 BLE 1
Nano 33 BLE Sense 1

Choosing a Power Input

Now that we know more about the powering alternatives of Arduino boards, we can answer that question we made at the beginning of this article about what power connector or pin we should use. When choosing a power connector or pin for a specific application or project, we should consider the available power source and the power budget of our application or project.

A power budget analyzes how much power our application or project requires for its correct working.

Let’s talk about when it is recommended to use each of the options ways in which Arduino boards can be powered:

USB Connector

This option is often recommended when experimenting with small loads that require 5V; the current would be constrained by the USB host device where the board is connected.

Barrel Jack Connector

This option is recommended when a regulated power supply with a barrel jack connector is available. Current is constrained by the regulated power supply and the onboard voltage regulator.

Battery Connector

This option is recommended for portable projects or projects that need a secondary o backup power supply. Currently, 3V7 Li-Ion and Li-polymer batteries are supported only; the battery’s capacity constrains current.

VIN Pin

This option is recommended when a regulated power supply without a barrel jack connector is available. Take into account that using VIN pin should be made carefully since this pin does not have reverse polarity protection. Current is constrained by the regulated power supply and the onboard voltage regulator.

3V3/5V Pin

Avoid this option since the risk of damaging the onboard voltage regulator is high. It can be done safely if the applied voltage to the 3V3 or 5V pins is not higher than the input voltage of the voltage regulators.

Further Reading and Resources

If you want to learn more about power supplies, check out the following links:

  • Power supplies are one of the most popular and most needed electronic testing equipment. Check out more about them in this guide from BK PrecisionВ®.
  • LiPo batteries are everywhere. Check out this guide from Roger’s Hobby Center to learn more about LiPo batteries.

Источник

Adblock
detector