Skip to content

Version 1.1

Compare
Choose a tag to compare
@AlexKlimaj AlexKlimaj released this 06 Jul 17:44
· 7 commits to master since this release
467c6fb

This version adds a calibration feature to the ADC in addition to other improvements.

Once you flash this firmware from V1.0, you will need to run the calibration. It gets saved into one time programmable memory, so you will only have to do it once.

Hook up a DC power supply set to 3V-4V to the balance connection cells 1-4 and to the positive of the XT60 connector. Measure the input voltage with a multimeter, then in the LiPow command line, run "cal" followed by the voltage input in mV. It is a float and my meter is 5 digit so I've been entering something like "3849.3". It will take that input voltage and calculate the ADC scalars to compensate for the 1% resistor voltage dividers. You can check the output by running the "stats" command and checking that the voltages all are close to your input voltage. If you are happy with the calibration, you can save it to one time programmable flash with the "write_otp" command. You can run that command up to ~30 times and it will always use the latest saved calibration. You should only need to do it once though if you get a good calibration the first time. You can reflash the firmware without erasing the calibration once it is in the one time programmable memory.