The temp controller is powered from the same 12v mains transformer that powers the heating pad, which is regulated down to 5v to drive the circuit. A picaxe 18X does the work, and a DS18B20 digital temp sensor is immersed in the brew to sense the temperature. The sensor is encapsulated in stainless steel so it can remain in the vat for the duration of the brewing.
The unit has a 2-line alphanumeric LCD to show the preset temperature, and the actual temp of the brew. Two buttons adjust the present temperature, and LEDs indicate when the heating element is on and/or the brew is at the desired temperature. A MOSFET switches the 12V at about 2 amps to drive the heating element. The mosfet I used can actually handle about 15 amps if required.
I used the thermostat to control a resistive heater which is sewn between a woollen blanket and cotton sheet, to form a thick wrap which I tie around the vat of home brew to keep it at a constant temperature for perfect fermentation, even during cold winter months in an unheated room. Thanks to Bec for sewing the heater element into the blanket!
Remove these ads by
Signing UpStep 1Parts
1. PCB. I pay by the square inch to have boards made so I try to keep them small. As such, this one is double-sided and uses plated-through holes. You're welcome to try to make one at home but I really recommend getting one professionally fabricated. I had mine made by BatchPCB, a division of SparkFun. You can buy a board at http://www.batchpcb.com/product_info.php?products_id=44036&check=c260fda1c9d3f5c8cb643726708f6a35 or download the Eagle files at the end of this Instructable and sort it out yourself.
2. Picaxe 18X. This has since been superceded by the Picaxe 18M2, which should be pin-for-pin compatible. (and slightly cheaper)
3. Temp Sensor. The picaxe can natively interface with a DS18B20 digital temperature sensor from Dallas/Maxim, which makes it super easy to write the code. I found this waterproof version on eBay, whick is far more suitable for immersion in an ethanol-water-sugar solution. Depending on what you're actually using you thermostat to control, you may be able to use the bare sensor, which looks like a TO-92 transistor. However the waterproof version should only set you back about $6. Note that the one I bought had the pins swapped, so that pin 1 of the molex plug was actually pin 3 of the sensor! It is possible to carefully remove the pins from the plug body and move them into their correct places, or you could attach the socket to the board the other way around. Whatever you choose to do, CHECK THE PINOUTS OF THE TEMP SENSOR! On the sensor I used, pin 1 [ground] was the bare shield wire, pin 2 [DQ] was white, and pin 3 [VDD] was red. I repeat, please check before you assemble the circuit!
4. IC sockets and pin headers. To raise the LCD module and the the up/down temperature switches off the board, so they poke out of the front panel. I used strips of header and pins, cut to size.
5. Resistors. I used high-brightness LEDs for the indicators, but used very high value resistors to keep the brightness down. If you want brighter LEDs you may need to use lower values for R8 and R9. Rememer that the green LED is driven from 5v from the picaxe, but the red LED gets 12v from the mosfet. Choose your resistors accordingly!
| « Previous Step | Download PDFView All Steps | Next Step » |
















































1. (the easiest way) A firmware change to display farenheit temperatures. Without some form of input (like a switch on one of the picaxe's input pins) you would not be able to select celsius or farenheit on the fly - the only way to select between the two would be to plug in the programming cable and change the firmware. If you're not changing scales every day, this would work fine. I hope to put up code to do this within the next few weeks. Not hard to write, but hard to find the time!
2. (slightly harder) To avoid changing the circuit board, one could solder a switch and a pull-down resistor to one of the unused picaxe input pins, to allow the user to select between celsius and farenheit (even Kelvin if you want to be cheeky) on the fly.
3. Change the circuit board to have another switch on the front panel. This is the hardest route to take but would give the most professional-looking result. We'll wait and see how much interest there is, and if it is demanded, maybe I'll upload a version 2 of the board
3/4. The picaxe 18X, which is what the board was designed for, has a hardware "reset" switch on pin4, which on my prototype I hid at the back of the board. Revolution Education are replacing the 18X with a new chip, the 18M2, which has no requirement for a reset switch. It should be possible to have the best of the all the above options, without having to re-design the PCB - you would just have a little hole in the back of the case, where a hidden button would allow you to switch between celsius and farenheit. Next time I put in a picaxe order, I will make sure to get a couple of 18M2s and try this myself. As an added bonus, this chip is also cheaper than the original 18X.
I hope this is of some use to you.
Another way :-
Hold down UP and DN together for 3 seconds to switch between Celcius and Fahrenheit. Store a flag in EEPROM so it remembers the state for next time.
OR :-
Hold down UP at power up to change to Celcius. Hold down DN to change to Fahrenheit . Store in EEPROM as above.
Useful project by the way - I'll be making something like this for brewing before next winter.
Hold down key at startup would be the easier one to code.
Picaxe 08M2, 14M2 and 20X2 just released by Rev-Ed., although if you are a 'dialup prisoner' it's going to take a while to download all 88MB of the updated PE. (If you ask on the PicAxe forum some kind soul may send you a CD as there appear to be a fair few PicAxers in Aus.)
In your instructables you seem to skip over quite a few steps. I'm not really sure what all the resistors/capacitors are connecting. And your eagle files download to .temp when I change the file extension only one of them work on eagle. Is this project just as simple as having the parts, learning to read Eagle schematics and connecting/soldering? Or is this for people who have an understanding of building these projects already?
Also, for my project I'm looking for more of a temperature controlled switch, so could I just replace your mosfet with a relay? Thanks For your help! I'd really like to get this project going
Yes, it should "just work" if you simply follow the Eagle layout. However we both know life isn't that simple! Especially if you haven't used the picaxes before, it might be worth asking someone for help.
The picaxe can't switch enough current to drive a relay directly, so you would still need to increase the picaxe's switching capacity somehow. You could replace the mosfet with a cheaper transistor, but you'd only be saving a few cents.
Let me know if you want me to try uploading the files again. If you can see the circuit board layout on screen, that should give a better idea of what's involved in construction.