10 years, 4 months ago.

Is there is way to Check out the voltage that supplied on the mbed board or Application board?

Hi I want to supply My mbed lpc 1768 by portable charger and I plug the micro usb either from mbed Application board or from mbed direct.. I want to write a code that help me to inform me by audiable that the battery level is law and theryby I am trying to find out a way to alert me that battery level is low.. Any help

1 Answer

10 years, 4 months ago.

You can use an Analog input to check the voltage. The function can be called at regular intervals using timer. You may have to use a resistor voltage divider to make that the analog input voltage stays within the allowed range of 0..3V3.