I did some research and did not find a quick answer so I will ask.
Is there a way to read the voltage coming in. I found a write up for Arduino and it sounded like you could just bring your voltage in across to an analog pin and read it.
Can you do something similar on a Teensy 3? If so, is there a current limit?
Also, is there a fairly simple way to tell, from in a sketch, whether you are running from USB power versus external?
What I want to do is write a charger routine, basically a fuel gauage, that would kick in when you plug in usb power. It would read the voltage coming across the external source and do an led thermometer type routine to indicate how far along the charge was.
Thank you in advance for any input.
Is there a way to read the voltage coming in. I found a write up for Arduino and it sounded like you could just bring your voltage in across to an analog pin and read it.
Can you do something similar on a Teensy 3? If so, is there a current limit?
Also, is there a fairly simple way to tell, from in a sketch, whether you are running from USB power versus external?
What I want to do is write a charger routine, basically a fuel gauage, that would kick in when you plug in usb power. It would read the voltage coming across the external source and do an led thermometer type routine to indicate how far along the charge was.
Thank you in advance for any input.