i thought when using the VBAT pin i get the (raw) battery voltage from BAT_IN?
Yes. If you connect the battery to BAT_IN, that voltage appears on VBAT. However, on 3.3v (the pin next to it) you'll get 3.3v OR 0.3v less than VBAT, whichever is smaller - because the voltage regulator always drops a little bit of voltage.
I'd definitely suggest a P channel MOSFET. Things get tricky when you have voltages above 3.3v (because the Pico's outputs only do 3.3v), but because you're running everything at 3.3v it's just a matter of connecting one between 3.3v, the Pico, and the display. Have you seen http://www.espruino.com/mosfets ?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes. If you connect the battery to BAT_IN, that voltage appears on
VBAT
. However, on3.3v
(the pin next to it) you'll get 3.3v OR 0.3v less than VBAT, whichever is smaller - because the voltage regulator always drops a little bit of voltage.I'd definitely suggest a P channel MOSFET. Things get tricky when you have voltages above 3.3v (because the Pico's outputs only do 3.3v), but because you're running everything at 3.3v it's just a matter of connecting one between 3.3v, the Pico, and the display. Have you seen http://www.espruino.com/mosfets ?