Emergency Voltmeter for Drone

by ivver in Circuits > Arduino

3903 Views, 39 Favorites, 0 Comments

Emergency Voltmeter for Drone

12620554_823397884452435_1153096803_o.jpg
12570988_822814767844080_182382832_n.jpg

So, for the beginning I want to explain why I did it the way I did. I was flying my quad at night and crashed it in tall grass, after some time I found out that I lost my lipo baterry monitor and I still had few more fully charged batteries. So I went inside and take what I found laying around and made a quick voltmeter (that's why it looks like a piece of trash).

I found relays, arduino nano and few resistors to make voltage divider so I can read battery voltage. Just to mention, this device measures total voltage of 3 cells, not each separately, but same principle can be used for monitoring each cell , except that for first cell you don't need voltage divider because its max voltage already under 5V.

I decided to share this with you because if I was found in that situation then I'm not the only one, for sure. :)

Parts

12570878_822486247876932_97425976_n.jpg
12575920_822486294543594_1602234587_n.jpg
12625824_822486201210270_500012482_n.jpg

In the beginning I haven't planned to do this instructable so I took images of whole assembly later, I hope you'll get it, if not , feel free to ask in comments bellow, or in PM.

My cells were discharging at the same rate (+-0.1V max difference) so I could set min voltage limit 3x1S (min voltage) = 3x3.5V= 10.5V limit. For those who needs parts, you can find same here:

Arduino nano: http://www.banggood.com/ATmega328P-Arduino-Compati...

relay http://www.banggood.com/ATmega328P-Nano-V3-Contro...

or even better, a transistor switch: http://www.banggood.com/ATmega328P-Nano-V3-Contro...

and resistors, one 10k , second 20k ohm. If you will calculate costs you can easily see that it's more expensive than ordinary lipo battery monitor, but I had this laying around so all it cost me was about an hour or two of my time.

Connection Diagram

12631099_823389307786626_661456767_o.jpg
12630904_822869024505321_219685368_o.jpg

Everything was connected like shown in picture.

Program and Measuring Principle

12633100_823391941119696_1050229801_o.jpg
Screenshot_2.png
Screenshot_1.png

So, the question is, how to now exact voltage if you don't have any voltmeter (at least in my case). Answer, just connect the battery to your charger and read voltage on each cell. After that you scale your values on arduino so it shows real and precise values which you can use to set alarm conditions.

Program is relatively simple, program is calculating average from last 10 values which are stored in memory, on that way you get stable output, otherwise value was changed in tolerances +-0.2.

Low Battery Test

Here is quick test to see what happens when battery drops bellow limit

I hope you enjoyed this little tutorial, feel free to look at my others, thanks! :D