After mounting the GPIO hammer headers to my RPi Zero I am now ready to do some prototyping. The first thing I wanted to test is controlling a 4 pin PWM fan. So here is a short howto on that.
Besides a RPi Zero with pin headers you need a 4 pin PWM (Pulse With Modulation) fan. I took a Noctua NF-F12 5V fan. Be aware that when you take a 12V fan it will damage your board!
To easily access the RPi Zero during setup I use an USB to serial adapter cable as described in on of my other posts.
Prepare the SD card as usually. Usually before mounting an RPi Zero I put it into my Raspberry Pi 3 B+. Since that one has an ethernet connection I can update the system and install required libraries: