I'm building a DIY project with a Rapberry Pi. I tried to cut down the connections to the ones I think might be involved in a certain behavior I'd like to understand.
What I have:
- a 12V power supply
- a UBEC that is powering the RPi
- a small DIY board with connection for some sensors, an LCD and some fans
The 12V arrives on the board through a TIP120, switched with a GPIO pin from the RPi. From the RPi itself, I'm using a VGA cable to bring many GPIO pins (for various purposes) and the 5V up to the DIY board; but not the RPi's GND: since it should be the same GND "shared" between the power supply and the UBEC through the RPi, I thought I could save a wire and use the GND from the 12V wire. This had the advantage of shutting down also all the other 5V stuff attached to the board when I cut the 12V off from the TIP120.
The behavior I don't clearly understand is this: when the GPIO pin in the schematic is LOW, and no current flows through the TIP120, the 5V part of the DIY board is also shut down, but the fans continue to spin at a very low speed, and in fact probing with a meter, there are ~6V across them.
I think that the circuit is being closed via the 5V wire through the RPi, thus having the 6V across the fans (12V are slightly lower, about 11V; and 11V - 5V = 6V).
Is this correct?
Then, if I disconnect the "common GND" and bring a wire from the RPi's GND to the 5V section of the board (connecting the two "X" in the schematic) it clearly stays always ON and also I'm able to completely shut down the 12V fans (in addition, I'm surprised that all PWM signals from the RPi to the fans, regulating their speed, continue to work).
(Sorry for the simple circuit diagram, I hope there are not too many mistakes, especially about notations - I do this for fun and I'm not an expert)