1

I have a little problem with grounding.

I realized a circuit which is controlled by the GPIO-Pins of the Raspberry. The function of my circuit is irrelevant. You just have to know that I need the 3.3 V and 5 V from the Pins for controlling some IC's. My Output needs 500mA (USB) so I need an external supply. I get this from the USB-Port of my PC.

When I connect 5V, 3.3V, GND from the Raspberry and 5V, GND from USB-Port it doesn't work. The Raspberry crashes. When I disconnect one Ground everything works fine.

I measure the two Grounds and they have a difference of 0.2 V to each other.

What should I do? Can I just disconnect the GND of the GPIO-Pins or can the Raspberry get damaged of it? What is the reason for such a different Ground?

EDIT: A little illustration:

http://www.imgbox.de/users/public/images/KOtsjirqBh.png

The circuit is a sort of USB-Switch. With the GPIO-Pins you can choose which Device should work. So the MUX's are controlled by GPIO-Pins and powered by GPIO-Pin 1 and 2. USB out needs the 5V/500mA of the USB-Host. The Pins are protected with http://www.thebox.myzen.co.uk/Raspberry/Breakout.html

Do you need further information?

Franzi
  • 33
  • 1
  • 5

1 Answers1

1

Before I go any further could you include a diagram of some sort in your question to illustrate what you are talking about? Everything below this is going on your description that may be interpreted incorrectly. I will update the answer when I have more info:

I think that you have an issue with power back feeding into the RPi. In this case you have 2 options:

  1. Isolate your circuit from the RPi. If you need to control it with the GPIO pins look into using an opto-isolator like this one, already broken out for easy soldering. this way you will have no electrical connection between the two circuits. You will need 2 power sources, 1 for your circuit, and one for the RPi.

  2. Since you are not using anything high voltage/current, you can power both through a single power supply. You will need to ensure it provides enough current, a single USB port probably won't cut it. Refer to this question as to the proper way to power your Pi from an external source and the implications of doing so.

Either of these solutions should take care of your problem and get your circuit back up on its feet.

Butters
  • 1,597
  • 8
  • 23