Ikea DIY Smart Smoke Detector…

Recently I confirmed that a smoke detector can be useful. I forgot a sauce on the stove and it burnt. I left the flat and luckily heard the smoke alarm from outside!

So, to be safer in the future I wanted to make a network-connected smoke detector that reports to my home-assistant instance. From there it can notify me via SMS or flash lights or sound an alarm.

By chance I found a smoke detector at IKEA. I needed to see if it can be hacked.

Ikea Smoke Detector
Test pin 4 can be used to solder the trigger to.

Good news! It can! 🙂
It turns out the micro controller that is used (CS2105G0-S12) offers a nice pin (Pin 7 – I/O) to be used for external electronics. Conveniently the PCB has a test pad (T4) that one can solder to.

On the interwebs™ I found a design that uses the internal battery of a smoke detector to power an ESP8266. I modified the layout to work for a Wemos D1 mini. Switching the transistor to a Mosfet, allowing more current to pass, was the fix.

The layout shows how the Wemos D1 mini is powered. It runs MicroPython, only when the alarm goes off. An alarm must be active for about 20-30 seconds for a message to go through. The wifi module connects to a local wifi network and sends a MQTT message to a pre-defined channel.

circuit design

The I/O-Pin 7 of the smoke detector is high at 9V when smoke is detected. The Mosfet will be switched on and the battery now powers the D1 mini as well, allowing notifications via network. The ESP8266 on the board is flashed with MicroPython. The script connects to the local wifi and notifies home-assistant via MQTT that smoke is detected. Home-Assistant does the rest.

The source of the script can be found here on gitlab or on github.

Battery update: Since November last year to beginning of October this year, the battery level dropped from 8.8V to 8.2V. Considering that the level is probably good until a level of about 7 Volts this should give the sensor a run time of a little less than 3 years. I did test the sensor several times in this time span, so this could be another factor for more battery drain.

The battery life time should be one year according to IKEA.

16 thoughts on “Ikea DIY Smart Smoke Detector…”

    1. The deep sleep is a nice feature, it’s not needed though. The idea of this circuit design is that the WIFI module is not powered at all until smoke is detected.
      This should lead to a battery run time that is comparable to the original run time. Only when smoke is detected the battery consumption is higher.

      The drawback is that we are not able to connect to the device. The device also cannot check for the battery status or have another sensor attached to it (temperature, etc). It would not be powered.

      1. It can however report the battery voltage once the alarm goes off if you use a voltage divider and the Wemos Analog Pin.

        The use is pretty limited though, since the I/O pin of the smoke alarm, meant to make all alarms in a building go off simultaneously once smoke is detected somewhere, is not being pulled HIGH when the detector just beeps a low battery warning. I imagine you can check the battery voltage whenever you press the smoke-detector test button 🙂

        I implemented it anyway in my version (inspired by flo’s):

        https://wp.realraum.at/2018/08/wifimqtt-smoke-detector-with-5yrs-battery-and-esp8266/

  1. The D1 mini has an on-board voltage regulator and, according to the datasheet, works with up to 12V. No need for the AMS1117 (unlike with ESP01’s). Why not simply hook up T4 to the D1’s 5V-pin?

    1. The research I did, back then, showed I needed it.
      A quick search now shows that the D1 mini uses the ME6211 and it has an operating voltage of 2V to 6V. so the 9V battery would be too much…

      If you have a datasheet that says otherwise, you could try it.

  2. Hi there,

    I just opened a Family Shield photoelectric smoke alarm, purchased from Bunnings in New Zealand for NZD 7.89

    https://www.bunnings.co.nz/family-shield-photoelectric-smoke-alarm_p08909655

    Inside is the same CS2105G0-S12, but pin 7 is brought out to a test point labelled TP7, which is a little hard to get at as there is a small metal shield sitting about 3mm over it (and half of the chip).

    Do you have a part number for the MOSFET you used? Also, why switch the ground line instead of the power line, and why not just power everything from pin 7? I suppose it may be current limited, but I couldn’t find what the limit was in the datasheet.

    Anyway, great project. I will build one, although there is very little space inside the enclosure for this model.

    1. Or a 3V3 regulator with enable pin? Although those are generally ~EN, so you’d need an inverter somewhere.

    2. The great thing about the IKEA smoke detector is, that you have plenty of space in the housing. Also there is only one PCB, which makes soldering onto it easy.

      The MOSFET is a LU8743.

      Regarding switching the ground: I think the reasoning was, as you suspected, the current limiting to the MOSFET. the voltage regulator and the Wemos D1 mini take the load, and all the MOSFET has to do is turn off ground. The MOSFET could take either option I think.

      1. Hi,

        Thanks for the quick reply.

        I found a bit of information in the comments of the YouTube video, and a couple of other places.

        I happen to have one of these boards:
        https://m.aliexpress.com/item/2038556861.html

        It is based on MP2307, which has an EN (active high) pin, so it might work. Based on the datasheet it has a 1uA standby current. I should get away with that power module connected to the battery, and EN connected to pin 7, then the output connected to the Wemos.

        I found a space for the Wemos on top of the battery housing. 🙂

  3. It gets better! The “official” Wemos dc power shield has an MP2359 regulator on board. This has an EN pin. The pin is connected via a very visible and accessible 100k resistor to Vin, so could be hacked to connect to pin 7 instead.
    The downside is that the Wemos power board is quite large compared to some of the other boards on AliExpress. The upside is: I have one.

    PS We don’t have Ikea in New Zealand. Sore topic. 🙁

    PPS Your timeout on this comment form is a bit short.

    1. Ok. It works!*

      Current consumption of the alarm is just under 4uA, but it jumps up occasionally. The alarm manual says around 12uA, which will be its average consumption over time.

      I modified the Wemos power board as follows. First, I removed the 2.1mm coaxial power socket to reduce overall height. Next, I disconnected the “high” end of the 100k resistor that feeds Vin into EN on the regulator by cutting the PCB track. Finally, I soldered flying leads to the 100k resistor, Vin, and GND. This makes the board into a normally-off 5V regulator. The 100k resistor is retained as it limits the current into the EN pin.

      To connect to the alarm I soldered the three leads to the positive battery test point (Vin), the negative battery test point (GND), and pin 7 test point, TP7 (100k resistor).

      So, the battery is connected to the Wemos power board, which is controlled by pin 7 on the alarm. When pin 7 is high then the power board outputs 5V to the D1 Mini Pro. The 3V3 regulator on the D1 Mini Pro then powers the chip.

      Current consumption is just over 4uA when the power board is connected, so it adds about 1uA, as indicated in the regulator datasheet.

      * The Wemos starts up and flashes its LED, but I don’t have microPython loaded. I’m sure it will work however…

Leave a Reply

Your email address will not be published. Required fields are marked *

verify you\'re human: * Time limit is exhausted. Please reload CAPTCHA.