R
R
rinx2013-02-07 20:19:28
Arduino
rinx, 2013-02-07 20:19:28

Temperature monitoring device and its sending via SMS based on Arduino

Hello!
I assembled the device not for tests, but for practical use based on Arduino.
The device takes temperature readings (from the heating pipe) and sends data via SMS once a day.
It is installed in a room with gas heating. The house is located outside the city and the owners are rarely there. The device monitors the state of the heating system so as not to “freeze” it and allows you to quickly respond in case the boiler is turned off and the temperature drops.

Demo here:
www.youtube.com/watch?v=OPby43DyUqQ

Would you be interested in an article with a diagram, sources and a description of how to assemble and program the device?

Thank you.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
V
Vyacheslav Golovanov, 2013-02-07
@SLY_G

Certainly!

U
ur3ckr, 2013-02-07
@ur3ckr

Publish! Articles on the topic "smart home", "temperature monitoring", etc. enough on Habré, but each has its own zest and approach to implementation.

A
avstepanov, 2013-02-07
@avstepanov

And immediately modify the code so that you can send a control message with a “threshold” temperature to the “Arduino” number (well, or hardcode it in the sketch, but this already reduces versatility), so that if the temperature suddenly drops below the set one, then the arduina immediately notifies its owner about this emergency.
By the way, this will allow you to refuse daily SMS (you will have to pay less for the number).
And, of course, the processing of the control SMS, through which the arduino will unconditionally inform the sender of this command the current temperature ...
... and also the “white list” of numbers from which control commands can be received ...

A
avstepanov, 2013-02-07
@avstepanov

Still remembered.
Typically, gas boilers require electricity to operate.
Accordingly, if there is no electricity, the boiler does not work.
On a good note, the arduino should also be equipped with backup power, so that in the event of a power outage, it also notifies the owners about this situation and continues to monitor.
And without backup power, the arduino itself will also be useless in a cooling house ...

A
avstepanov, 2013-02-07
@avstepanov

"... and then Ostap suffered" (c)
And also add one additional temperature sensor in the house (for measuring room temperature), a transistor and a relay and organize a thermostat controlled via SMS.
Most gas boilers allow you to connect an external thermostat. The principle of operation is primitive: if the temperature is lower than the set one, the contacts are closed (the boiler is “allowed” to heat), if the temperature is higher than the set one, then the contacts are open and the boiler is “not allowed” to overheat the room.
Set the temperature of the "thermostat" with special SMS - then it will be possible to send the command "warm up the house" to the boiler an hour before arrival and upon arrival enter a warm room. Well, an additional temperature monitoring point will not hurt.

A
avstepanov, 2013-02-08
@avstepanov

With backup power, you first need to make a circuit that, if there is a main power supply, would quietly power the arduino, and in the event of a power outage, it would switch to a backup power source (battery). In this case, this is the most difficult (google, there are schemes and relatively simple ones).
According to the sensors, everything is simple:
1a. The simplest answer is “none”, but you need to use some kind of analog input. Make it so that when there is a main power supply, there was something on it, when the main power supply is cut off, there is nothing (or something else) on it. And just keep track of it. For example, you can do it with two resistors (divider) ...
1b. You can use an additional current sensor (to monitor consumption, for example, at the entrance to the house) and when the electricity goes out, the current will become zero.
2. in general, any low-power npn transistor (for example, 2n4401), a 1 kΩ resistor (limiting, in the base circuit) and any relay that is triggered by a voltage of 5V (I took one from the stock - it is marked 833H-1C-S, current can switch up to 7A with a change of 250V or 10A with a constant up to 277V). It's still a good idea to put a diode in parallel with the relay.
By the way, on your currents you don’t even need a relay - a transistor will be enough. The circuit is simple:
- to the digital pin - limiting resistor
- the second leg of the resistor - to the base of the transistor
- the emitter of the transistor - to the common wire
- connect the load between the + supply and the collector.
In general, google "how to connect a load to the microcontroller", etc. - everything is simple and fast.
PS I hope next week I will publish my article about monitoring power consumption - there will be a current sensor.

A
avstepanov, 2013-02-11
@avstepanov

you can peep about the current sensor here: habrahabr.ru/post/168783/

R
rinx, 2013-02-08
@rinx

Tell me, please, what sensors can be used:
1. To monitor the presence of current in the network (in order to signal this via SMS)
2. What circuit, relays / transistors should be used to close / open contacts to turn on an additional device using Arduino (voltage up to 5V, current up to 50 mA)
Thank you in advance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question