This project will show you how you can create your own programmable thermostat with temperature probe, an LED readout and ability to remote control outlets.

The core of this project is actually a driver for a 4 digit seven segment display.

There are lots uses for such a device. You can purchase something called a PID controller for about $120. The parts for this cost me about $66. If you can scrounge some of the parts you can do even better.
I use mine to control hot water baths for cooking meet. See my instructable on cooking perfect steak for why you might want this.

There are probably a dozen ways to do this. This was my way.

This project requires soldering small surface mount components (well one easy one IMHO). There are a lot of wires and it can be hard to debug certian problems. This is probably not a great project for a novice or the easily frustrated.

At this time the instructable isn't as detailed and foolproof as possible. My prototype works and this is my attempt to document the process. However, until I build my sweet new steampunk themed version, the instructable is going to be a little bit raw. You should be confident about these sorts of projects enough to do some minor debugging of the hardware and connections before you dive in. Just in case I got something wrong, you know. The software is solid at least. :)

Recomended Instructables:
Replace the $20 arduino in this project with $8 worth of electronics.
Generic Micro Controller switch outlets. I embedded this idea into this project. You can just build this stand alone version on hook it up to this project.

UPDATE: 2011-July-28 LM335A sensor version, cheaper, no surface mount soldering.

I am experimenting with replacing the thermocouple and booster with an LM335A sensor. It's not as accurate, and it won't go above 100 degrees C. However it's $1.50 compared to $28 for the thermocouple and booster. For souse-vide cooking it should work fine. There is a PCB123 diagram file in the diagram step if you want to see how to hook one up.
I have also gone to using the Atmega168 chip directly with the minimum hardware needed to support and program it. That's also in the PCB123 file along with a circuit board.
I plan to have circuit boards and solder your own kits available on Kickstarter soon. I am planning a run of 500. The kits will be ~$40 shipped. Let me know if you are interested. The Kickstarter never happened. I did another couple Arduino based Kickstarters and documented the projects on Instructables. Stay tuned, more to come I am sure.

Step 1: Gather Materials

1 X Arduino Pro Mini 328 - 5V/16MHz
1 X Thermocouple Type-K Glass Braid Insulated
1 X Thermocouple Amplifier Digital MAX6675
1 X Wall Adapter Power Supply - 5VDC 1A
1 X Outlet from the home store
1 X SOIC to DIP Adapter 8-Pin
1 X 4-Digit 7-Segment Display
1 X plastic outlet box
1 X extension cord or old computer cord.
1 X Relay SPDT Sealed 5v coil T9AS5D12-5
1 X Rotary Potentiometer - Linear COM-09288
1 X Trim potentiometer (optional)
1 X 2n2222 transistor or other similar switching PNP resistor.
1 X 1uf capacitor
5 X 330 ohm resistor (This used to say 470, but that makes the display pretty dim)
1 X 1N4148 diode
4 ft X Aquarium tubing (the bluish kind that might be silicone)
1 X breadboard, perfboard, circuit board or custom enclosure.
Spring Terminals - PCB Mount (2-Pin) (sparkfun PRT-08073)
Various wire.
Pins for mounting the Arduino. I used the legs off resistors and so on from previous projects, but you can buy some headers.

Coming Soon:
I am prototyping circuit boards for these. I got my first one from BatchPCB not long ago and it worked, but needs some changes to be ready for prime time. Hopefully boards with instructions will be done by end of summer 2011. BatchPCB sure is slow. :)

  • Soldering Iron. (Adjustable is highly recomended)
  • Soldering supplies.
  • Basic soldering skills or a willingness to buy replacement parts as you learn. Soldering the Max chip is the hardest part of the project. It's not too hard to solder to the breakout board. Check out these videos and explanation. http://www.sparkfun.com/tutorials/96
  • FTDI basic breakout or other way to interface with your Arduino chip.
  • Computer to program the chip from.

You can use any kind of Arduino you want. If you get the mini like I did, make sure you have the programming chip or cable. You can also get or make an RBB arduino to shave a few dollars off the project. If you are really ambitious you can hack together an Arduino from an Atmeta chips and parts.

You can find everything electronic at Sparkfun.com. Of course you can shave some cost by sourcing some stuff elsewhere. For example, if you can find a wall adapter in the 5v range at the dollar store or second hand. Etc.

Note that the program I have later works with a button control and not a potentiometer. I will update this soon.
<p>First off you have some fairly awesome tutorials sous-vide is pretty <br>interesting a pretty trendy subject for the last couple of years have <br>yet to try it as I prefer my steaks in the non perfect fashion well done<br> and seared on the outside to me they are easier to chew and I prefer <br>the flavor and texture but to each their own. I also read your laser <br>printer tutorial a while back still need to come across a cheap laser <br>printer and settle on the method as well as learn how to use board <br>design software I hear you can use a magic marker to cover the areas and<br> draw traces etc just as well dunno have not tried.</p><p>Anyhow<br> this one kind of was a bummer as I read it through until the end and <br>figured out that I wasted a ton of time do to an incorrect title. This <br>is not &quot;programmable&quot; at all as I am looking at doing things in a <br>programmable fashion.</p><p>programmable would mean that it has <br>programmable settings what you have here is not that it is simply a <br>digital thermostat it is important to distinguish the difference! <br>Programmable thermostats have all followed the same standard up until <br>the NEST type devices which are smart or learnable. This standard as <br>programmable was a weekly timer that was included what is important to <br>me is to learn how to setup several daily timers 48 of them to be <br>precise to be user configurable and operate on a weekly schedule. </p><p>So<br> what is missing from this project is huge the entire &quot;programmable <br>portion&quot; carrying the weekly timer lol! What you have is a digital <br>thermostat more or less from what I can tell after skimming through the <br>code looking for timer code. DOH!</p><p>Anyways you should come join us we could use some good instructables over this way <br></p><p><a href="http://www.esp8266.com/viewforum.php?f=38" rel="nofollow">http://www.esp8266.com/viewforum.php?f=38</a></p><p>Aside<br> from that I think you'd like and enjoy playing with the nodemcu if you <br>have not already there is a wealth of possibility in this one little <br>cheap device if nothing else.<br></p>
Could this code and equipment be adjusted to 100-1000 deg C range?
You can use whatever range your thermocouple is rated for, no problem.
As long as the electronics themselves aren't being exposed to those temperatures...
Nice project! I'm working on something similar, but using PID and a solid-state relay. Tuning is a bit annoying, but the end result is pretty nice.<br><br>I'm also using the MAX6675, have you had any issues with it? I'm getting some temperature fluctuations in the output; I'm thinking it's because my current setup doesn't have a decoupling capacitor for the chip.<br><br>http://protofusion.org/wordpress/2011/01/zoncoffee-2-released/<br><br>
I am using the decoupling cap. It's cheap and easier to install that the 6675 itself. If I take readings in isolation, I see a lot of fluctuations. However if I sample about 10 times a second and average I get really solid, accurate readings.
<br> Ok I'm starting to get a grasp on it now. The relay=voltage controlled switch. So the pot isn't in the wiring scheme&nbsp; above right? But it would just be wired to the Vs, ground, and analog pin on the arduino. But does it matter which one, does it change the code?<br> <br> I'm a bit confused on this part (image below) underneath the thermocouple amplifier. From the Vcc connection from the MAX6675 you have a wire running off into a 'little hole' on its way to the arduino. What is this? is this the Vsupply?<br> <br> Now looking at the leftside of the arduino you have two offset connections. One these ports has a wire runt to another hole just to the right of the one I just asked about. What is this?<br> And just to the right of the one I asked about prior there's a liittle square port that runs a wire seemingly over the MAX6675. I'm confused about what this is too.<br> <br> Last question. How would this thing do using a 9v battery? Would it still work fine, and have a decent 'lifetime.'<br> <br> Sorry if I'm asking dumb questions. I'm ordering the parts this week so I can assemble it next week. I hope I get it working! Thx<br>
1. Correct, the control pot is not on pictures. They are out of date. I will try to post updated ones soon. Check the uploaded eagle files. I think they have it. <br> <br>2. MAX6675 the little holes next to the chip on Vcc and Gnd are to place a capacitor across. It evens out the voltage to the chip. The arduino has one built in. <br> <br>3. The two offset connections are A4 and A5 on a pro mini. That diagram is a copy of the layout of the pro mini that I used for my project. <br> <br>4. Should run fine off +5v to +12v. However, since you are controlling an outlet, it's pretty easy to just put a &quot;wall wart&quot; on the power for the outlet and scavenge your 5v there. Why would you want a battery? a $5 wall wart will keep this thing running forever.

About This Instructable




Bio: "If you want to build a ship, don't drum up people to collect wood and don't assign them tasks and work, but rather ... More »
More by dustinandrews:Quick Coffee Grinder Hummus Make a desktop trebuchet Easy solar furnance with Grid Beam 
Add instructable to: