ESP switch off with relay

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dvpe
New user
Posts: 3
Joined: 30 Aug 2021, 10:03

ESP switch off with relay

#1 Post by dvpe » 30 Aug 2021, 10:12

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
Attachments
IMG_5468.jpg
IMG_5468.jpg (1.61 MiB) Viewed 9328 times

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP switch off with relay

#2 Post by Ath » 30 Aug 2021, 11:24

How are the ESP and relays connected? (schematics please)
/Ton (PayPal.me)

dvpe
New user
Posts: 3
Joined: 30 Aug 2021, 10:03

Re: ESP switch off with relay

#3 Post by dvpe » 30 Aug 2021, 12:47

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?

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP switch off with relay

#4 Post by Ath » 30 Aug 2021, 13:53

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.
/Ton (PayPal.me)

dvpe
New user
Posts: 3
Joined: 30 Aug 2021, 10:03

Re: ESP switch off with relay

#5 Post by dvpe » 30 Aug 2021, 14:21

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??
Attachments
Captura de pantalla 2021-08-30 a las 14.18.07.png
Captura de pantalla 2021-08-30 a las 14.18.07.png (301.32 KiB) Viewed 9299 times

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests