What Is the Vin Pin in Arduino
Arduino boards can be powered up using an external power supply through Vin pin. Vin pin has an advantage of great range of voltage supply over other two sources of power for Arduino. Arduino Vin pins can work in a dual way. This pin can provide Arduino boards with input regulated voltage supply or can act as a power source for external peripherals attached to Arduino boards. To get power from the Vin pin we need to connect an external power supply to the DC barrel jack of Arduino boards.

Another important thing to note is Vin pin is directly connected to on board voltage regulators which means Vin pin has no reverse polarity protection for current, as it bypasses the diode circuit attached with DC barrel jack. While connecting Arduino through Vin pin wires polarity must be taken into consideration otherwise a single wrong connection can burn the Arduino board.
Voltage Limits for Vin Pin
Like a DC barrel jack, Vin pin has also regulated voltage supply, so minimum and maximum voltages we can apply to Arduino boards are determined by an onboard voltage regulator. When giving supply to Arduino using Vin pin some voltages are lost in the 5V regulator in the form of heat dissipation. Minimum voltage which Vin pin requires for optimum and smooth working is 7V and it can handle a maximum of 20V, however the sweet spot for Arduino Uno Vin pin voltage is somewhere between 7-12V. Like the 5V regulator Arduino has also a 3.3V output pin which takes power from the 5V regulator and further reduces it down to 3.3V.
Here this table highlights a brief voltage limitation for Vin pins.
| Regulators | Minimum Input Voltage | Maximum Input Voltage |
|---|---|---|
| 5V | 7V | 20V |
| 3.3V | 3.58V | 16V |
Vin voltage ranges vary from board to board here this table will give an idea of some most popular boards and their voltage ranges Vin pin can handle:
| Board | Vin Voltage (Recommended) |
|---|---|
| UNO Mini | 5-18 |
| UNO Rev3 | 7-12 |
| UNO Wi-Fi Rev2 | 7-12 |
| UNO Rev3 SMD | 7-12 |
| Mega 2560 Rev3 | 7-12 |
Current Limits for Vin Pin
Vin pin currents limits can be determined by onboard voltage regulator circuit, usually Arduino has rated for 1A of maximum current it can handle through Vin. While regulating incoming voltages, Arduino on board regulators also take some current normally around 50mA.
Voltage regulators can hold up to 1A of current but as they heat up, they will automatically reset the Arduino board until cool enough to power the Arduino again. So a stable voltage supply with optimum current range can work with Arduino for a long time.
| Board | Maximum Current Using External Supply |
|---|---|
| UNO Rev3 | 1A |
| UNO Wi-Fi Rev2 | 1.5A |
| UNO Rev3 SMD | 1A |
| Mega 2560 Rev3 | 1A |
Note: Generally, Vin pin has no current limit, the only thing that limits current for Vin pin is voltage regulators as they reduce incoming voltages, they heat up which in turn resets Arduino automatically.
Conclusion
Arduino provides multiple ways of powering it is using different power sources. Vin pin is one of them as it gives freedom to Arduino users and enthusiasts to drive their project using a stable external supply for the long term. This pin can provide Arduino boards with input regulated voltage supply or can act as a power source for external peripherals attached to Arduino boards.
About the author

Kashif
I am an Electrical Engineer. I love to write about electronics. I am passionate about writing and sharing new ideas related to emerging technologies in the field of electronics.
How to Power Your Arduino? Vin, 5V, and 3.3V Pins.

The Vin, 5V, 3.3V, and GND pins are Arduino power pins.
You can use the Vin pin to Power your Arduino with an unregulated 7 to 12-volt power source. Like a 9V battery or a wall adapter that is in the range of 7 to 12 volts.
Alternatively, you can power your Arduino through the 5V pin with an external regulated 5V power supply. It can be a wall adapter that gives out constant 5V or a DC-DC converter that is connected to a battery or a set of batteries.
You can use both the 5V pin and the 3.3V pin to provide power to modules that are connected to the Arduino. But you can’t use the 3.3V pin to power your Arduino Uno/Nano.

There are four different ways to power an Arduino:
Arduino board has two power outputs:
This article applies to both Arduino Uno and Nano. Nano doesn’t have a barrel jack. But regarding everything else, it is identical to Uno.
Modules Used in This Article.




Disclosure: Bear in mind that some of the links in this post are affiliate links and if you go through them to make a purchase I will earn a commission. Keep in mind that I link these companies and their products because of their quality and not because of the commission I receive from your purchases. The decision is yours, and whether or not you decide to buy something is completely up to you.
Powering Your Arduino Via the Barrel Jack.
You can connect a 7 to 12 volt power supply to the barrel jack of your Arduino.
For example, a 9V battery. The tip of the barrel jack must be connected to the positive output of the power supply, and the sleeve of the power supply must be connected to the negative output of the power supply

Powering Your Arduino Via the Vin Pin.
Connect the positive output of your 7 to 12 volt power supply to the Vin pin of your Arduino, and the negative to the GND pin.

The Vin pin goes to the input of the onboard 5V regulator. The power source you connect to the Vin pin has to be 7 to 12 volts for the regulator to work reliably. It converts the unregulated input voltage to a stable 5V to be used by the Arduino.
The Arduino Vin pin and barrel jack are the same. The Vin pin is directly connected to the tip of the barrel jack. The sleeve is connected to the GND. This means that if you power your Arduino through the barrel connector, then you can use the Vin pin as a direct unregulated battery output.
Powering Your Arduino Via the 5V Pin.
If you have an external regulated power source that outputs 5 volts, then you can connect it directly to the 5V pin of the Arduino board. The input on the 5V pin should not exceed 5.5V volts!
If you want to use less than four AA batteries, then you can use a step-up boost converter to get the voltage up to stable 5V. Three AA batteries in series will give you 1.5 * 3 = 4.5V when full, and a little over 3V when almost empty. If electromagnetic noise isn’t an issue for you, then you can buy those cheap DC-DC converters off of eBay or from AliExpress.


I have made a video tutorial about running your Arduino on a single AA battery:
If the voltage of your power source is higher than 5V, then you can use a linear voltage regulator or a step-down buck converter.

Buck converters are more efficient than linear regulators. They transform the input power to a different voltage level. Linear converters «burn» the excess voltage and thus do not go well with batteries. They waste energy by turning it into heat. The benefit of a linear regulator is that it is less electromagnetically noisy. If this electrical interference doesn’t matter in your circuit, then you can buy the cheap DC-DC step-down buck converters off of eBay.
The 5V regulator on the Arduino board is also a linear regulator.
When you power your Arduino through the 5V pin, then the Vin pin is unused. You cannot power your sensors and modules from the Vin pin.
Powering Your Arduino Via the USB Cable.
If you connect the USB cable to your Arduino, then it provides regulated 5 volts directly to the board, and the 5V regulator is not used.
Just like with powering the Arduino directly from the 5V pin, the Vin pin will be left unused. You cannot power your sensors and modules from the Vin pin.
5V Pin as a Power Output.
You can use the 5V pin to power sensors and modules connected to the Arduino. You have to check if the module you are connecting supports 5V power. Some devices are designed for 3.3V only!
The 5V pin is limited to 500mA of current if you are powering the Arduino with a USB cable. The onboard voltage regulator is rated for 800mA, but due to power dissipation issues, you shouldn’t go over 400 to 500mA.
If you need more power for your modules, then you should use an external power source.
3.3V Pin as a Power Output.
You can use the 3.3V pin to power sensors and modules that need 3.3V power.
It can supply about 100 to 150mA of current. The 3.3V regulator is connected to the output of the 5V regulator. Drawing current from the 3.3V regulator will dissipate heat in both the 3.3V regulator and the 5V regulator. This means that if you connect a 3.3V device to the 3.3V pin, then it also limits the maximum current you can use for the 5V modules connected to the 5V pin.
What is the Vin Pin for?
I always asumed it was a different option to power the board, but it seems to act more like a 5V supply. What then is the difference between this pin and the 5V pin?
![]()
3 Answers 3
The Vin pin serves the same purpose as the barrel jack. The only difference is (usually) that it doesn’t go through the schottky protection diode that causes a small voltage drop.
Normally its voltage is at around 0.3-0.4V below whatever you feed into the barrel jack.
If you power from USB then the USB voltage (
5V) is «back-fed» through the 5V regulator to appear on the Vin pin. It’s not safe to use that power for anything since you could damage the 5V regulator if you do.
The pin is designed to either be used to power external higher voltage devices with power (almost) direct from the barrel jack (motors, etc), or to feed power in from an external source without using the barrel jack (great for a shield that can provide its own power source).
To answer this added question:
At the moment I am using it as a sort of 5V «virtual ground». Is this an okay use without damaging it? I have a camera which triggers when two wires coming from it are connected, so it triggers on a short
I certainly would not be using it as a 5V «virtual ground» — whatever that means. The Vin pin could easily be up around the 10V mark, depending on what you plug into the barrel jack.
I had a project a while ago where I wanted to trigger a camera flash. In the same way as you describe, two pins had to be shorted.
I wasn’t sure what voltages would be on them, or if there would be a spike, so I used an opto-coupler like this:

You need to identify by measuring with a meter which pin has the positive voltage on it. That would go to the collector of the transistor in the opto-coupler (pin 5 in this particular case).
I’m just not sure about connecting 5V directly to ground though. Do you think this will be safe?
We can probably assume that the current will be low, after all they wouldn’t short out the camera’s battery through that pin. Put your meter in current mode across the camera’s pin and measure the current when the pin is shorted (ie. the meter will short it).
If it is 20 mA or less then the Arduino digital pin can handle that. I imagine it will be a steady flow of current. I just measured my flash shoe with that method, and it seems to use a tiny fraction of current (0.1 mA).
So that should be safe, safer than your method with Vin anyway.
Then, when I want to trigger it I need to change the digital in pin to a digital out pin and enable the internal pull down resistor on this pin, effectively connecting this pin to ground, and shorting the two wires.
Sounds complex. Just make the pin LOW, and make it output to fire it. eg.
To activate camera:
Make sure you measure the pin and get the correct polarity. You want the positive side to go to the Arduino pin, and the negative side to Ground.
And make sure it isn’t higher than 5V. (Use voltage mode on the meter to check that).
Arduino Uno: распиновка, схема подключения и программирование
Arduino Uno — флагманская платформа для разработки на языке программирования С++.

Uno выполнена на микроконтроллере ATmega328P с тактовой частотой 16 МГц. На плате предусмотрены 20 портов входа-выхода для подключения внешних устройств, например плат расширения или датчиков.
Видеообзор
Подключение и настройка
Шаг 1
Подключите плату к компьютеру по USB. Для коммуникации используйте кабель USB (A — B). 
Шаг 2
Установите и настройте интегрированную среду разработки Arduino IDE.
Что-то пошло не так?
Пример работы
В качестве примера повторим первый эксперимент «Маячок» из набора Матрёшка. На плате уже есть встроенный пользовательский светодиод L , подключенный к 13 пину микроконтроллера.
После загрузки программы встроенный светодиод L начнёт мигать раз в секунду.
Это значит, всё получилось, и можно смело переходить к другим экспериментам на Ардуино.
Элементы платы

Микроконтроллер ATmega328P
Сердцем платформы Arduino Uno является 8-битный микроконтроллер фирмы Microchip — ATmega328P на архитектуре AVR с тактовой частотой 16 МГц. Контроллер обладает тремя видами памяти:
Микроконтроллер ATmega16U2
Микроконтроллер ATmega328P не содержит USB интерфейса, поэтому для прошивки и коммуникации с ПК на плате присутствует дополнительный микроконтроллер ATmega16U2 с прошивкой USB-UART преобразователя. При подключении к ПК Arduino Uno определяется как виртуальный COM-порт.
Микроконтроллер ATmega328P общается с ПК через сопроцессор ATmega16U2 по интерфейсу UART используя сигналы RX и TX , которые параллельно выведены на контакты 0 и 1 платы Uno. Во время прошивки и отладки программы, не используйте эти пины в своём проекте.
Светодиодная индикация
| Имя светодиода | Назначение |
|---|---|
| ON | Индикатор питания платформы. |
| L | Пользовательский светодиод на 13 пине микроконтроллера. Используйте определение LED_BUILTIN для работы со светодиодом. При задании значения высокого уровня светодиод включается, при низком – выключается. |
| RX и TX | Мигают при прошивке и обмене данными между Uno и компьютером. А также при использовании пинов 0 и 1 . |
Порт USB Type-B
Разъём USB Type-B предназначен для прошивки и питания платформы Arduino. Для подключения к ПК понадобится кабель USB (A — B).
Разъём питания DC
Коннектор DC Barrel Jack для подключения внешнего источника напряжения в диапазоне от 7 до 12 вольт.
Понижающий регулятор 5V
Понижающий линейный преобразователь NCP1117ST50T3G обеспечивает питание микроконтроллера и другой логики платы при подключении питания через разъём питания DC или пин Vin. Диапазон входного напряжения от 7 до 12 вольт. Выходное напряжение 5 В с максимальным выходным током 1 А.
Понижающий регулятор 3V3
Понижающий линейный преобразователь LP2985-33DBVR обеспечивает напряжение на пине 3V3 . Регулятор принимает входное напряжение от линии 5 вольт и выдаёт напряжение 3,3 В с максимальным выходным током 150 мА.
Кнопка сброса
Кнопка предназначена для ручного сброса прошивки — аналог кнопки RESET обычного компьютера.
ICSP-разъём ATmega328P
ICSP-разъём выполняет две полезные функции:
ICSP-разъём ATmega16U2
ICSP-разъём предназначен для программирования микроконтроллера ATmega16U2. А подробности распиновки читайте в соответствующем разделе.