Camila_99$$
Camila_99$$
DIIDevHeads IoT Integration Server
Created by Camila_99$$ on 8/26/2024 in #pcb-and-analog
Why Does My ATTiny85 Analog Input Return a Constant Value After 24 Hours?
Hi, I’m trying to get the value of my battery using an analog input of my ATTiny85 to create a gauge. To do this, I made a voltage divider to avoid draining too much battery. The problem is that I don’t understand why, after letting my project (which includes sensors and a screen) run for more than 24 hours, I’m still getting an input value of 512 with an analogRead(). I haven’t applied any calculations yet, just retrieving the value from my voltage divider. But this value doesn’t budge at all... I’m using a 3.7V 400mAh LiPo battery. Here’s my schematic.
7 replies