Dear Arduino forum friends,
Though I've been playing with Arduino from some time now, this is my first post in the forum. I usually find all the necessary information without writing here just reading you guys (you've done every possible combination! :-D), but this time I'm facing a problem that I'm not able to easily find its solution. Let me summarize it and let's see if anyone can help me.
I've developed for a friend's company a couple of devices to remotely control relays through ZigBee. The local device has an Arduino Duemilanove, a XBee shield with a XBee Pro Series 2 working as ZigBee coordinator, a Ethernet shield and a custom board with an AC/DC PSU (220VAC to 5VDC) and a custom circuit with two relays. The power supply unit, the relays and the circuit are build on a prototyping single sided strip board (something similar to this http://img-europe.electrocomponents.com/largeimages/R1004334-01.jpg). The remote device is the same without the Ethernet and has the XBee working as ZigBee Router. All is packed in a plastic box with an external 5dB antenna connected to the ZigBee PRO with an UF.L connector. Everything is controlled by a remote PHP application though web and works flawlessly 24/7!
You can see in the following pictures what the boxes looks like
Local box:
Remote box:
Well? everything seemed perfect, but now comes the problem. My friend told me that when installing the remote box, having it branched, at one moment he touched the metallic part of the antenna (ground) and a metallic post and had an electric shock (not big, but significant). He measured with a voltimeter what he had there, and between the antenna's ground and an external “good” ground he had 92 VAC!! there should be only DC voltage on that part! :o Similar thing happened on the local box (~50 VAC)
I went to see my friend to measure things on the remote box and see that between ANY point in the DC part (arduino, relays circuit, ZigBee,?) and an external ground there was 92 VAC. The DC voltage was perfect, but there's this huge AC ripple (¿?) that we don't know where it comes.
We tried without the XBee connected and still had the same problem (then this has nothing to do with RF)
The power supply is from TRACO POWER (http://www.tracopower.com/fileadmin/medien/dokumente/pdf/datasheets/tmlm.pdf) and it says in the datasheet the the isolation is 3,000 VAC and the ripple less than 100mV.
The circuit designed is this one. The drawing doesn't include the antenna (connected to the XBee PRO) and the Ethernet shield (only present on the local box)
I don't have the boxes with me now (my friend is using them even with this ripple as they work perfectly) though I'm buying the same stuff to build another box and try to reproduce the error again and find a solution.
Any ideas where this problem might come from? :-? need extra ground? bad design? need better prototyping board? the PSU is maybe a SMPS and needs output filtering? anything else?
Any comment is welcomed!