I'm doing a project with esp32 devkit v4 and I'll be supplying it with external power (LiFePo4 3.2V cell). I want to do a protection in case the battery gets connected inversely. I searched about it and found the Diode in serie with the battery and something about mosfet p. In my case, I wouldn't lose a lot of voltage with that protection (with diode it's like 0.7 or 0.5V). The max current would be 500mA. Any solutions?