Some time ago, my power supply that i have presented ( Parkside accumulator) was dead. So I decided to build another power supply and opted for two in series 18650 Li-Ion Batt (8.2 v when fully charged) folowed by XL6009 up converter module tuned for 14.8 v output voltage. The result is bad becose of great noise that this module generate and this will influence reading of adc inputs of Raspberry pi Pico. So, avoid using such kind of solution !!!
Hi Max, You are right, analog part is same as Spirit Pi...has good results.... The only modification is usage of a RPi Pico board witch will replace ESP32 board. Also, the principle of detection is different. Please check the flowchart of the application and try co corelate with the code. There is no interrupt usage, no time measurement and comparision. The basic is to read a voltage value witch is coming from a OpAmp at a fixed moment, and compare this value with the value that is obtained in calibration...