I have connected a fan to my raspberry pi with a transistor that sits on pin 5 ( GPIO 5 ).' I followed an online "guide" to make it.
I would like to make a script that makes it run during the day, say from 9 in the morning to 9 in the evening.
I want to use python and the GPIO library, but how would I set it up?