I have an ESP32 and a 6V 2A battery (it's a pack). I don't want to use a step-down (voltage regulator) to get 5V and be able to turn it on, to save and use less space. My question is:
Can I plug 6V into VIN (not just on the ESP32, but on any Arduino)? It's possible? What is the limit that the VIN port resists?
The voltage limitations are given the specifications .
You can often use one or more diodes to get the voltage to a lower level and connect to the 5v input .
Check your battery voltage first - it might be higher than you think when fully charged
6V on the Vin pin of an Arduino like the UNO, Mega, Pro Mini and similar, is too low.
6v on an ESP that needs only 3V3 should be okay, but we need to see the schematic to be 100% sure.
Suggest you use a Boost/Buck converter; either feed an output of 5V to the 5V pin on Arduinos first mentioned, or an output of 7V to these same Arduinos Vin pins. Always disconnect the Arduino USB to PC cable if you feed the Arduino via its 5v pin.
The voltage regulator actually has a dropout voltage of 1.2V ("worst case") so you should have at least 6.2V into it to maintain 5V out.
The Arduino will run with less than 5V but the battery voltage will drop as the battery is drained so it won't stay at 6V for long and you might not be able to use all of the rated amp-hours from the battery.