swolebro / swolebro-youtube

Dumping ground for miscellaneous shit related to my YouTube videos.
26 stars 22 forks source link

NOT DISPLAYING RIGHT VOLTAGE #5

Open ALJAZHERO opened 2 years ago

ALJAZHERO commented 2 years ago

Hi @swolebro , I have build your THC. It seems to be working fine for the most just 1 thing is off. It displays wrong voltage. For example 11.0V instead of 110.0V. Do you have a sugestion what is wrong. Thanks

swolebro commented 2 years ago

I got a hunch the value for SCALE I provided here in thc.ino doesn't match your setup. What's the ratio on your voltage divider?

ALJAZHERO commented 2 years ago

Ratio is 50:1, the program is working fine just display is wrong

swolebro commented 2 years ago

Hm, any chance the wires for the LCD are mixed up? That's a longshot, but you might be getting "110" backwards.

What do you get if you hook the analog read pins up to a simple 1.5V battery? Or if you hook up a USB cable and do some debugging serial prints of the ADC counts?