How to ground a sensor directly to my Arduino when I have motor shields stacked on top of the power and ground pins

Hello,

I'm working on a mechatronic system that has multiple DC, stepper, and servo motors, and decided to use the Adafruit motor shields and servo shields to solder and stack them on top of my Arduino Mega. I'm also using an industrial photoelectric sensor, and all of the schematics I've seen are telling me that I have to ground the sensor directly to the Arduino, rather than the ground board that I have my other drivers and components connected to. So I'm stumped on how to plug my sensor into the Arduino's ground pin when it's already being used by my motor driver. Should I be able to ground it from the motor driver on top, or solder some more wires from the Arduino ground to a breadboard setup, or anything else?

A picture would be helpful.

Here's some pictures of the schematic for the sensor and my Arduino with the stacked shields.


Schematics I suggest.

Buss bars



3D printed with 3" 12 ga power & ground. Tin before using. Soldered connections don't rattle loose. A screw shield provides signal connections.

1 Like

Probably should have used a pass though header on the top board.
image

but since you didn't just add a connecter to the top board... where these holes are, next to the GND pin.
image

Hi, @olliepop1
Did you miss these gnd connections?

Tom... :smiley: :+1: :coffee: :australia:

You haven't seen enough schematics then.

Hi,


Tom... :smiley: :+1: :coffee: :australia:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.