I have such a sensor from ali as below in the pictures, good because cheap
I uploaded OpenBeken using BK7231Flasher without problems (connecting to the CPU pins, only then did I notice the P2 connector).
Everything works:
unfortunately I can't locate to which pin is BAT_Relay plugged in, which for common sense should control transistor Q1, because R1 and R2 looks like a divider from which goes to PIN23 of the ADC, others I found using a multimeter because from the program I got:
"Sorry, no meaningful pins data found. This device may be TuyaMCU or a custom one with no Tuya config data.
No module information found. And the Tuya section starts, as usual, at 2023424"
Unless I already have this BAT ADC misassigned.
Maybe someone already has such a sensor and can help?
[EDIT]
Once again a multimeter in hand and I found control Q1, it's P20 but it's supposed to be BAT_Relay_n.
On the divider is half the supply voltage and so the open beken shows but sometimes it shows oddly because 5496mV ????





Everything works:


"Sorry, no meaningful pins data found. This device may be TuyaMCU or a custom one with no Tuya config data.
No module information found. And the Tuya section starts, as usual, at 2023424"
Code: JSON
Unless I already have this BAT ADC misassigned.
Maybe someone already has such a sensor and can help?
[EDIT]
Once again a multimeter in hand and I found control Q1, it's P20 but it's supposed to be BAT_Relay_n.
On the divider is half the supply voltage and so the open beken shows but sometimes it shows oddly because 5496mV ????