Hi, I would like done advice on how to do the following:
System A: 110vac input half wave rectified and 5v Zener to microcontroller.
System B: 3.3v micro controller powered from ac adapter (110vac to 5vdc, 5vdc to 3.3v).
I want to use nfets to short some pins of system A micro to ground by system B.
Full disclosure: I already attempted this and killed system A when I clipped my oscilloscope ground clip to ground. ( I connected gnd on system A to ground on system B which worked fine until my ground clip entered the picture. Was connecting these grounds together completely wrong?
Yes,if you are using 110vac direct from the Mains,as neither side of this is really at the same Earth potential as your Osciiloscope ground clip.
The Mains Neutral & Earth are connected together where the supply line enters your building.
If we lived in a perfect world,the Neutral & Earth connections to your power socket would be connected back to this point with ideal connections with zero resistance.
In the real world,both connections possess resistance.
Normally,no current flows in the Earth circuit,but it does flow in the Neutral line,causing a voltage drop along that line,so that the potential with respect to the point where Earth & Neutral are linked,& between the Earth & Neutral pins of your power socket may be several volts.
That is the
"Not so bad" scenario,where the Neutral line ends up being your "ground" in System A.
The
"nightmare" scenario is when you get the Active & Neutral "back to front",so that the Active line becomes your "ground".
In this case,when you connect the grounds,they both become 110vac 'Hot" with respect to Neutral,& to any Earthed object,including the case of your Oscilloscope!
This will not be at all healthy if you touch the "A" or "B" ground.
In this case,you will get a big
Zap! if you place the 'scope ground clip on one or both of those "grounds"