if the GPIO pin is floating it should not source any current, so the npn will not turn onrpdom wrote:I'd add a 10K resistor between the transistor base and GND to prevent it turning on if the GPIO gets set to Input (whe the Pi is first switched on, for example) and it happens to float high enough.