Hello!
I am relatively new with the Particle Photon but managed to set up my first project.
This project uses the MPR121 touch sensor and some neopixel RGB LEDs. I have powered this project with the Sparkfun Battery Shield and a 500mAh battery.
My device has a “charging” dock that works with a magnetic Mini-USB charger. (https://www.gotron.be/magneet-micro-usb-sync-en-laadkabel.html)
I would like to detect wheither it is powered through that mini-usb (and thus charging) or if it’s not connected and uses the battery.
I have read I can use the VIN-port for this, but I don’t see how.
Any suggestions / help would be greatly greatly appreciated.
Thanks
Niels