Page 1 of 1

ESP switch off with relay

Posted: 30 Aug 2021, 10:12
by dvpe
Hi,
I am trying to add a transmitter to my alarm sensor.
This alarm sensor have two relays:
- tamper
- alarm
For the transmitter I am using ESP01s.
My problem is: when I use the tamper relay, the transmitter works perfecly but when I use the other relay (alarm relay), It doesn't work. It is like if the alarm relay draws some voltage because I am getting 2.6V from 3.3V original.
I have attached a picture

Re: ESP switch off with relay

Posted: 30 Aug 2021, 11:24
by Ath
How are the ESP and relays connected? (schematics please)

Re: ESP switch off with relay

Posted: 30 Aug 2021, 12:47
by dvpe
Hi,
I have a battery cr123. I connected the + to the relay. The output is connected to the ESP.
It is working this schema from tamper relay but it is not working from alarm relay...I am taking measures and I think the alarm relay has some diode consuming 0.5V.
Any suggestion?

Re: ESP switch off with relay

Posted: 30 Aug 2021, 13:53
by Ath
Well, the voltage provided by that battery is only 3V where the ESP is expecting a 10% higher value, so subtracting another ~10% isn't really helping it. You can check if a diode is in that circuit, but I can't think of any real reason why there would be.
It can also be caused by a poor quality relay installed or a damaged/burned out contact inside the relay.
What voltage do you get on the ESP when using the tamper relay?

There are a couple of solutions:
- Use a different type of battery, or 2 of those in series, with a regulator bringing the voltage to a stable 3.3V (may need a capacitor as well).
- Replace the Alarm relay.

Re: ESP switch off with relay

Posted: 30 Aug 2021, 14:21
by dvpe
Thanks.
Other option is to sleep my ESP and try to wake up.
Here (I dont have enougth knowledge) I am thinking is the schema (I have attached the picture):
- I want only one output signal, I mean, when there is any alarm the output signal is 10 seconds
- I was trying the picture circuit but I didn't get the right result

What do you think??