I'd like to automate my solar heating system. So,I'll need a little
control logic that reads some temps and switches on a fan and possible
some servos.
It's been a while since I've looked at the options, but I see Arduino is
readily available with a variety of hardware.
Recommendations for control logic, sensors, or other hardware? Arduino
or something else?
Jeff
Here's a strategy that works for me.
Use a microcontroller to do the low-level hardware interfaces and real-time
stuff.
Interface it with a RS-232 port. That makes that part pretty easy.
You have lots of choices for hardware. I use PicBasic pro and the
16F877A processor, cuz that's where I started and see no reason to change.
Starting fresh today, the Arduino looks attractive. But pick
something that has a compiler language you can live with.
I don't have the patience for C, and that limits my choices.
I do the heavy lifting on a PalmIII connected to the PIC
serial port. There's a free basic-like language called
"dialect" that makes it easy to get a GUI interface with
touch. Do all your floating point math and string processing
and data logging in the Palm.
PalmIII's can be had at garage sales and scrap dealers
for under a buck.
Here's where it gets interesting. If you want to switch
from the palm to a PC, all you gotta do is use a usb/rs232 dongle.
You don't have to change ANY code.
Ditto for wireless. I can plug on RS-232 to Bluetooth dongles
and the whole thing goes wireless with ZERO changes in the code.
You don't have to know anything about USB or Bluetooth or nothin'.
As a result, you can use a microcontroller with much less horsepower.
Don't discount RS-232 just because it's old. It makes a great
common denominator.
This is a sample of what you can do very easily on a Palm. This
monitors the gas furnace:
http://myplace.frontier.com/~nm7u/pictures.html
One rule I live by is, "don't ask a question if you're not
gonna do anything with the answer."
With home automation, there's the temptation to measure
and control everything.
A few years ago, in a fit of frugality, I sought to reduce
my energy consumption. Another Palm program times the IR
pulses coming out of the smart utility meter and graphs
energy use.
It was fun to watch the fridge or the water heater or the
furnace blower go on and off...for about a week.
Then, I realized that taking shorter showers uses less
electricity. I don't need to measure the water heater
to know that. If I'm already taking the shortest showers
I can tolerate, knowing the power consumption is irrelevant.
Most of what I needed to know was just plain common sense
and didn't need any monitoring.
Same goes for the furnace monitor in the pix referenced above.
The program has the ability to measure inside and outside
temperatures. So, yes, when the outside temperature is
lower, the furnace runs longer. About the only interesting
thing I learned was that there's about a three hour time
lag between outside temperature and the furnace duty factor.
I scrapped the thermometer interface.
There's a thread currently raging in comp.arch.embedded on the subject
of AVR and C.