¡¡¡¡¡¡Hello!!!!!!
I have read many forum topics, until I confirm that the best way to read a voltage from the LIPO battery is by using the internal Arduino reference [AnalogReferenceArduino](http://Hello! I have read many forum topics, until I confirm that the best way to read a voltage from the LIPO battery is by using the internal Arduino reference https://www.arduino.cc/reference/en/language/functions/analog-io / analogreference / ,,, I have used this scheme that I got in this forum from one of its members ,,, It works perfect ,,, lowers the voltage of all cells between 0.85 and 0.90, then you only have to read by The Analog Pin that you have used, if at that moment it gives us a raw value of 820, because to complete the 1.1v we do this simple formula, float volts = (analogRead (A0) * 4.555) / 1024; and we have the volts of the battery, if the value falls to 700 it would be about 3.3V and the alarm would go off if we wanted to. This is wonderful but I also need to measure the current with the ACS714 current sensor Pololu - ACS714 Current Sensor Carrier -5A to +5A, I understand that the only way to be able to read the voltage of the LIPO and the current of the components that I use It would be to change from AnalogReference (INTERNAL) to (DEFAULT) every time you want to read current or voltage, discarding the first values as the datasheet says, my question is, Is there another way to use the current sensor and read the battery voltage without having to change the analog reference from internal to default using just an arduino board? Thanks) ,,, I have used this scheme that I got in this forum from one of its members @Wawa,,,
It works perfect ,,, lowers the voltage of all cells between 0.85 and 0.90, then you only have to read by The Analog Pin that you have used, if at that moment it gives us a raw value of 820, because to complete the 1.1v we do this simple formula, float volts = (analogRead (A0) * 4.555) / 1024; and we have the volts of the battery, if the value falls to 700 it would be about 3.3V and the alarm would go off if we wanted to.
void setup() {
// put your setup code here, to run once:
analogReference(INTERNAL);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
float volts = (analogRead(A0) * 4.55)/1024;
Serial.print("Valor bruto: ");
Serial.println(analogRead(A0));
Serial.print("Volts: ");
Serial.println(volts);
}
This is wonderful but I also need to measure the current with the ACS714 current sensor Pololu - ACS714 Current Sensor Carrier -5A to +5A, I understand that the only way to be able to read the voltage of the LIPO and the current of the components that I use It would be to change from AnalogReference (INTERNAL) to (DEFAULT) every time you want to read current or voltage, discarding the first values as the datasheet says, my QUESTION is:
-Is there another way to use the current sensor and read the battery voltage without having to change the analog reference from internal to default using just an arduino board?
Thanks!!!!!!!!!!