Hello everyone. Always I've thinker that I could use a common ground for multiple voltage circuits.
I am using a stepper motor with a driver to manage it.
The stepper works with 12 V and I must supply 5V to driver. I was connecting both grounds to the battery negative (battery of 12V). But I got stuck with it because stepper seems to work in a direction but when it has to turn in the other direction I only listen to a little noise, but no movement observed. In fact it shakes.
In the moment I've connected driver supply ground (5V) to the ground pin in Arduino board, everything has begun to work right.
What does it happen? I need to know something I don't know?
Think of ground as your reference point. On the Arduino you turn a led on and off, if you measure it from the Arduino ground to the anode it will be high when it is on and low when it is off. Now take another board and put it beside the arduino. Leave your ground connected to the arduino and turn on the second board with a different power supply and measure the voltages, they will not make any sense. Now connect the grounds together, not you have the same reference point and the measurements will be good. Chips work the same they need a reference point when one communicates with another. Hopefully this helps.
Hello everyone, sorry for not replying during the week.
I post a picture of the connections. I need to connect both grounds to the expansion board.
However, looking at the bottom side of the board both pins seems to be connected and therefore the same.
If I don't click in the ground to Arduino it does not work and if I don't click in the ground of the battery it does no work. Both must be connected to work.
That is what I don't understand what it is happening
Wouldn't say you have a problem at all. You need a complete circuit from each power source (positive and negative (ground))
You are using power from the battery (12v to run the motor) and 5v from the uno to control the motor. Both circuits are on the same circuit board, and without anything isolating the circuits from each other the ground will be tied together