Close
0%
0%

SMS controlled heating control

Using a Raspberry Pi and a UMTS stick I control the heating in my part-time flat by text messages.

Similar projects worth following
58 views
0 followers
I work regularly in a city (Munich, Germany) different from where I live with my family. So I've rented a small flat there. Since my mobile internet access is good enough for me during these working days I do not have a landline internet access in this flat. However, the heating of this flat has a drawback. It's a night storage heater. So if I arrive there in the evening I cannot use the heating to warm it before the next morning. I used to leave the heating on on a lower scale when I was absent which worked kind of. However, the knob to set the desired level is well-hidden and it's not easy to read its position. So once it happened : instead of turning the heating of before I left for my christmas holiday, I accidentally turned it on full power. When I came back almost two weeks later I had a sauna (kind of) in my flat and the next bill was enormous.

It was clear: I needed a remote control.

I had a Raspberry Pi (one of the earlier generations) and a UMTS stick lying around. So I came up with the idea of building a remote control using text messages (SMS) since this did not require a permanent internet connection. After searching around, I found the gammu project which was what I needed.

As for the driving of the heating control I used a stepper motor (28BYJ-48) and a belt drive.

For the temperature acquisition I use a DS 1820 temperature sensor.

Building was then relatively straight forward. I use python scripts to read the temperature , to drive the stepper motor and to process incoming and outgoing text messages. Details can be found on github (in German).

The OS is Debian 8 and I use also a rather old version of gammu. It is some time ago that I build the system and I never updated anything any more (no connection to the internet anyway).

The system collects the temperature data based on cron jobs. The day before I typically set off for work I get a SMS on my phone which looks like this:

fri min 24.5 max 26.4 avg 25.1
sat min 24.5 max 26.1 avg 25.2
sun min 24.7 max 26.4 avg 25.4
now 25.1 r: 53 s: 0

This includes temperature information about the past days, how many text messages can still be sent (r) and the setting of the heating (s).

A can also send various commands by text message to the system, e.g. to get a status report which looks like this:

Fr 21. Jun 07:30:07 CEST 2019
07:30:07 up 35 days, 8:15, 0 users, load average: 0,01, 0,02, 0,00
now 24.6 r: 63 s: 0

All incoming messages which the (very simple) parser does not understand are relayed to my phone. In this way I get all messages which my provider sends automatically, too.

Text commands for the system include commands to set the heating, pull status information, set a new number of remaining text messages (after I have put money to the prepaid SIM card) and to reboot the system.

The system has been running now for almost two years without any trouble.

The whole system could also run on a simple microcontroller like an arduino. However, since I had a Raspi and a surf stick lying around this was the cheapest solution for me.

  • 1 × Raspberry Pi B (but a Zero should also be ok)
  • 1 × UMTS Stick ZTE MF 110
  • 1 × Housing for Raspi
  • 1 × some pieces of wood to mount everything
  • 1 × Tooth belt and wheel (e.g. https://www.conrad.de/de/p/reely-zahnflachriemen-aeusserer-umfang-330-mm-anzahl-zaehne-132-209523.htm

View all 12 components

  • 1
    Step 1

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates