Controlling a high voltage fan with microcontroller
Without any special circumstances (such as large currents in the shared ground) sharing a ground with a high voltage is no problem, we do it all the time: we share the ground (literally) with all kinds of high-voltage power lines.