Sudden unreliability with my network-enabled Arduino project [SOLVED]

Thanks for the code links...

Any thoughts on my replies to your questions? Particularly the proximity of my device to the actual garage door opener?

Thanks.

It would be best for you to post your code. This is your project, and I don't know how you are doing things. If I can take a look, maybe I can help.

I would test it a piece at a time. Try it in the garage not connected to the motor. Does it still fail? It isn't connected to the motor in the house, is it?

A link to my code on pastebin is in my first posting, but here it is:

Ok, I see...thanks. I will install it back into my garage this evening, but not hook up the wires that connect to the actual opener.

You're right - when it's in my house, no it's not connected to the opener.

Well, it seemed to have worked well back in the garage without the 2 wires connected to the garage door opener for several days, but it stopped working again. :frowning:

So should I physically move the device further away from the actual opener?

Would being plugged into the same power strip/outlet pose a problem?

Shortly after my last posting (the one on the 20th of July), I decided just to try and move the power cords around to see if that would help (but still keeping the wires that goes from my device to the actual garage door opener disconnected). The existing setup was as follows:

I have an electrical outlet on the ceiling of my garage. I have a power strip/surge protector plugged into one of the 2 'plugs' of that outlet. I have my actual garage door opener plugged into that power strip/surge protector, and my 'device' plugged into the same power strip.

My change that I made on the 20th:
What I did was unplug the actual garage door opener from the power strip/surge protector and plug it into the 2nd 'plug' of the outlet on the ceiling (so no longer on the power strip/surge protector), leaving my device plugged into the power strip/surge protector all by itself.

5 days later (yesterday), I started experiencing the same problem as I described in my very first posting of this thread, so my change did not seem to help. :frowning:

I guess my next test would be to move my device physically further away from the actual garage door opener as hinted at by SurferTim...I will do this this evening.

Well that didn't really help (moving the device physically further away from the garage door). Now I'm going to run an extension cord from my device to another outlet in the garage, and we'll see how that goes.

Messed up again last night. :frowning: So I unplugged the two wires that are leading to the magnetic/reed switch...we'll see how that goes.

Hi Domiflichi,
Seems like to me you spent so much time troubleshooting the circuit, perhaps it would take lesser time to build a new circuit :slight_smile: parts are cheap and arduino is reusable, might just work that way (and maybe enclose it in a protective casing?) and you get to keep the old one as a relic.
Ps, sent a message in your pm.
Cheers

Well, I am almost down to nothing else to test. It messed up yesterday. What I did when I got home from work this evening is I ran an extension cord (actually I have to have 2 in order to reach) from my device (still in the garage) to inside my house, in my room where I was testing it. I actually plugged it into the same exact power strip that it was plugged into when it was working inside my room.

So if it fails again, the only thing I have left that I can do is run a network cable from the device in the garage to my room and plug it in the switch that it was plugged into when it was in the room working.

(Just thought I'd give another update)

Wow, you've done a lot of debugging so far. You mentioned humidity as a potential problem. This is probably a long shot, but maybe the wood is absorbing moisture and causing a problem. Do you have plastic stand-offs you could use to keep the circuit board from touching anything. Another thing you might try is heat things up with a blow dryer - not too hot though - and see if things start failing. You could also plug it into a UPS to make sure you have nice clean power.
Any chance the problem is with the garage door and not your circuit?

Tell me about it, I just wish this thing was figured out and working.

I'm sure I can find some sort of plastic standoffs for the board to be away from the wood.

If I do the blow dryer thing, won't that only tell me if heat is an issue? I don't think that's the problem anymore as my device has problems in the (cool) mornings sometimes, not just the (hot) afternoon/evenings (although it seems like the problem rears its ugly head more in the late afternoon/evening).

That UPS thing is a good idea...I purchased an OpenSprinkler device from Rayshobby.net (actually I sourced all the parts online from Digikey and Mouser and just bought the circuit board from his site), soldered it all together and have had problems with it locking up and other weird things every 1-3 weeks. Ever since I put it on a UPS, I haven't had any problems with it. Or maybe it was after moving the ethernet cable off of the PoE switch, I can't remember.

The garage door can't be the problem as my device has been messing up even when it's not connected to the garage door.

If my 'current' test fails, and my 'last' test fails, I will try one or more of your suggestions.

Thank you for the new ideas.

And thank everyone for all their help so far. This is a great forum.

Nothing really new to report yet as I keep having to pull the power to my device for various reasons...although I haven't had to do it because of it misbehaving, so maybe the power in my garage could be the problem...don't know yet.

In the interim, I wanted to post a few pictures that may give more insight into my garage and my project.

First, here is the back of my board...I don't know if the way I made all those connections to +5V and GND are good practice (see the top area...I left a little bit of insulation on my +5V and GND bars to tell me which one is which):


(Note the length of the 2 bare wires...is that bad?)

Next, I noticed that around the solder joints/points of the Ethernet Shield seem to be 'dirty':


(Would that cause a problem?)

This is a small (or maybe medium) sized freezer I have plugged into the garage:


(Not that big, but could it be a problem?)

Lastly, this is my wall of network, telephone, security equipment (and there are 2 'servers' that you cannot see that I have plugged into the same outlet):


All that stuff is all plugged into that 1 electrical outlet just below my electrical panel.

I don't know if the garage door opener (and my device) are actually on the same circuit as all that stuff (or the freezer), but it might be. (It seems like it would be since it's all in the garage, but I'm not going to make any assumptions)

Are you still using the 9v wall wart from Sparkfun? It is regulated (switching) to 9V output as long as the input is greater than 100vac. Is it possible the refrigerator and/or some other device (A/C?) is causing the line voltage to sag below 100v long enough to shut down the regulator momentarily?

An o-scope would be really helpful at this point.

add: I noticed you even moved the power to your room where it worked, and it fails in the garage. Just out of curiosity, do you have a memory card in the microSD slot? You had mentioned in your code posted that you had planned to use the SD card to log stuff.

Your code appears to have no timeout function if the connection breaks (not closed). That could cause it to fail.

Hi SurferTim,

Yes, I'm still using the same 9V wall wart from Sparkfun...that has not changed. Maybe the refrigerator, I don't know. I don't think it's the A/C because the problem started happening way before we started turning on the A/C this summer.

I don't have an oscilloscope, nor do I know how to use one. :frowning:

Correct - moving the power to my bedroom is the latest thing I've done, and haven't had a problem since (although I've had to pull the power a couple times as I mentioned, so this 'test' hasn't actually ran for much more than a week a time). No card in the SD slot.

Yeah, I remember ?you? or someone mentioning that about my code. I'll have to look more into that.

One thing that nobody else has suggested--is it possible that the orientation of the circuitry is affecting the connections? I notice that the board is upside-down on your ceiling, but I presume that when you take it down to test it, you're putting it right-side up on your workbench. Perhaps a connection is coming loose when it's upside-down but falls back into place when it's rightside-up?

Actually the board is vertical in the garage. But I tried it vertical in my room, and never had the problem, and tried it horizontal in the garage, and still had the problem. I did actually think of that one too.

Thanks for the idea!

Could fluorescent lighting (I have 3 separate fluorescent lights) cause the problem?

I think fluorescents (or their ballasts) create RF interference, but I don't know whether it would be enough to disrupt an Arduino. Are you using servos or other libraries which use hardware timers?

I don't think so - I'm using the 'Ethernet' and 'SPI' libraries.

Fluorescent lights might cause trouble anyway, I don't know. I'm asking because I had some trouble with a project which wouldn't run on mains power, but ran on a battery or from USB. Other projects (such as the blink project) ran fine on mains power. I eventually discovered that the transformer I was using wasn't filtered and it was introducing just enough noise to break some, but not all, parts of the chip.