Max voltage for voltage meter

I have about 5 hours of experience with Arduino at this point so please bare with me.

I want to make a simple voltage meter using an Pro Mini 328 with a 1.8" TFT LCD display. I only need to check a max of 4.2v, one cell lipo.

I want to check each cell of a 2 or 3 cell lipo....3 cell is unlikely as I only use 2 cell lipo's to power the receiver's and ignition's in my RC planes.

I want to push a momentary switch and have the cell voltages displayed, as well it will tell me which battery it's reading.

So forget all the questions I'll have down the line about this I only want to know one thing right now.

Every volt meter I see is using a voltage divider. What is the max voltage that can be input on the sensing pins? If it's 5v max then I will not need a voltage divider...I cannot find this info anywhere.

Thanks

The analog input pins can read a voltage range of 0 to whatever Vcc is powering the AVR chip. Note the Pro mini boards can be had in 3.3vdc and 5.0vdc versions, so assuming you have the 5 volt version you would not require a voltage divider. Applying any negative voltage and any voltage above the chip's Vcc to a analog input (or digital for that matter) pin will result in pin damage.

Hello,

I have write a program in vb.net express to calculate the resistor's and create a template code for the voltage in and voltage out

I hope this it will help you and other people it was looking some similar solution.

BatteryMonitor.exe (98 KB)

Mine are 5V so a single cell voltage will work fine and keep it simple.

I bought two pro mini's, one to mess with and one to put in a plane. I loaded the program with no problem but I'm not sure what happened, when I wired up a 16x2 LCD I can no longer load a sketch on to it. Now I get avrdude: stk500_getsync(): not in sync: resp=0x00. Can't clear the eeprom so I assume I need to reload a boot loader.

I thought it was going to be a straight forward project....not.

I did not want to brick the other one so that is why I really wanted to be sure about the voltage.

Thanks for the information. At least now I can apply voltage and start getting a working program.

Rick

If you want load a new program disconnect the lines from Pin 0 and Pin 1 and try again.

If you have other free pins use it for the 2 lines you use now as Pin 0 and Pin1

Do you use external power supply ? and you try do the upgrade of the firmware ? if not ty or try to cut the power in the lcd display and try to upload.

Also try to see on arduino ide it is still available the serial port number you had at the first upload ?

I can program the other pro mini without any problems. The LCD was pulled from an old lipo charger and it was working when I pulled it so I don't think that was the cause. I checked and rechecked the wiring before I did anything and it was wired correctly.

One thing I didn't do was put a 10k pot for the contrast as I was more concerned with just having it say "hello world" and then at least I would know I had something to work with.

Once I saw that I had nothing on the LCD I disconnected it and was just going to start from scratch and clear the eeprom and that's when I got avrdude: stk500_getsync(): not in sync: resp=0x00.

I did the test that echo's what I type in on the serial monitor and that works fine so I don't the it's bricked.

I have a ISP programmer and I tried using that but for what ever reason that does not show up in the Arduino IDE.

I have to say I was very bummed that 10 minutes into this project I had a major problem, it's a good thing I bought two...I mean they were only 4 bucks each so I will get more but it sucks because it should be usable again if I can get it to respond.

I do have an external power supply that I am using for testing the voltage input however there was no voltage input applied during the initial LCD test.

I'm using a FT232RL USB to Serial adapter module USB TO 232 For Arduino to interface with the pro mini which from what I read had a reset line.

The TFT LCD should be here today and I'm hoping that works as I will NOT hook up the 16x2 LCD to the good chip and end having nothing to work with.

If I can the get first PM to work again then I have a back up to try the LCD again. I've read where it's possible to hold the reset button and release it at just the right time and sometimes that works, well it hasn't yet after about 50 tries. I could try and burn the bootloader hex file directly from avrdude but I really don't want to spend a ton of time messing with that yet.

I have never meet this problem on the pro mini and i have program too much times .... the programmer i use it is one like this http://www.ebay.com/itm/Brand-New-FTDI-Basic-6-PIN-3-3-5V-For-Arduino-With-Free-USB-Cable-/330939389684?pt=LH_DefaultDomain_0&hash=item4d0d8656f4

The message you got i have sometimes with the Leonardo board and the tip to avoid it is to press the reset button on board when the arduino ide finish the compile and try to start the upload.

You're programmer has 4 pins ? or 6 ?

It has 6 pins. http://www.ebay.com/itm/FT232RL-USB-to-Serial-adapter-module-USB-TO-232-For-Arduino-download-cable-/321327716609?ssPageName=ADME:L:OU:US:3160

How can I load the FW onto it....for that matter where can I find it?

EDIT: Things are getting very strange now. I plugged it in and I was able to clear the eeprom. I then was able to load a simple voltage sketch that prints out to the serial monitor and it was working, then it stopped...W T F.

The pin 6 programmer it is good but the male pins from programmer needs extra cable to connect to the pro mini male pins, am i write ?

If yes then did you do the follow connection ?

Pro mini Programmer
Rx Tx
Tx Rx

the rest you can see it from the picture above :slight_smile:

Just for information in case you have 4 pin then you can do this http://labalec.fr/erwan/wp-content/uploads/2013/08/pro_mini_programming_alternate_bb.png

Good luck

Best Regards,
Tasos

You are correct, it needs 6 male to male jumper wires. I chose this because it is what was available from the vender that I got the Pro mini.

Hooking it up is very simple, you match the BLK side on the pro mini to the BLK side of the FTDI and the wires go straight across.

It is not bad, but you must be careful with the cable connection :wink:

You can buy a cheap programmer like this http://www.ebay.com/itm/1pc-USB-RS232-TTL-PL2303HX-Auto-Converter-Module-Converter-Adapter-New-/121233021072?tfrom=111335281379&tpos=top&ttype=price&talgo=undefined

and use this http://labalec.fr/erwan/wp-content/uploads/2013/08/pro_mini_programming_alternate_bb.png to upload the code

Thanks for the links.

I have the second pro mini working with what I have so I'm good to go as far a controller.

My TFT screen http://www.ebay.com/itm/360830297720?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649 came today. I wired it up according to the sketch. The controller is running the sketch but I don't get anything on the display. I've been researching this for the last 7 hours and I'm at my wits end with it,

I'm going to post another question and see if I can't get some help with it.