Page 1 of 1

Smoke detectors

Posted: 10 May 2021, 09:27
by Polygontrauma
Hey there!
I wanted to build a fire alarm system for my house using wired EI650C smoke detectors.
Those smoke detectors have two wires; if one detects smoke, it gives 5v on the wires.
In addition, if you put 3-5v on the wires, the smoke detector gives an alarm.
So you should be able to either read the alarms as well as send alarms to the other smoke detectors.
Instead of wiring them directly, I want to wire them to Wemos D1 Mini and use ESP Easy to integrate them into my smart home system (domoticz).
So here is what i did:
- connect the GND wire from smoke detector output to GND on Wemos D1 Mini
- connect the other wire from smoke detector output to GPIO16 as well as to GPIO14
- configured devices in ESPEasy as well as in domoticz (one device for reading alarms, one for sending alarms over http)
As long as I have only one wire (GPIO16 or GPIO14) attached, it works - I then can either receive or send alarms. As soon as I connect both, nothing works.
So this seems to be an electronics issue - does anybody know how to solve this?

Best regards,
David

Re: Smoke detectors

Posted: 10 May 2021, 09:38
by TD-er
I guess you want to use GPIO-16 to wake the ESP from deep sleep?
That pin is a bit tricky and in a lot of respects different from any other pin on the ESP8266.

If you connect it to RST to wake the ESP from deep sleep after some time, then you will also trigger resets when the smoke alarm is activated.
So I assume you do not use it like that.
I guess you should use 2 diodes to split the signalling, but then you may also loose some voltage due to the voltage drop introduced by the diode.
This can be compensated by a "level converter".

Re: Smoke detectors

Posted: 10 May 2021, 15:08
by Polygontrauma
Thanks for the fast reply! I also tried other pins, without success.
I know level converters, but can you please explain how I can split the signal using diodes?

Thanks in advance!

Best regards,
David

Re: Smoke detectors

Posted: 10 May 2021, 18:19
by TD-er
I guess you want to use GPIO-16 as "input" to start the ESP?
And GPIO-14 as "output", to send the "high signal".

What you need is one diode "pointing" to GPIO-16 and one diode "pointing" away from GPIO-14.
Those connect to the same bi-directional level shifter, with the high-voltage side voltage connected to 5V.

Re: Smoke detectors

Posted: 12 May 2021, 22:23
by Polygontrauma
Thanks a lot for your help, integrating the diodes solved the problem, I didn't even need a level converter. Now I can start wiring all smoke sensors :D

Re: Smoke detectors

Posted: 12 May 2021, 22:40
by TD-er
Ah great :)
I wasn't sure if the voltage would be high enough since the diode also has some voltage drop and the output voltage of the ESP is already close to the lower limit of 3V you mentioned.