Journey with Confidence RV GPS App RV Trip Planner RV LIFE Campground Reviews RV Maintenance Take a Speed Test Free 7 Day Trial ×
 

Go Back   Airstream Forums > Airstream Restoration, Repair & Parts Forums > Plumbing - Systems & Fixtures > Fresh Water Systems
Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Search Log in

Reply
 
Thread Tools Search this Thread Display Modes
 
Old 11-23-2013, 02:06 PM   #1
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
Arduino Tank/Battery Monitor

This post is just a place holder until I can document the prototype in the photo below. Total cost is about $40, plus your time to install it and maybe run the additional wires for the temperature sensors.

"Arduino" is the name of a family of small microcomputers that are super easy to program and use. Setting up the display and sensors in the photo below took about 30 minutes, including downloading the software and modifying it slightly to provide the appropriate display text.
Z

PS--this monitor uses waterproof temperature sensors, so you can make a monitor to show the temperatures inside, outside, in the tanks, behind the cabinets, in the water heater, in the fridge, in the freezer, in the fridge chimney, in the air conditioner, etc. You can show 8 temperatures, each with a short label, on this 4x20 LCD, or more if you don't think you need to label each reading. If there is interest in such a device, let me know. I intend to install one in each of my Airstreams, particularly the fridge monitor capability.

Click image for larger version

Name:	DSCN1828 proto monitor.jpg
Views:	1681
Size:	153.9 KB
ID:	200563
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-24-2013, 12:11 PM   #2
2 Rivet Member
 
1995 28' Excella
West Yellowstone , Montana
Join Date: Oct 2012
Posts: 20
Amazing! Id never heard of Arduino, looks like a great addition to a trailer. Are the temperature and fluid level sensors separate from one another? Are they wireless? Looks like you've included an amp meter as well, does Arduino make a shunt? Is the monitor switched? Great work, thanks for sharing. I look forward to future posts on the subject.
Linus is offline   Reply With Quote
Old 11-24-2013, 01:22 PM   #3
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
The current sensor is an Allegro ACS712, 30 amps. It has an internal resistance of 1.2 milliohm, about the same as the copper shunt in the old Univolts. The advantage of this device is that zero current produces an output of 2.5 volts. Zero volts is negative 30 amps and5 volts is positive 30 amps. The analog input on the Arduino can read this directly. The old shunt system produced a negative voltage for negative current, which is harder to handle in a digital system.

Battery volts are measured directly by an analog input on the Arduino.

Temperature is sensed by DS18B20 one-wire sensors that are accurate to +/- 0.12 degrees C. These can be water proof and submerged in the tanks or placed inside the fridge/freezer, as well as outside.

Tank level is more problematic. The initial design will use the vintage system of probes and wires to detect fluid level. I haven't decided yet whether to show that using LED bars or on the screen. I'd prefer to keep the screen area for temperatures, amps, and volts.

Z
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-24-2013, 02:02 PM   #4
Rivet Master
 
65CV's Avatar
 
1959 26' Overlander
Western , Massachusetts
Join Date: Sep 2005
Posts: 1,468
Images: 6
Zep-

Great find -- not only on the microprocessor -- but on the sensors as well. Looks like a great way to have a small, discrete monitor for a host of different applications. I predict that we'll see some very creative uses in this thread.

Here's one idea: since you seem to be into the '70s era, are you thinking about programming a motion-activated disco ball?

John
65CV is offline   Reply With Quote
Old 11-24-2013, 02:46 PM   #5
Rivet Master
 
Aviator's Avatar
 
1997 34' Limited
1970 27' Overlander
South of Atlanta , Georgia
Join Date: Sep 2009
Posts: 1,709
Images: 2
I am interested in such a device. One for the full on 1970 Restoration I am involved in and one for out 1997 on which none of the probes currently work. I have been using a standard La Crosse inside/outside temp display for the fridge by simply placing the wireless sender inside the fridge. Having a couple of central displays would be great. Possibly one for fluid, propane levels, and battery condition with the other dedicated to various temperatures.
__________________
Craig and Carol
1997 34' Excella 1000
1970 27' Overlander, International
2009 Ford F150 5.4L
ProPride hitch with 1400# bars

AIR 41028
TAC GA-8
WBCCI 10199
Past President Southeastern Camping Unit (12)
Aviator is offline   Reply With Quote
Old 11-24-2013, 03:16 PM   #6
Rivet Master
 
wxbuoy's Avatar
 
2016 Interstate Grand Tour Ext
Wildwood , Florida
Join Date: Oct 2009
Posts: 1,236
Send a message via Skype™ to wxbuoy
I am interested as well! I am at the point in my rehab to install or run wires if needed. Looking forward to details, schematics and parts list!
__________________
Dave and Felicia
wxbuoy is offline   Reply With Quote
Old 11-24-2013, 04:08 PM   #7
1 Rivet Member
 
1990 25' Excella
Florissant , Missouri
Join Date: Nov 2013
Posts: 7
Quote:
Originally Posted by Zeppelinium View Post
Tank level is more problematic.
I dont know if it could be used in your setup or not but on my Arduino computer that I use to monitor and control my aquarium there is a level sensor that uses pressure to monitor the level of the aquarium. Basically it is a sensor in the top of a piece of pvc that monitors air pressure in the pvc, as the level goes up it compresses the air at the top and tells you that it is full. I am new here and don't know the exact rules about posting links to off subject sites but I can post if its ok. I have no affiliation with the company I just thought it might help. Also there is 15" of range on the height of the water I don't know if that's enough or not.
VSpeck is offline   Reply With Quote
Old 11-24-2013, 04:57 PM   #8
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
VSPECK, post away. Any input is helpful to the discussion. Sounds like your sensor might fill the bill. We only need to measure 7" of depth. The only problem I can see is that sloshing in the tanks may allow fluid to get up to the sensor and wet it. It is obviously not designed for that.

Z
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-24-2013, 05:28 PM   #9
1 Rivet Member
 
1990 25' Excella
Florissant , Missouri
Join Date: Nov 2013
Posts: 7
there is no good way to ling directly to the module but if you click the link and then click expansions it under water level expansion module. Sloshing tanks shouldn't be an issue. I mistyped the last post. In the top of the pvc is an adapter that a piece of 1/4" air line connects to and that connects to the sensor. The actual sensor its self can be kept well above the tanks and in a safe and dry space. The same company is working on a 5port level sensor which would be more helpful in our situation but if you are good with hardware work you could make a 3 port or whatever you needed I'm sure.

here is the link to the company page
Reef Angel Aquarium Controller

the same company has humidity expansions and leak detectors and waterproof temp probes and everything. Maybe it would help you in designing your setup.
VSpeck is offline   Reply With Quote
Old 11-24-2013, 06:19 PM   #10
Rivet Master
 
garry's Avatar
 
1969 31' Sovereign
Broken Arrow , Oklahoma
Join Date: Jan 2003
Posts: 1,455
Images: 7
Here is a tutorial for anyone looking for "how to" information with the Arduino.

Arduino Tutorial - Learn electronics and microcontrollers using Arduino!
__________________
Garry
garry is offline   Reply With Quote
Old 11-24-2013, 06:29 PM   #11
4 Rivet Member
 
Chillpoints's Avatar
 
1992 29' Excella
Asheville , North Carolina
Join Date: Sep 2011
Posts: 306
Images: 7
Thanks for the new link
__________________
Jonathan Hettrick

'92 Excella 29'
'20 Ram 2500
AIR # 59179
Chillpoints is offline   Reply With Quote
Old 11-26-2013, 03:54 AM   #12
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
Quote:
Originally Posted by VSpeck View Post
there is no good way to link directly to the module ...

here is the link to the company page
Reef Angel Aquarium Controller

the same company has humidity expansions and leak detectors and waterproof temp probes and everything. ...
Click image for larger version

Name:	MPXV5010GC6T1.jpg
Views:	298
Size:	81.1 KB
ID:	200704

I've searched for a suitable device and the MP3V5100 is about the best I've found so far. It's a +/- 0.3 psi (gauge) transducer for about $14 in single units from Digikey. The vendor (Freescale) makes all kinds of these chip-based transducers. This unit puts out 2.5V at zero pressure and 4.5V at 0.3 psi (only the positive pressure output is useful in this application). For almost all tanks in vintage Airstreams, the max tank depth is less than 8". Eight inches of water is almost exactly 0.3 psi.

The problem is, how to connect the sensor to the tank. The fish tank example above is nifty in that keeps the sensor dry and re-zeros itself every time the tank is empty, but it requires a vertical intrusion into the tank.

Zep

PS--this does the same thing as the $70 unit from the aquarium company, but you have to be able to solder the surface mount package to a circuit board. It's a challenge.
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-26-2013, 07:29 AM   #13
1 Rivet Member
 
1990 25' Excella
Florissant , Missouri
Join Date: Nov 2013
Posts: 7
Quote:
Originally Posted by Zeppelinium View Post
The problem is, how to connect the sensor to the tank. The fish tank example above is nifty in that keeps the sensor dry and re-zeros itself every time the tank is empty, but it requires a vertical intrusion into the tank.
I didn't know if there was a way to get in the tanks for you other than a major renovation situation or not.



Quote:
Originally Posted by Zeppelinium View Post
PS--this does the same thing as the $70 unit from the aquarium company, but you have to be able to solder the surface mount package to a circuit board. It's a challenge.
Yea I'm sure there are ways to do it cheaper but by going through them I get a whole forum full of people working on the same situations as me and 24hr customer support and its already built. I could solder and assemble but that's more work than I want to invest on that particular hobby. I already have enough time in reef tanks
VSpeck is offline   Reply With Quote
Old 11-26-2013, 08:13 AM   #14
Rivet Master
 
Wayward's Avatar
 
2006 25' Safari FB SE
Broadway , North Carolina
Join Date: Mar 2007
Posts: 838
other sensor options

Very intersting stuff.

Parallax sells a 12" submersible strip that converts pressure changes to variable resistance.

Here is an 8" version that looks similar

Here is a video with some Arduino code to read the resistance.

Someone else suggests using a Parallax ultrasonic sensor and converting ping return time, to distance. Code is here but it is not clear if anyone built it.

Garnet's SeeLevel sensor seems to attach on to the outside of the tank. It might be using 1-wire technology with a proprietary data format. This would be an interesting Arduino hack as the sensors can be purchased separately.
__________________
2006 Safari SE FB
2000 F150 4.2L (retired), 2011 F250 6.2L, 2010 ML550, 2000 Excursion 7.3L
Broadway, NC
Wayward is offline   Reply With Quote
Old 11-26-2013, 08:20 AM   #15
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
Quote:
Originally Posted by Wayward View Post
...
Parallax sells a 12" submersible strip that converts pressure changes to variable resistance...
Darn, I had seen this before and completely forgot about it. ...too much going on...

Thanks for the point outs. Very helpful.

Z
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-26-2013, 08:34 AM   #16
Rivet Master
 
garry's Avatar
 
1969 31' Sovereign
Broken Arrow , Oklahoma
Join Date: Jan 2003
Posts: 1,455
Images: 7
Just thinking out loud here but I would think about mounting this close to the tank on it's own PCB and just run wire to the Arduino.

One thought is to put a tee (3 way) shark bite in the input line to the water pump run a clear plastic water line from the T down into the tank. A small line like the water line in the in a ice maker should not interfere with the pump operation.
__________________
Garry
garry is offline   Reply With Quote
Old 11-26-2013, 08:51 AM   #17
Maniacal Engineer
 
barts's Avatar
 
1971 25' Tradewind
Lopez Island , Washington
Join Date: Jan 2010
Posts: 1,244
Images: 1
Blog Entries: 4
I'd looked at those level sensors from SparkFun earlier....

The easiest way to plumb one in would be in PVC pipe, with hoses going to the bottom pump suction line and a (small) connection to the tank vent line.
On my 1971 this is not much more that 1/4" tube, but we just want the water level in the sensor to match that in the tank.

In terms of displays a bar graph for the level seems nice... but I really like numbers on things like voltage and current.

- Bart
__________________
Bart Smaalders
Lopez Island, WA
https://tinpickle.blogspot.com
barts is offline   Reply With Quote
Old 11-26-2013, 10:32 AM   #18
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
Quote:
Originally Posted by garry View Post
...
One thought is to put a tee (3 way) shark bite in the input line to the water pump run a clear plastic water line from the T down into the tank. A small line like the water line in the in a ice maker should not interfere with the pump operation.
Sometimes it's not so easy. If you are using air to transmit the pressure from the tank to the sensor, you have to be sure that at zero pressure (tank empty) the line has no water in it and that for at least the height of the tank, the line is pretty much vertical. Any water in the line at zero pressure will subtract from the tank pressure.

It's the principle of the diving bell or putting a glass upside down in water. As the glass is pushed downward, water pressure begins compressing the air and some water begins to creep up the inside of the glass, but the air will be at the pressure of the water at the bottom rim of the glass. But if you have an inch of water in the glass before you push it down, that inch of water pressure is always subtracted from the actual pressure. So you have to have a design that insures that the tubing never has water in it when the tank is empty.

This is not a problem for the sensor that BARTS suggests because he is using the type that is submerged. He maintains the water level even between his external tube and the tank by attaching the tube to the bottom of the tank and to the vent.

Z
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Old 11-26-2013, 11:16 AM   #19
King of the Zebra Speedo
 
Panama Red's Avatar
 
Obrien , Florida
Join Date: Aug 2012
Posts: 1,439
Images: 7
Could you achieve the vertical intrusion by dropping it down the vent stack? My center bath has vertical stacks on both gray and black tanks... Relatively easy access to both. Just an idea.
-Red
__________________
Somebody ought to clean these windows. There is a tremendous buildup of gook all over them...
Panama Red is offline   Reply With Quote
Old 11-26-2013, 05:20 PM   #20
Rivet Master
 
Zeppelinium's Avatar

 
1973 23' Safari
1977 23' Safari
2018 25' Flying Cloud
Palmer Lake , Colorado
Join Date: Oct 2005
Posts: 4,092
Send a message via Skype™ to Zeppelinium
Quote:
Originally Posted by Panama Red View Post
Could you achieve the vertical intrusion by dropping it down the vent stack? ...
Exactly, but I'm wondering how you would secure the tube inside the stack. I'm also not too fond of opening the black stack.

Before we all get too wrapped around the axle, this is a great discussion, but the first version of the monitor will use the old probes in the side of the tanks. It will be able to use the early 70s 3/4-wire versions or interpret the 2-wire later 70s version.

Z
__________________
Zep@Charmedquark.net
Zeppelinium is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Featured Campgrounds

Reviews provided by

Disclaimer:

This website is not affiliated with or endorsed by the Airstream, Inc. or any of its affiliates. Airstream is a registered trademark of Airstream Inc. All rights reserved. Airstream trademark used under license to Social Knowledge LLC.



All times are GMT -6. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.