Thursday, January 26, 2012

Pitfalls of Downloading Movies Part 2

Got the cheap ($15) four port switch in and ..... it worked!  Now I can download a movie and watch it, or stream a movie and the house keeps working just fine.  Like one of the folks that commented on my problem described, this was easy to fix, just unexpected.

I've found over and over again that the more expensive items aren't necessary.  The switches I looked at ran from $15 to way over a hundred bucks.  I chose the cheapest I could find that was easily returned if it didn't work.  There was no time pressure, I could wait for an order to come in and return it and try again if necessary, so I felt it was worth it to see if the cheapest would work.  I don't have a clue how long it will work though; only time will tell me that.  It may be that the power supply is running over capacity and it will die a day or so after the warranty expires; I've had that happen with DSL modems twice now, and they weren't the cheapest I could find.

Friday, January 13, 2012

Pitfalls of Downloading Movies

I recently started downloading movies from Dish Network and watching them.  This is a nice feature even if the selection of free movies is pretty limited.  However, there is a problem that didn't occur to me.

As we all know, movies are big and take a lot of bandwidth to get to the TV to watch.  This clogs up my in-house network and shuts down some of my devices.  On the leg of my ethernet that feeds the Dish network receiver is an old hub that runs at 10Mbs; when I start a movie download, every device on that same leg can't get responses quickly enough and goes into recovery mode.  That means they reset, and wait until they have an internet connection before starting back up.

So, download a movie, turn off the house.  Swell.  Everything recovers nicely after the bandwidth comes back and things crank along normally, but sometimes these movies take a while to load.  I've got a 10/100 hub on order to replace the old device and that should take care of the problem and increase the speed of the movie download somewhat.  The only reason I think this will work is because the other devices in the house just keep on working.  They slow down a bit, but they don't just stop like this particular leg does.  I could also modify the various timeout periods to allow for slower traffic, but I want to try this first.

At some point, I'm going to remove all the house control devices from the ethernet except the house controller. I'm getting tired of the internet causing problems around the house and my XBee network is working great.  I never, ever have a problem with it hanging up or getting overloaded due to some other activity.

So, the acid pump needs work, the water heater needs a new control system and now the ethernet is clogged.  Somebody remind me that this is really worth the effort.

Oh, that's right, I saved almost a $1000 on power bills last year.....that's right, I remember now.

Tuesday, December 20, 2011

Stupid Water Heater

I just got my power bill for November, 2011.  I had a peak demand number of 4.9....crap !  I sort of knew this was going to happen because one day I saw the hot water heater going during the peak period.  This shouldn't have happened, but:

I use an X10 appliance controller hooked to a contactor to control power to the heating element of my solar water heater.  See, when it's cloudy, the solar collector can't generate enough hot water for the house and there's a helper coil in the heater to take over when that happens.  Usually, I keep the power off to the helper coil using an X10 timer that shuts off the power to it during peak periods.  X10 is notably unreliable and failed to turn the power off that day.  Of course, I didn't know it and crawled in the tub to soak some sore back muscles.  The water I used caused the heater to come on and my demand went up during a peak period.

If it hadn't been overcast and cold, or the X10 timer had worked, or I had manually shut it off before using the water, or I had an alarm that told me the usage was that high, I wouldn't have had this problem.  This probably means a new device for the house.  The obvious solution (from my perspective) is to put another timer in like the one I use for the Acid Pump.  Just set this one to keep the helper element off during peak periods and let it run as it wants during off-peak.  I can get the time from my XBee network and I would be able to include the status of the hot water heater on the House Controller.

But, it's the holiday season and time is at a premium so it'll have to wait until January.

So, how much did this little event cost me?  Looking at my bill there were the following charges related to peak usage:  Demand Charge on Peak - Generation $34.86 and Demand Charge on Peak - Delivery $10.24 for a total of $45.10.  My usual Demand level is less than 2 kW averaging around 1.7 so my expected amount would be about 2/5 the billed amount for around $18.00.  The actual power it used is trivial since it was only 4 kWh at $0.19 per kWh or around 80 cents and I would have used power later anyway. So, a soak in a hot bath tub to loosen some back muscles cost me $27.00 extra last month.

And, that's how they get us folks.  One time, one mistake, and your entire month's bill is screwed up.  Next month, you swear to be more careful and watch it more closely and something different happens; you're screwed again. In my opinion, the only way to overcome this is automation to control what happens in the house during the peak periods.  I just didn't realize how reliable it absolutely has to be to declare success.  So, in January, I'll be back to working on controls.  This time I'll disable the water heater element based on peak, and not rely on a stupid X10 controller.

Monday, December 19, 2011

Temperature Sensitive Ardweeny

Yes, it was a temperature sensitive Ardweeny that was causing me trouble with the Acid Pump.  I couldn't tell which part it was that was failing, so I just programmed a new one and put it in place.  Pump is working fine now.  I'll use the temperature sensitive one in some application inside the house where the temperature extremes are not as high; it should work fine there.  Glad I put the Ardweeny in an IC socket, it made replacement easy.

The new fittings and pump head are also working fine.  I'll have to give them some time to see if they start having problems and the temperatures are low so the chemical reactions are retarded and the problem might not come up until summer.  In the meantime, I have gotten some check valves and adapters to try out.  I went to  US Plastics and browsed through their site and found something that may be good as a replacement, but haven't tried them yet.  The new check valves have a metal spring in them; that could be a nasty problem to overcome.  Almost all metals react with HCL, and some of them do it really fast.  I have one of them already in place as the injection valve into the two inch pipe plumbing the pool.  In this case, the spring is exposed to the pool water most of the time with only limited exposure to the acid.  In this instance, it works fine, but the outlook is not as optimistic for something that is exposed to straight acid 24 x 7.  Here's a picture of the candidate replacement parts:
Notice that everything is plastic except the spring, I wonder if I can find Kynar or Teflon springs somewhere.

Friday, December 9, 2011

Updating the Ardweeny Bootloader

I've been having trouble with one of my Ardweeny devices.  I use one of the little guys in a timer that runs my Acid Pump. It has been running well, but recently started to hang up daily.  I added a watchdog timer based on the code I developed for the Arduino Mega2560 that should have caused it to recover if this happened, but that didn't solve the problem.  I finally realized that I may be suffering from a problem with temperature.  It gets cold at night now and the device may be temperature sensitive.  However, before I thought of that, I decided to use the normal watchdog timer code that is supported for the Arduino; it didn't work.

It appears the Ardweeny uses the standard bootloader for the Arduino Duemilanove which doesn't support the watchdog timer properly.  Easy, just replace the bootloader with the one developed by Lady Ada right?  Except, I couldn't find the hex file for it.  I spent a couple of hours looking around the web for it and just couldn't find the darn thing.  I know it's out there, people say they use it and have burned it into their roms, but I couldn't locate it.  Finally, I just gave up and got the optiboot loader for the Arduino Uno and loaded it on.

People talk about how the first of optiboot loaders had a number of problems and they have since been fixed, but I'm here to testify that it's pretty darn hard to find one that has the various problems fixed that you can load on a board.  After trying several of them I finally found one that actually works.  Version 4.4 of the optiboot loader will burn into an Ardweeny and works just fine.  It supports the higher loading speed, is considerably smaller and supports the watchdog timer.  I got it here as text and simply copied and pasted it into a hex file.  Then I used an ISP (In-circuit Serial Programmer, specifically Lady Ada's USBTinyISP) to program it into the Ardweeny.

However, the Ardweeny doesn't have an ISP plug.  That means you have to figure out which pins from the programmer go to which pins on the Ardweeny and jumper them to it.  However, that's not too hard and only drove me nuts for around an hour or so, after all it's only six wires.......

I really like this solution.  It gives me the very latest and greatest bootloader on the Ardweeny and totally supports the watchdog.  Now, some more testing to see which of my parts is temperature sensitive, I may have to break down and buy some freeze spray.

Getting back to the Acid Pump

As I mentioned before, the acid pump fittings melted and the company was sending me a new pump head under warranty.  It came in and I got around to installing it, the day before yesterday.  Wasn't hard, and it seemed to work.  I took a look at the fittings and there are some serious shortcomings to the way they work.  Yes, I realize I'm not a mechanical or hydraulic engineer so my opinion is suspect.  But, there's some common sense things that should have been thought of here.

First, the materials they use simply shouldn't dissolve when they are used for purposes clearly spelled out in their flyers.  They specifically say it will handle concentrated HCl...the pump does, but the nuts that hold the hoses in place don't, they melt.  They say the self-priming height is 5 feet, it's about a foot, maybe a little more.  If the pump loses prime, you have to lift the bucket up to the height of the pump to get it to prime.  The darn thing has a serious tendency to leak.  The way the fittings screw into the pump head doesn't allow the O ring to compress well and great care has to be taken to make sure it seals.

But the thing that ruined the previous set of fittings is the simple nipple that holds the tubing to the pump head. This is what it looks like.
There are several of these, one each for suction, discharge and injection, and each of them have the same shortcoming.  I took this drawing directly from their installation manual:
Notice where the tubing is pressed onto the fitting?  This is only about 3/8 inch long and has no barbs; it relies on the compression nut to hold it in place and the compression nut will bottom out on the threads so you can't actually compress it enough.  Any deterioration to the tubing such as aging for a couple of months under pressure and it will start to leak.  So, between the bottom of the fitting not compressing an O ring that should seal it and the compression nut not being tight enough on the tubing, it will fail over time.  Also, notice in the picture above that the nut is a slightly different color?  The nut is obviously made from a different material than the rest of the fitting.  Shouldn't the nut have the same chemical resistance as the rest of the assembly??  Some engineer somewhere didn't think so.  There is a different compression nut available:
It's a different color and probably a different material.  This one might work, but they sell it in lots of a hundred.  HUNDRED??  What the heck would anyone need a hundred of these things for?  Do they fail often enough that one would need a hundred on the shelf as replacements?  Maybe, just maybe I answered my own question......

I spent a bunch of money on this device and I don't intend to just give up on it.  It's likely that I can find valves that will work and don't have the shortcomings I detailed above, or maybe a little redneck modification can over come the problems.  For example, if I wrapped the threads of the fittings with teflon tape so the threads sealed, the O ring problem might go away since it would serve only as a backup to the threads being sealed.  Similarly, I could wrap the tubing with teflon tape to increase the pressure from the compression nut to help overcome the sealing problem.  Maybe drill out the nipple where the tubing slides on and thread in a barbed fitting for the tubing?

I haven't given up yet.

Monday, November 28, 2011

Rocky Soil in the Desert

My relatives and friends that don't live in the desert don't understand why I complain all the time about the rocky soil.  Those city folk that live on asphalt and the country folk that live on land farmed for generations don't think about what the dirt is really like in the desert where man and nature have conspired against me.

Today I am working on a continuing project; a deck on the East side of my house.  I didn't have it built when the house was constructed because I wanted to move in.  I was living in a motorhome on the edge of town commuting out to the house each day and that was getting old, so I had the house inspected and moved in without several patio areas.  This is the largest and will take the most time and money to build.  Enough background, I had to dig a hole to put in a support to keep the deck from bouncing and sagging.  This is one of those pre-made ten inch concrete things that you put under things to hold it down in the wind and support it when walked on.  Normal stuff.

So I dug a hole roughly 18 inches square and 12 or so inches deep to hold the support; here's a picture of it.
No big deal right?  Well, this little hole took me a couple of hours to dig.  Why??  well, here's the pile of rocks I got out of this one hole:
I put the framing hammer there to give you a sense of scale.  There's enough rock there that I couldn't possibly fit them back into the hole.  Each one of them had to be pried out of the ground with a 6 foot, tempered steel rock bar.  There wasn't enough dirt taken out of the hole to fill it back up even after I put the 10 by 10 hunk of concrete in it.  It was all rock like this with coarse sand holding them in place.

Shovels are for moving the coarse sand around, picks are for loosening the rocks a bit, and rock bars are for leveraging them loose enough to lift out of the hole.  You DON'T just go outside and dig a hole, it's a major undertaking.

Now, on to the next board....