Battery status monitoring no longer working

Hi,

Just loaded and run the Module 4-1 code and found that the battery status monitoring is not working as expected.  When I loaded and (first) ran the Module 3.3 code the battery  monitoring worked as expected.

Now with no battery connected the first battery voltage reading after loading the code reads as about 3V, subsequents reads return somewhere between 5V-6V, I was expecting to read 0V as per the video.

Then with the battery connected each attempt to read the battery voltage returns with the raw ADC value max'ed out at 1023.

Not sure what i can be doing differently. The only possibility that I can think of is that I have (unintentionally) moved the position of slider switch S1 (to OFF).  But if I put it in the other position (ON) the code will not load.  If not to do with the position of S1, could this be a hardware fault?

I have attached a text file saved from the serial monitor output when I tried to re-run Module 3.3, in order to show the ADC values read.

Thanks,

Phil Young

serial_monitor_log_-_battery_reading_problem.txt


Hi Phil.

If it's a hardware fault, it could be intermittent soldering at the resistors that divide the battery voltage down or a bad soldering pin on the microcontroller. Can you take a photo of both sections for me as close as you can get? I've enclosed a photo of the sections that could be at fault below. If there's a hardware issue, we'll ship out another board to you at no cost. 

Also can you post the code you're using or let me know if you're using the stock code from github. 

Thanks!

Akiba

Hi Phil.

No problem and thanks for taking the time to get the pictures and uploading the code. I will try to duplicate the problem here. If I'm unable to, then we can just assume there is a hardware issue and we'll send out a replacement board. I can't seem to see any solder faults, but there are plenty of hardware issues that could happen. I'll give it a test and post my findings here.

Akiba