In other news I have spent the last couple of weeks working on improving my water system. It is going to be a great move forward, but living through it has been a little more intense than I expected.
An Arduino sitting on top of some of my retirement paperwork. Sadly, I didn't win though... |
Starting out I had only one goal. I wanted to keep my water tank from freezing up. I learned the first winter living in the van, anything in direct contact with the floor is going to freeze. I need warm air from the furnace passing between the floor and the tank to prevent that from happening. I thought maybe it would work to just have an air gap. Convection. Over Christmas break I had the van home for a stretch of days and did the re-plumbing job I posted about. Part of it was adding some foam blocks under the tank lifting it about an inch. No joy. Maybe it didn’t freeze quite so easy but it has been a cold winter so it was frozen pretty often. There was just not enough air movement.
To hook up the temperature probes I used a telephone module available from Home Depot. This allows me to wire all the probes into one spot that can be disconnected from the Arduino for service. |
I used an Arduino —what is called “open source hardware”. Arduino is classified as a micro-controller platform. A very small programmable computer dedicated to a single task. Generic Arduinos cost $11. To this I connected five temperature probes. Why five? That’s how many are in a bag for $7. I wired to the Arduino a two channel relay, $4 and to the relay I attached a fan originally meant to be installed in a brand new Cray supercomputer. …Had its box been closer to the top of a pallet of fans, that's how it would have lived its life. Instead the last box of twelve, the spares left over after the Cray rolled off the shipping dock, found its way into my hands via number one son. Cost zero. Finally I am an information geek so I bought a little OLED display $3 to tell me what the temperatures are at each of the probes and optionally the RPM speed the fan is turning.
To make the phone board work I had to wire some jumpers on the back and then covered them in a layer of epoxy. |
First what I suggest is to develop some standards in what color of wires you use. The temperature probes have yellow red and black wires. But they are too short to be of any real value. I extend them by using cheap CAT5 network wire. I connect it to the probe using the following scheme:
Brown -> black (GND)
Blue -> red (+5v)
Orange -> yellow (data)
These are not random choices. I might get into that in some later post but these colors correspond to POE or Power Over Ethernet standards that Voice over IP telephones use. Using a standard like this will allow me to build on it and not worry if something random gets plugged into one of my wire jacks.
Starting out I used a small breadboard to get things tested and working. Then I wired it all to the Arduino. |
The rest of the hookup was easy. The fan, not surprisingly for a multi-hundred million dollar computer component, is pretty sweet. It is actually two counter rotating fans back to back. Two fans in series, turning in the opposite directions, with fan blades mirrored of each other. No vibration, very little noise, but lots of air movement. The fans run at twelve volts and so that is why I use the relays. The Arduino sends them a small signal causing them to switch and turn on the fan.
Simulated furnace on with a probe laying on my laptop. |
I have this whole system built, sitting on my desk at work. The next step will be to get it installed in the van, a process I will be telling you about in a future post.
Here is the Arduino code I wrote to make it all work:
No comments:
Post a Comment