Category Archives: Hardware Gadgets

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.

Flattr this!

Home Automation with Python…

I gave a talk at Grazer Linuxtage 2017. It’s about Home Automation and how you can use Python to realize it.

The talk covers a simple example of a DIY sensor that runs MicroPython. Finally I give a short introduction to Home Assistant, a Python Home Automation Hub, that allows you to integrate with hundreds of devices. Home Assistant offers integrations to light switches, smart lights (Hue, Tr√•dfri, Lightify,…), door sensors, heat control units, and many others.

There is a video of my talk on my Youtube channel:

Flattr this!

DIY MQTT smart plug with MicroPython…

I’ve been playing around with MicroPython and Home Assistant. MicroPython is a ‘bare-metal’-Python flavor that you can use to program ICs. Home Assistant is a home automation and home control software written in Python 3. It can be hosted on a Raspberry Pi. It enables you to connect a vast amount of different devices: lights, switches, sensors, locks etc.

This is a raw guide on how to make your own smart plug and connecting it to MQTT which is then connected to Home Assistant.

You will need a relay board (single relay), a NodeMCU board, a power adapter for 5V, a case, a button, some wire and a 1k resistor.

Connect the devices according to this schema (WARNING: Don’t do this if you’re not comfortable handling mains power!). Don’t forget earthing (it’s not on the diagram):
circuit diagram

Flash the MicroPython firmware to the NodeMCU board. Put the ‘relay_mqtt.py‘ file on it as main.py. That way it will be run when the device boots up. Adjust the code to connect to your network and MQTT server first.

You can download the code here.

My device looks like this:

See the Home Assistant documentation for how to integrate the MQTT part with Home Assistant.

The nice thing is: you can press the button to switch the device. The status of the device will update via MQTT and Home Assistant gets a correct status update. You can of course switch the device from within Home Assistant as well.

Happy hacking!

Flattr this!

Lego Lamp

More than a year ago I came across a designer lego lamp. I really liked the idea but the price tag was a little hefty. Back then the lamp cost $800 and now it is at $995. But to be honest there is no designer product like this lego lamp that really says “do it yourself” like that!

So I built one myself. I designed the basic form with Lego Digital Designer. The plan can be found here [1]. The base of the lamp uses about 800 pieces. The final build varies from the my first plan, especially in the base where I first planned to hide the foot of the old Ikea lamp. I finally just used the lamps main rod and electrical wire. The arrangement of the bricks varies to give the lamp more structural integrity and was improvised.

The parts were ordered from three different shops on BrickLink. They offered the green I wanted for the lamp at a fraction of the price of the original Lego‚ĄĘ store. The total price for all parts was about 60‚ā¨. The lamp I had laying around was ‘free’ and the new lamp shade was about 30‚ā¨. Total of about 100‚ā¨ – well below the price point of the original.

[1] 2014-11-22, 18:30:

I was asked by the designer Sean Kenney, to remove the LDD plans for the lamp. He argued that the plans would hinder his ability to sell these lamps online.

Although I do not agree with Sean’s argument, that his sales might be influenced by a simple Lego‚ĄĘ scetch for a similar lamp, I’ve respect for the work that went into the lamps Sean designed and did take the plans down for now.

Flattr this!

Bitcoin Paper Wallet Treasure Chest…

The Bitcoin Paper Wallet Treasure Chest
The Bitcoin Paper Wallet Treasure Chest
One of the challenges with bitcoin is to store them securely. There have been several well known incidents where Bitcoins have been stolen. It is no mystery. Bitcoin IS money! It’s the same with Euros or Dollars, when you have it lying around it will eventually be missing.

There is a twist with bitcoin to regular money. With Bitcoin one single piece of information is enough for the thief to steal your Bitcoins: Your private key. With Bitcoin it’s about keeping this piece of information secret.

Continue reading Bitcoin Paper Wallet Treasure Chest…

Flattr this!

Maischebottich Severin EA 3653…

wer zuhause bier braut ben√∂tigt neben viel zeit und geduld auch die n√∂tige ausr√ľstung. etwas mehr der letzteren wenn man direkt mit malz arbeitet.
hier fällt der arbeitsschritt des maischens an.

f√ľrs maischen und w√ľrze kochen habe ich mir einen severin einkochautomat (3653) besorgt. das ger√§t kostet 70 euro und hat die richtige gr√∂sse. mit 29 litern fassungsverm√∂gen geht sich ein 20 liter sud gut aus.

es gibt nur ein kleines problem, den √ľberhitzungsschutz. dieser verhindert dass dickfl√ľssige fl√ľssigkeiten im einkochautomat erhitzt werden. er l√∂st aus und das heizelement l√§sst sich f√ľr ein paar stunden nicht zum arbeiten √ľberreden. um maische gut verarbeiten zu k√∂nnen muss man den √ľberhitzungsschutz deaktivieren.

die gebrauchsanweisung zitiert:

√úberhitzungsschutz:
Das Ger√§t ist durch einen speziellen √úbertemperaturbegrenzer vor √úberhitzung gesch√ľtzt. Sollte der √úberhitzungsschutz das Ger√§t abschalten, ziehen Sie den Netzstecker und lassen Sie das Ger√§t abk√ľhlen. Anschlie√üend ist das Ger√§t wieder funktionsbereit.
Achtung: Der Einkochautomat ist nur zur Erw√§rmung von Fl√ľssigkeiten ausgelegt. Dickfl√ľssige Speisen d√ľrfen nicht erhitzt werden, da durch die ungleichm√§√üige W√§rmeabnahme der √úberhitzungsschutz das Ger√§t abschalten kann. Reklamationen aus diesem Grund k√∂nnen daher verst√§ndlicherweise nicht anerkannt werden.

das habe ich gelesen, nachdem mir der erste einkochautomat beim maischen den dienst quittiert hat und ich diesen beim händler gegen einen neuen ausgetauscht hatte.
nachdem ich wieder dasselbe ger√§t hatte, musste ich einen weg um den √ľberhitzungsschutz finden. der stand im weg zwischen mir und meinem bier – das geht nicht. ergo √ľberhitzungsschutz deaktivieren…

hier wird beschrieben wie man das macht. Continue reading Maischebottich Severin EA 3653…

Flattr this!