Checking battery status

Hey everyone,

I'm almost done with my rc car controlled by a yun and I would like to know if there is a way that the yun could detect when my batteyr is getting low. Cause when it's too low my car goes beserk and doesn't answer to my commands.

Thank you for the help

AllSystemGO:
Hey everyone,

I'm almost done with my rc car controlled by a yun and I would like to know if there is a way that the yun could detect when my batteyr is getting low. Cause when it's too low my car goes beserk and doesn't answer to my commands.

Thank you for the help

What battery? :grin:

Ok, more seriously, the Yun (or any Arduino) doesn't know/care if it is powered by a battery or not. It is to no difference if it is powered by a battery or by a more "permanent" power source. The best option to check for this is if you would use one of those battery charging shields on top on the Yun. They need to check for the battery level anyway in order to avoid overcharging, maybe some of them can provide that status somehow down to the Yun (or any other Arduino for that matter)...

Ralf

thank you for the answer I'll look into it.

Have a great day

You could use a voltage divider to bring the voltage from your battery under 5v, and read it eith analogRead()