Thermostat

Custom Raspberry Pi Thermostat Controller

Thermostats can be a pain. They often only look at one sensor in a multi-room home and then set the temperature based on that. The result is one room that’s comfortable and other rooms that are not. Plus, you generally have to get up off the couch to change the temperature. In this day and age, who wants to do that? You could buy an off-the-shelf solution, but sometimes hacking up your own custom hardware is just so much more fun.

[redditseph] did exactly that by modifying his home thermostat to be controlled by a Raspberry Pi. The temperature is controlled by a simple web interface that runs on the Pi. This way, [redditseph] can change the temperature from any room in his home using a computer or smart phone. He also built multi-sensor functionality into his design. This means that the Pi can take readings from multiple rooms in the home and use this data to make more intelligent decisions about how to change the temperature.

The Pi needed a way to actually talk to the thermostat. [redditseph] made this work with a relay module. The Pi flips one side of the relays, which then in turn switches the buttons that came built into the thermostat. The Pi is basically just emulating a human pressing buttons. His thermostat had terminal blocks inside, so [redditseph] didn’t have to risk damaging it by soldering anything to it. The end result is a functional design that has a sort of cyberpunk look to it.

[via Reddit]

Wax Motors Add Motion To Your Projects

[electronicsNmore] has uploaded a great teardown and tutorial video (YouTube link) about wax motors. Electric wax motors aren’t common in hobby electronics, but they are common in the appliance industry, which means the motors can be often be obtained cheaply or for free from discarded appliances. Non-electric wax motors have been used as automotive coolant thermostats for years.  Who knows, this may be just what the doctor ordered for your next project.

As [electronicsNmore] explains, wax motors are rather simple devices. A small block of wax is sealed in a metal container with a movable piston. When heated, the wax expands and pushes the piston out. Once the wax cools, a spring helps to pull the piston back in.

The real trick is creating a motor which will heat up without cooking itself. This is done with a Positive Temperature Coefficient (PTC) thermistor. As the name implies, a PTC thermistor’s resistance increases as it heats up. This is the exact opposite of the Negative Temperature Coefficient (NTC) thermistors we often use as temperature sensors. PTC’s are often found in places like power supplies to limit in rush current, or small heating systems, as we have in our wax motor.

As the PTC heats up, its resistance increases until it stops heating. At the same time, the wax is being warmed, which drives out the piston. As you might expect, wax motors aren’t exactly efficient devices. The motor in  [electronicsNmore’s] video runs on 120 volts AC. They do have some advantages over solenoid, though. Wax motors provide smooth, slow operation. Since they are resistive devices, they also don’t require flyback diodes, or create the RF noise that a solenoid would.

Continue reading “Wax Motors Add Motion To Your Projects”

Very Dumb Security For A WiFi Thermostat

We have finally figured out what the Internet of Things actually is. It turns out, it’s just connecting a relay to the Internet. Not a bad idea if you’re building a smart, Internet-connected thermostat, but you have no idea how bad the security can be for some of these devices. The Heatmiser WiFi thermostat is probably the worst of the current round of smart home devices, allowing anyone with even a tiny amount of skill to control one of these thermostats over the Internet.

The Heatmiser is a fairly standard thermostat, able to connect to an 802.11b network and controllable through iOS, Android, and browser apps. Setting this up on your home network requires you to forward port 80 (for browser access) and port 8068 (for iOS/Android access). A username, password, and PIN is required to change the settings on the device, but the default credentials of user: admin, password: admin, and PIN: 1234 are allowed. If you’re on the same network as one of these devices, these credentials can be seen by looking at the source of the webpage hosted on the thermostat.

if you connect to this thermostat with a browser, you’re vulnerable to cross-site request forgery. If you use the Android or iOS apps to access the device with the custom protocol on port 8068, things are even worse: there is no rate limiting for the PIN, and with only four digits and no username required, it’s possible to unlock this thermostat by trying all 10,000 possible PINs in about an hour.

There are about a half-dozen more ways to bypass the security on the Heatmiser thermostat, but the most damning is the fact there is no way to update the firmware without renting a programmer from Heatmiser and taking the device apart. Combine this fact with the huge amount security holes, and you have tens of thousands of installed devices that will remain unpatched. Absolutely astonishing, but a great example of how not to build an Internet connected device.

Energy-Saving Fireplace Thermostat

[Andrian] has a boiler stove that heats water and sends it to a radiator. As the fireplace heats the water in a boiler a temperature sensor opens the a valve to send the warm water to the radiator. The radiator sends its cool water back to the boiler to be reheated. The valve is slow, so before the boiler can send all the water to the radiator, it’s getting cool water back causing the valve to close while the heat is built back up. To prevent the valve from working so hard and wasting energy, [Andrian] designed a better thermostat to control the valve operation.

The thermostat uses one LM85 temperature sensor to check the water in the boiler and another one for the ambient temperature. Once the boiler water reaches the desired temperature, the valve is opened via relay. The system waits for half an hour and then checks the boiler temperature again. The brains of this operation is an ATMega168 with a 32.768kHz crystal as the RTC. Code and PCB files are available in his repo.

We love to see these types of hacks that challenge the status quo and increase the efficiency of appliances. We applaud you, [Andrian], for turning your dissatisfaction into a positive plan of action and for sharing your experience with the rest of us!

If you want to up the eco-friendliness of heating water a bit, you could heat the water with a compost heap.

Move Over, Google Nest: Open Source Thermostat Is Heating Up The Internet Of Things

In the wake of Google’s purchase of connected devices interest Nest, the gents at [Spark] set about to making one in roughly a day and for a fraction of the cost it took Nest to build their initial offering. [Spark]’s aim is to put connected devices within reach of the average consumer, and The Next Big Thing within the reach of the average entrepreneur.

The brain is, of course, [Spark]’s own Spark Core wi-fi dev board. The display is made of three adafruit 8×8 LED matrices driven over I²C. Also on the bus is a combination temperature and humidity sensor, the Honeywell HumidIcon. They added some status LEDs for the furnace and the fan, and a Panasonic PIR motion detector to judge whether you are home. The attractive enclosure is made of two CNC-milled wood rings. The face plate, mounting plate, and connection from the twistable wood ring to the potentiometer is laser-cut acrylic.

[Spark]’s intent is for this, like the Nest, to be a learning thermostat for the purpose of increasing energy efficiency over time, so they’ve built a web interface with a very simple UI. The interface also displays historical data, which is always nice. This project is entirely open source and totally awesome.

If you have an old Android phone lying around, you could make this open source Android thermostat.

Continue reading “Move Over, Google Nest: Open Source Thermostat Is Heating Up The Internet Of Things”

Wireless Thermostat

thermostat0104

The thermostat in [Tom’s] 100-year-old house is two floors up from where the furnace is located, so a broken wire in the wall was just the catalyst needed to design a wireless thermostat.

The system is based on a customized PCB [Tom] designed called the Magic Mote. The board contains an MSP430 microcontroller, a low power NRF24l01+ wireless transceiver, and various sensor interfaces. The wireless thermostat project uses two of these boards; one monitors the temperature on the second floor and the other controls the furnace in the basement.

The temperature sensing is done using a DHT22/AM2303 temperature and humidity sensor, which is a convenient choice, since the part is calibrated and handles the analog digital conversion; you just need one digital pin to retrieve the temp/humidity data. To control the furnace, [Tom] used the local 24VAC and a latching relay to drive the heater signal. The 24VAC also powers the board, so a door-bell transformer steps the voltage down to something more usable; about 11VAC or so, which is then rectified, filtered, and regulated down to what the control electronics like to see (3.3V/5V).

This project is actually still in the early stages of what [Tom] has planned; a network of sensors and appliances with a beagle bone base station. We can’t wait to see what’s next for this project; maybe we’ll even see some voice control, like in this epic Siri controlled home automation project.

[via Dangerous Prototypes]

DIY Pellet Fed Boiler Is Hot Stuff

pelletburner

[Firewalker] has designed a great pellet burning boiler (translated). Wood and biomass pellets have gained popularity over the last few years. While freestanding stoves are the most popular method of burning the pellets, [Firewalker] went a different route. He’s converted a boiler from what we assume was oil to pellet power. An Arduino controls the show, but don’t hold it against him. [Firewalker] is just using the Arduino as an AVR carrier board.The software is all written in C using AVR studio. The controller’s user interface is pretty simple. A two-line character based LCD provides status information, while input is via buttons. Once the system is all set up, thermostats are the final human/machine interface.

Burning pellets requires a bit of prep. A cleanup of the burn chamber must be performed before each burn. The AVR is programmed to handle this. Once the chamber is clean, new pellets are fed in via an auger system. The burner is monitored with a standard flame sensor. When the fire is up the pellets feed in until the boiler gets up to temp. Then the system enters a standby mode where it feeds in just enough pellets to maintain the flame. When the thermostats stop calling for heat, the whole system shuts down, ready for the next burn.

Continue reading “DIY Pellet Fed Boiler Is Hot Stuff”