Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years ago.
Detect when M3pi is charging
Hi!
We are doing a project, where we need to make a M3pi run for 24 hours... The batteries doesn't have that much power, so we are making a "Pit-Stop". So I figured out how to make it output, battery voltage, and that's all good, but when it goes under a margin we need it to stop when it's in the pit. The only way I can figure out how to make it stop when it's in the pit, is when it begins charging.
But how can I make a the M3pi make a return value when that happens?
(Another question which isn't related to the charging, do you know why the voltage is fluctuating so much? when I print the voltage value, it jumps up and down constantly, not a steady drop!)