Electronic – Common ground with 2 transformers

dualgroundingpower

Beginner question so please go easy on me. My question is around what is the correct way to have a common ground reference on a circuit at that 2 different voltage sources. the below schematic is a simplified version of the problem. The device I am developing (represented in this schematic by a simple LED) is all driven by a 12v wall adapter but the way it knows to activate is when a 24V AC power source activates. I was trying to us a simple MOSFET with a half wave rectifier to detect when the 24VAC source turned on but the question is how do I tie the ground together so they have a common ground reference? Is it proper to tie the ground together like in the diagram? If not what would be a better solution?

enter image description here

Best Answer

Tying the grounds of two (otherwise) isolated power supplies together is fine. The way you have done it is fine.