PIC microcontrollers are very susceptible to be affected by noise, specially by Relays that commute AC power.
What I normally do to avoid noise is:
- Add 0.1uF capacitors close to my PIC and to every IC.
- Add a 330uF (or whatever the datasheet suggests) at the power supply.
- Use an aluminum box with aluminum covers. Completely metallic and input connection holes are small.
- This aluminum box has a cable which goes to the GND of the circuit. This cable is connected to the aluminum box with a screw.
- I use solid ground planes. (I was unsure about the gridded planes, so I always used solid ones,
thx Janne for the info).
- Both faces of the board have GND planes.
We recently started using star grounds so that every circuit gets its own gnd line directly from the power supply.
What I don't know is this...
is it good to connect the circuit GND to the AC outlet GND?And another thing a friend asked me, if I am using a star-gnd connection such as this one (enclosed in the blue box):
http://img696.imageshack.us/img696/2345/planomp3.jpgAs you can see, that GND line is using a star connection. The GND line for every part is unique because every part has its own GND path.
The problem we have is that we were not sure about adding a GND plane. If we used a GND plane, the star-GND lines
would be useless since the GND plane would interconnect them. But if we didn't use a GND plane, we would not have a Faraday cage.
I decided that we could still use the star-GND lines and also the GND planes, but... the GND planes would only be connected in one single spot (yellow oval which goes to the GND node with a 0 ohm dummy resistor, pins 1 and 2).
So,
is it OK to make this connection? Is it useless?
This board is going to use relays to power some unknown AC stuff, so noise may be present.
Thanks for reading.
I hope I made myself clear this time.