3

I want to (de)activate a fan, which is connected to the pins 4 and 6, depending on the temperature of the CPU.

Is it possible to (de)activate Pin 4 (or Pin 2) at the Raspberry Pi 4 via python? I have already read this article: How to turn power off on 5V dc gpio pin with python, but is there another way just via python, without using a transistor?

3

1 Answer 1

5

No.

Pin 6 is connected to the Pi's ground rail.

Pins 2 and 4 are connected to the Pi's 5V rail.

5
  • So the real only possibility is to interrupt the power circuit?
    – Mike
    May 24, 2020 at 20:02
  • @Meiki Yes, with a switch, e.g. manual switch, relay, transistor etc.
    – joan
    May 24, 2020 at 20:13
  • But is it possible to control the transistor via python, e.g. via using a GPIO-pin?
    – Mike
    May 24, 2020 at 20:16
  • 1
    Yes. Plenty of answers showing how.
    – joan
    May 24, 2020 at 20:19
  • 1
    This other question in this forum provides more information. raspberrypi.stackexchange.com/questions/95710/…
    – BalooRM
    May 24, 2020 at 23:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.