Looking for the best solution to solve this common ground problem
Posted: Tue Mar 06, 2018 10:51 am
Hi everybody ...
this is my first time posting a question on this forum, so i apologize for any technical pitfalls in my questions. I am working on a project in which i want to design a simple dc motor control module (consists basically of two mosfets), that is to be connected later to a processing unit (arduino in my case). My problem is that in order for the mosfets to operate (and work as a switch to conduct electricity to the dc motors), it should have the same ground as the arduino (or else, if the arduino gives a "high" signal, it wouldn't be understood by the mosfet). However, the arduino is connected to some sensors and other modules that are disturbed when they have the same ground with motors.
In order to solve this, i separated the electricity of the motors from that of the processing unit (so the motors work with a separate battery, while the arduino and the other sensors work with another separate battery), and i linked the arduino with the mosfets using optocouplers (pc817)
( have a further understanding of Optocoupler working principle and basics=http://www.apogeeweb.net/article/69.html). This solved the problem of having common ground, but the system became more complicated.
One of my friends told me later that i didn't need to do this, and that this problem (that of common ground) can be solved easily by just rerouting the circuit in a certain way that separates the physical traces of the digital devices than that of the mosfet and motors.
I don't know what is the best solution. Can anyone help me with that? Thank you in advance.

In order to solve this, i separated the electricity of the motors from that of the processing unit (so the motors work with a separate battery, while the arduino and the other sensors work with another separate battery), and i linked the arduino with the mosfets using optocouplers (pc817)
( have a further understanding of Optocoupler working principle and basics=http://www.apogeeweb.net/article/69.html). This solved the problem of having common ground, but the system became more complicated.
One of my friends told me later that i didn't need to do this, and that this problem (that of common ground) can be solved easily by just rerouting the circuit in a certain way that separates the physical traces of the digital devices than that of the mosfet and motors.
I don't know what is the best solution. Can anyone help me with that? Thank you in advance.