ttrftech / NanoVNA

Very Tiny Palmtop Vector Network Analyzer
1.09k stars 305 forks source link

Calibration of voltage level indicator #90

Closed pedjas closed 5 years ago

pedjas commented 5 years ago

It is reported that battery voltage measurement is not precise due to various didoes used to add this feature.

It would be good to have an option to calibrate level measurement by letting user measure actual battery voltage and then set that voltage as calibrated value.

This does not even need graphical interface. Calibrating using console would be ok, as it is needed just once - after diode is installed.

edy555 commented 5 years ago

Thank you for proposal. However, I think, it is caused that customers use various diodes as D2. It should be a specific diode when manufactured. Flash memory is very short, so there is no room for it. I will not add that feature.

zstadler commented 4 years ago

@edy555,

It is my understanding that the NanoVNA LED stops blinking when the battery is fully charged. If the firmware is responsible for the blinking, would it be possible to sample the D2 voltage when the battery is fully charged and use that value instead of manual calibration?

If this approach is possible, it would have several advantages:

pedjas commented 4 years ago

NanoVNA-Q 0.4.3 added vbat_offset command (allows to set battery diode offset)

qrp73 commented 4 years ago

If the firmware is responsible for the blinking

firmware is not responsible for charge diode blinking. It is done inside charge controller IP5303 and don't depends on firmware at all.