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.txt24 February 2021 11:52pm
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
2 March 2021 2:26am
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
3 March 2021 10:34am
Hi Phil.
I checked and there's no problem with your code. It looks like it's a hardware issue. I'll be sending out a replacement board to you. Can you confirm your address via DM, just so that I can make sure I don't send it to the wrong place?
Thanks
Akiba
3 March 2021 9:33pm
Hi Akiba,
Please see the email sent to [email protected].
Many thanks for your assistance.
Phil Young
Akiba
Freaklabs