I'm powering my Z-Uno with a (solar charged) 18650 battery on the 5V pin. Fully charged it's around 4.2V and can drop to about 3V, I'd like to configure my battery level to match this.
or do I also have to specify what pin I'm using (5V power pin and not the default 3V3 pin)? Or do I need custom code/ZUNO_SETUP_BATTERY_HANDLER to accomplish this?
If you use 5 V pin to power Z-Uno (in your case this is correct not to kill it by 4.2 V) the DC-DC will always give you 3V.
So you need to write a custom handler andeasure with ADC periodically the voltage on the battery (use voltage dividers with big R to adopt to 0-3 range and keep the current thru the divider small
If you use 5 V pin to power Z-Uno (in your case this is correct not to kill it by 4.2 V) the DC-DC will always give you 3V.
So you need to write a custom handler andeasure with ADC periodically the voltage on the battery (use voltage dividers with big R to adopt to 0-3 range and keep the current thru the divider small