My New Control System

  • Active since 1995, Hearth.com is THE place on the internet for free information and advice about wood stoves, pellet stoves and other energy saving equipment.

    We strive to provide opinions, articles, discussions and history related to Hearth Products and in a more general sense, energy issues.

    We promote the EFFICIENT, RESPONSIBLE, CLEAN and SAFE use of all fuels, whether renewable or fossil.
  • Hope everyone has a wonderful and warm Thanksgiving!
  • Super Cedar firestarters 30% discount Use code Hearth2024 Click here
Status
Not open for further replies.

twofer

New Member
Hearth Supporter
Jun 4, 2008
91
SLP Michigan
Just wanted to show you guys the new control system that I finished up over last weekend. She's a bit rough around the edges but fully functional. My apologies in advance for the lack of pictures as all I have right now is the one below.

(broken image removed)

The system is driven by an Arduino USB board. The LCD you see displaying the temperature readings is one of SparkFun's serial enabled LCD's (very easy to hook up and use). The temperature sensors the board gets its readings from are the Dallas 1-Wire devices. Right now I have nine temperature sensors that the Arduino gets its readings from. Eight of the temperature sensors are located on the storage tank with three of them being on top, two in the middle, and three on the bottom. The last temperature sensor is mounted on the supply line off the boiler.

Right now the logic that the board uses is pretty simple and rudimentary. When the board senses that the temperature at the top of the storage tank is above the usable water temperature it will activate a solid state relay for the load circulator. If the water temperature is below the usable temperature it will activate a solid state relay for the propane furnace that I have for backup and open the circuit for the load circulator. This way the next time the house calls for heat it will use whichever system the board has decided is best, with the boiler system obviously being the priority. The board also controls the loading the storage tank based on the temperature sensor on the supply and the temperature sensors in the middle of the storage tank. If the temperature sensor on the supply is more than 5 degrees warmer than the middle of the storage tank or is above 175 degrees the board will activate the solid state relay for the boiler circulator. I'm still not sure if this is the best way to handle the differential loading of the storage tank but it is better than what I had, which was nothing, and I can always fine tune it in the future.
 
Let me be the first to say DROOL...

Keep up the good work!
 
Does that mean you assembled this controller with off the self parts?

The logic is software code? Downloaded via USB?

Looks like fun!!!
 
sgschwend said:
Does that mean you assembled this controller with off the self parts?

The logic is software code? Downloaded via USB?

Looks like fun!!!

Yep, it was assembled with all readily available off-the-internet parts. :)

Here are links to the main components:

Arduino USB Board

(broken link removed)

1-Wire Temperature Sensor

Solid State Relay Board (Thanks woodnotoil!)

I should have specified a little bit clearer but yes the "logic" is software code uploaded to the controller board. The programming of the board wasn't really all that hard as there is plenty of documentation on the Arduino Playground and the Arduino forums to help you out.
 
I think I paid more for my (4) temp sensors than you did your whole assembly. Very cool!
 
Very nice Job. Now comes the fun part, sorting out the logic. If you have not been to Nofossils forum you may want to
check it out, I have a feeling I will be posting a few questions about the logic for charging storage there myself in a few days.
I am waiting on some relays now.

Have fun.

Kris
 
twofer, I've built one pretty using pretty much the same components you have, including the SSR4 board. I have it installed and some sensors connected, but the relay board is not being used to switch anything yet. I want to monitor the temps and figure out limits for the relays. I'm planning on using one relay for the pump (120V) and replacing 3 aquastats (24V) with the other three. Do you have any 24V circuits going through the relay board? In the documentation one place said any AC circuit up to 240V, and another said 50V to 240. I haven't tried it yet, just thought I'd ask. Once I have it all set up and running I'll set up a page with all the info, and yes, thanks to WoodNotOil and Phantom for the initial idea.

With so many people homebrewing controllers, maybe we should have a 'Control Geek' forum..lol
 
twitch said:
twofer, I've built one pretty using pretty much the same components you have, including the SSR4 board. I have it installed and some sensors connected, but the relay board is not being used to switch anything yet. I want to monitor the temps and figure out limits for the relays. I'm planning on using one relay for the pump (120V) and replacing 3 aquastats (24V) with the other three. Do you have any 24V circuits going through the relay board? In the documentation one place said any AC circuit up to 240V, and another said 50V to 240. I haven't tried it yet, just thought I'd ask. Once I have it all set up and running I'll set up a page with all the info, and yes, thanks to WoodNotOil and Phantom for the initial idea.

With so many people homebrewing controllers, maybe we should have a 'Control Geek' forum..lol

Yeah, actually the circuit for the load circulator and the propane furnace are both 24vac. I was a bit worried about that too but it works with the 24v.

Control Geek forum eh? I like the sound of it.
 
Looks great twofer!
The Dallas 1 wire temp sensors seem like the way to go, all using the same wires. I am hoping to build or buy something linked to the internet (like NoFossil's) since my wife and I just got Blackberrys this summer and being able to check from my phone would be the ultimate! Here are some links below to a guy who built his own version (like NoFossil) but it appears he is only monitoring not controlling. He is also using the Dallas sensors. The coolest thing I like is the SCADA type one shot displays that place all the temp readings, pump status, and other info on a neat diagram of your entire system. He also monitors power consumption on the heat pump which would not be that important burning wood. Mega Drool!

(broken link removed to http://www.ourcoolhouse.com/monitor/monitor.htm)
Sample CO
Sample MA
Sample IL
Sample CO
Sample TX
 
huskers said:
Looks great twofer!
The Dallas 1 wire temp sensors seem like the way to go, all using the same wires. I am hoping to build or buy something linked to the internet (like NoFossil's) since my wife and I just got Blackberrys this summer and being able to check from my phone would be the ultimate! Here are some links below to a guy who built his own version (like NoFossil) but it appears he is only monitoring not controlling. He is also using the Dallas sensors. The coolest thing I like is the SCADA type one shot displays that place all the temp readings, pump status, and other info on a neat diagram of your entire system. He also monitors power consumption on the heat pump which would not be that important burning wood. Mega Drool!

(broken link removed to http://www.ourcoolhouse.com/monitor/monitor.htm)
Sample CO
Sample MA
Sample IL
Sample CO
Sample TX

Interesting concept, and I agree that the DOW sensors look like a really nice way to go, but I would wish the unit went further - it seems like all he does is monitor things, but doesn't have any control capability like NoFo's unit does. The other BIG problem that I saw with it, is that it seems like the product is very dependent on Microsoft products for setup and configuration - why would I want to install something that is defective by design? (If the system offers support to non-MS systems he certainly doesn't mention it...

Gooserider
 
Awww come on, you know you want to.

Everybody is doing it.

People will like you more for it.

Just pouring on the peer pressure. ;)

On a serious note it is highly addicting. When I was building this controller I kept thinking that once I finished I would be done tinkering with the system. Then the thought of being able to log data entered my mind. Now I'm on to getting the system setup with network access and piping the data into a database. Not really sure where the end is for the tinkering but it is fun.
 
twofer, keep us informed of how you are doing your networking / datalogging. I found an SD card datalogger on SparkFun I was thinking of getting, but your plan sounds cool.
 
I will definitely post my setup when I get it finished, hopefully next month. It's the least I can do for a forum that has given me so much information and help when I needed it.
 
A nice addition to any 1-Wire monitoring setup is to tape a DS1820 to the discharge lines of your freezer and refrigerator compressors. A simple area-under-the-curve or RMS calculation can help to reassure that they're operating normally.

--ewd
 
Wow, very neat controller. The ability to eliminate aquastats alone is a great motivator to learn this type of system. One question though, what happens when a brief power outage occurs? Does the system/controlls automatically start working again or is there some manual resetting that needs to be done?
 
The code itself is stored in non-volatile memory so if the power fails briefly, or even for an extended period of time, the system will resume running the code that it was running before.
 
I have several parameters that are programmable using buttons on my display. I have these parameters stored in the EEPROM of the Arduino so if the power goes out, I don't have to reprogram them.
 
sorethumbs said:
Is it possible for someone who has ever written code before to take on a project like this? How difficult is it to learn the code?

There's a bit of a learning curve to it and it is going to be a bit steeper for someone who hasn't programmed before but I wouldn't say it is out of reach. If you need help there are plenty of examples on the internet (including (broken link removed to http://sites.google.com/site/woodnotoil/arduino)) and those of us here in the forum who have worked with the Arduino.
 
Twofer, do you have a writeup of this system anywhere, and is it possible to find your code? I have all the hardware now and want to data-log temps only, no control. I was looking for code examples.
 
I do not have a write up for it but I will be more than glad to share my code, as well as, how everything is wired up.

Also, how are you planning to log data?
 
Datalogging for the Arduino - I am looking at the SD card shields for the board, or running the PC to datalog. I am interested in displaying the real-time status of the system as well as tracking the system performance over a burn cycle.

I have a PLC for control so I don't need the outputs, just a way to log the temps and adjust the system accordingly.
 
If you end up going with a local PC I am also willing to share my amateur PHP scripts that will take data from the Arduino, dump it into a MySQL database, and allow you to view a graph of past performance. You can see it here: http://204.232.202.254/pastPerformanceOld.php

Please excuse the faulty flue temps as the decoupling capacitor for the ADC is toast.
 
I'm very new to arduino, My sketch is all written thanks to a mechanical engineer friend, I need to take some time and assemble it all. My plan is to control all but the functions of the boiler with the arduino. No data logging at this point yet.
 
Status
Not open for further replies.