Elektroda.com
Elektroda.com
X

Door/window sensor without TuyaMCU - deep sleep and energy saving, OpenBeken

p.kaczmarek2 4185 31
This content has been translated flag-pl » flag-en View the original version here.
  • #31
    taggbricka
    Level 5  
    Quote:
    Do you have battery relay pin set?

    I don't understand this. This is my pin setup.
    Door/window sensor without TuyaMCU - deep sleep and energy saving, OpenBeken

    EDIT:
    I copied the pin settings from the Tuya PIR sensor, this had a battery relay pin.
    Now battery voltage measurement work as as expected.
  • #32
    p.kaczmarek2
    Moderator Smart Home
    I am not an expert when it comes to battery driver, but you've posted this JSON in your previous post:
    
    	"samp_sw_pin":"17",
    	"max_V":"3000",
    	"min_V":"2200",
    	"samp_pin":"23",
    

    This means that sampling pin (ADC) is P23 and the sampling switch (Battery Relay) pin is P17.

    See the related battery driver article:
    https://www.elektroda.com/rtvforum/topic3959103.html