Mbili : supply for USB or battery

Hi there,

How can I know if my Mbili board is powered by the USB or by the battery ?

Kind regards,

I do not believe it is possible with the current setup.

However, you could possibly connect the 5V line via a voltage divider (to get it down to under 3.3V to one of the IO pins and then test the state of that pin. You will probably need a pull-down resistor as well so that the pin doesn’t float when the USB is not connected.

Thanks Gabriel ; I thought indeed of the hardware way… but I’d like to try the software way first.

Since the FT232RL is only ON when USB connected, is there’s a way to test the RX/TX activity?