I'm using the GPIO pins on my Pi under Raspian to control a relay and a computer fan. In Python 2, the command
GPIO.setup (18, GPIO.OUT)
Immediately supplies power to the pin and triggers the relay.
GPIO.output (18, False)
Has no effect but
GPIO.output (18, True)
turns off the pin!
Has anyone experienced this behaviour before? There seems to be a small amount of power supplied to the pin on boot as the LED lights dimly but there is not enough to trigger the relay. This is fixed after