The aim of the project is to power x4 Li-ion chargers + Arduino Nano + other small bits from the laptop PSU. I only ever want to use the PSU so i should not be switching power sources.
I am getting my 4.30v ref from a potentiometer connected to 5v and GND
It was set to output 4.30v when laptop PSU was connected. When powered by USB its drops to 3.94v so adjustment is required.
As for the code, for example purposes it can just be a simple read and display:
void setup(){
analogReference(EXTERNAL);
analogRead(0);
Serial.begin(115200);
}
void loop(){
Serial.print(analogRead(A0) * 4.30 / 1023.0, 3);
delay(100);
}
Testing a 3.923v cell with the above code (powered by just USB) yields a result of 3.919v
However, when the PSU is the power source the result is is around 3.012v
And yes, it is the same project.
So you think it is capacitor related then?
