Hello UUGear Support,
I am experiencing a reproducible issue with the voltage measurement on the Witty Pi 5, which appears to cause false low-voltage shutdowns.
My setup is:
-
Raspberry Pi 5
-
Witty Pi 5
-
Firmware: v1.7
-
Witty Pi software: 5.2.0
-
12 V AGM battery system
-
Victron SmartSolar MPPT 75/15
-
Witty Pi powered from the Victron LOAD output
-
Main wiring: 2.5 mm², reduced to 1 mm² only for the short (5cm) connection to the Witty Pi V-IN terminal
The battery voltage reported by the Victron remains stable and does not show the large voltage fluctuations reported by the Witty Pi.
The problem first became noticeable because the Witty Pi repeatedly triggered low-voltage shutdowns.
Examples from the Witty Pi log include:
Power low: Vin=11910mV, Vlow=12300mV
Power low: Vin=12194mV, Vlow=12300mV
For troubleshooting, I temporarily reduced the low-voltage threshold to 11.5 V. Even then, I received:
Power low: Vin=11494mV, Vlow=11500mV
After shutdown, the reported input voltage immediately recovered.
To investigate this further, I continuously logged V-IN, V-OUT and I-OUT approximately once per second.
In a longer measurement lasting approximately 4 hours and 38 minutes, I recorded 15,867 samples.
The normal V-IN value was very stable around 12.3–12.5 V:
-
Average V-IN: approximately 12.38 V
-
Median V-IN: approximately 12.37 V
However, there were isolated extreme readings that lasted only one sample and then immediately returned to normal.
For example:
17:31:43 – V-IN: 12.407 V
17:31:44 – V-IN: 12.362 V
17:31:45 – V-IN: 11.095 V
17:31:46 – V-IN: 12.309 V
17:31:48 – V-IN: 12.354 V
There are also spikes in the opposite direction:
15:43:41 – V-IN: 12.398 V
15:43:42 – V-IN: 13.647 V
15:43:43 – V-IN: 12.424 V
15:43:44 – V-IN: 12.354 V
These changes happen within one second and do not appear physically plausible.
The same behaviour can also be observed with V-OUT.
During the same long-term test, reported V-OUT values ranged from approximately:
-
Minimum: 4.067 V
-
Maximum: 7.205 V
For example:
14:45:37 – V-OUT: 5.432 V
14:45:38 – V-OUT: 7.205 V
14:45:39 – V-OUT: 5.423 V
14:45:40 – V-OUT: 6.496 V
The Raspberry Pi continued running normally during these readings.
If the Raspberry Pi had actually been supplied with more than 7 V or approximately 4 V, I would expect instability or hardware problems. Therefore, these values strongly appear to be measurement/ADC outliers rather than actual voltage changes.
During the long-term measurement I also recorded:
-
112 V-IN readings below 12.0 V
-
59 readings below 11.8 V
-
27 readings below 11.5 V
Most of these readings are isolated single-sample events surrounded by normal values around 12.3–12.5 V.
I also checked whether these voltage drops correlate with Raspberry Pi load. There is essentially no meaningful correlation between V-IN and I-OUT. High Raspberry Pi current does not consistently result in lower V-IN.
To rule out a defective individual Witty Pi 5, I tested a second Witty Pi 5 on the same Raspberry Pi power setup and wiring.
The second unit generally behaves more consistently, but it also produces occasional isolated and implausible V-IN and V-OUT readings.
Therefore, I suspect that the issue may be related to the ADC measurement, voltage calculation or filtering rather than the external power supply.
This is particularly important because the low-voltage shutdown appears to react to these short measurement outliers.
Could you please clarify the following?
-
Is this a known issue with the Witty Pi 5 voltage measurement?
-
Is the low-voltage shutdown triggered by a single V-IN measurement?
-
Are multiple samples averaged or filtered before a low-voltage shutdown is triggered?
-
Is there any debounce time or minimum duration for which V-IN must remain below the threshold?
-
Is it possible to configure averaging or filtering for V-IN?
-
Could these readings be caused by ADC reference instability, I²C communication or another firmware/software issue?
-
Are there any firmware changes planned to reject isolated voltage outliers?
-
Would you currently recommend disabling the Witty Pi low-voltage protection when an external battery protection system such as the Victron LOAD output is already being used?
I can provide the complete CSV measurement file and Witty Pi log files for both units if required.
I have attached the long-term CSV recording containing the approximately 15,867 voltage and current samples.
Thank you very much for your help.
Best regards
Thank you for your detailed report and for providing the CSV data. We appreciate the effort you put into investigating this issue.
At this point, we are not aware of any confirmed voltage measurement issues with Witty Pi 5. However, the isolated voltage spikes in your data are certainly worth investigating.
After reviewing the firmware v1.7 source code, we can clarify a few things:
-
Voltage measurements are currently based on single ADC conversions, without averaging or outlier filtering.
-
The firmware checks the voltage approximately once per second. A single reading below the configured low-voltage threshold is sufficient to trigger a shutdown request. There is currently no debounce time or configurable filtering for this behavior.
-
The low-voltage shutdown decision is made entirely within the firmware, using its own ADC measurements. It does not depend on voltage readings transferred to the Raspberry Pi via I²C. Although the software includes some I²C read validation mechanisms, they do not affect the firmware's low-voltage shutdown logic.
We cannot yet determine whether the abnormal readings originate from the ADC, the actual input voltage, or another cause. We will attempt to reproduce the behavior on our side and investigate further. Depending on the findings, we may consider improving the measurement filtering or low-voltage detection logic.
Regarding the Victron LOAD output, please note that its battery protection may disconnect power abruptly, without giving the Raspberry Pi time to shut down gracefully. Therefore, we would not generally recommend disabling Witty Pi's low-voltage protection solely because an external battery protection system is present.
It would be helpful if you could also share the Witty Pi firmware logs (WittyPi5.log), particularly those covering the unexpected shutdowns, and the logs from your second Witty Pi 5 if available.
Thank you again for bringing this to our attention.
Hi @Admin,
sorry for the late response.
First of all, thank you for your detailed answer.
I am aware that the Victron LOAD output cuts the power abruptly without allowing the Raspberry Pi to shut down gracefully. This is exactly why I chose to use the Witty Pi for low-voltage protection.
The low-voltage setup I am currently using is:
-
12.3 V low-voltage cut-off on the Witty Pi
-
12.0 V low-voltage cut-off on the Victron LOAD output
-
12.5 V recovery voltage on the Victron LOAD output
-
12.7 V recovery voltage on the Witty Pi
The Victron LOAD output supplies a fuse box. The individual outputs are used for:
-
a small LTE router
-
the Witty Pi / Raspberry Pi 5
-
a USB charger
-
a stabilized DC-DC converter supplying a Shelly module
I measured the voltage at several points using a 20,000-count multimeter.
The measured voltages were:
-
12.560 V directly at the batteries
-
12.535 V at the Victron LOAD output
-
12.535 V directly at the Witty Pi V-IN terminals
I also checked the complete wiring, connections and terminals and could not find any problems.
In addition, I am running a separate voltage logger on the Raspberry Pi 5. The voltage recorded there remains stable and does not show the abnormal voltage spikes reported by the Witty Pi 5.
On Monday, I will perform another test using a regulated DC bench power supply set to approximately 12.5 V. This should help determine whether the same abnormal readings also occur with a very stable external DC supply.
The low-voltage feature of the Witty Pi 5 is very important for my application and was one of the main reasons why I chose the Witty Pi.
We are also currently developing a system in which we may need several additional Witty Pi 5 units in the future, so I would really like to understand and resolve this issue.
I have attached the WittyPi5.log files from both Witty Pi 5 units together with the CSV file from the Raspberry Pi 5 voltage logger in a ZIP archive.
As some additional product feedback, I would also appreciate slightly larger V-IN connection terminals. It would be very useful if they could accept conductors up to 2.5 mm², especially for 12 V battery-powered installations where larger cable cross-sections are commonly used to minimize voltage drop.
Another useful accessory would be a case specifically designed for the Raspberry Pi 5 together with the Witty Pi 5, ideally with active cooling using a small fan. This would make the combination much easier to use in permanent or enclosed installations.
Thank you again for investigating this issue.
Best regards
I’m having trouble uploading the files. The forum says the maximum allowed file size is 10 MB, but even a 3.5 MB ZIP file could not be uploaded.
The forum does not accept .log files either, so I had to rename them to .txt.
I also shortened the CSV file, but the forum still says that it is too large, even though the file is only 7.1 MB.
Thank you for the detailed information, measurements, and log files.
We have reviewed the logs from both Witty Pi 5 units. We have also been able to reproduce similar abnormal voltage readings in our own tests, even when using a stable DC power supply.
We are currently investigating the ADC measurements and testing a firmware-based solution. The initial results are promising, but further testing is needed before we can confirm a reliable fix.
We will post an update here once we have a sufficiently tested solution.
@admin sorry for the late response.
Thank you for the update and for reproducing the issue on your side.
It is good to hear that you are already testing a firmware-based solution and that the first results are promising.
Do you already have a rough estimate of when a firmware fix or test version might be available?
The low-voltage protection is an important part of my setup, so even an approximate timeframe would be very helpful for planning.
Thank you again for investigating this.
We have made further progress in our investigation. Our tests have confirmed that the occasional incorrect ADC readings are related to the timing of ADC conversions. Some experimental changes have significantly reduced the occurrence of multiple abnormal readings within a sampling sequence, but isolated incorrect readings can still occur. We are continuing to investigate the underlying cause.
In the meantime, there is a possible workaround if your main concern is preventing incorrect voltage readings from triggering an unexpected low-voltage shutdown.
The firmware already has a mechanism that requires consecutive low-voltage readings before initiating a shutdown, but this mechanism is effectively disabled by its default setting.
In src/power.c, you can change:
#define MAX_POWER_LOW_COUNTER 0
to:
#define MAX_POWER_LOW_COUNTER 3
This will require four consecutive low-voltage readings before a shutdown is requested, making an isolated incorrect reading much less likely to trigger an unexpected shutdown.
The trade-off is that genuine low-voltage conditions will also take approximately 3 additional seconds to trigger a shutdown. You should make sure this additional delay is acceptable for your power setup.
You can make this modification in the open-source firmware and compile it yourself. We do not plan to provide a separately compiled firmware image for this workaround.
As for an official firmware fix, unfortunately, we cannot provide a reliable release estimate at this stage. We are still investigating the issue and need to complete further testing before deciding on a final solution.
