From 52Pi Wiki
Jump to navigation Jump to search

Raspberry Pi Fan Expansion Board Plus 0.91 OLED V1.0



This is a 40pin Raspberry Pi HAT type expansion board, which provides a 0.91 inch display screen connected to the I2C pin. The display information can be customized through the program.
It provides an ultra-thin 4007 silent fan to provide heat dissipation support. There are also 4 customizable LED lights on the back of the board. You can also control the lighting mode of the LED lights through simple programming. The previous HAT board design is used. The 40Pin GPIO can still be easily accessed by users. The new fixing method avoids the risk of short circuit caused by metal parts and provides a good appearance design.

 Raspberry Pi 4B does not include in the package.


  • Speed Adjustable Fan
  • 0.91 Inch OLED Display
  • Programmable LED Indicator
  • High Performance Heat Dissipation
  • GPIO expandable interface
  • Hat Style
  • Compatible with Raspberry Pi 2B/3B/3B+/4B
  • Programmable Background light (Controlled by GPIO)


  • Product Outlook

  • Top view

Package Includes

  • 1 x Raspberry Pi Fan Expansion Board Plus 0.91 OLED V1.0

How to assemble

  • Connect the Hat board to the GPIO pins of the Raspberry Pi.
  • Fix the hat with copper pillars and nuts.
  • Fix the hat to Raspberry Pi with screws.

Assemble Steps


How to enable Fan

  • Fit for Raspberry Pi OS
  • Open a terminal and typing following command:

sudo raspi-config

  • Navigate to `4 Performance Options` -> `P4 Fan` -> `Yes` -> `14` -> `60` -> `OK` -> `OK` -> `Finish` -> `YES`.
  • Raspberry Pi will reboot and take effect.

How to display system info

  • Enable I2C interface
sudo raspi-config
  • Navigate to `Interface Options` -> `I2C` -> `Enable` -> `YES`.
  • Detect If OLED has been recognized.
i2cdetect -y 1
  • OLED default address: `0x3c`

Installation and Upgrade

  • Adafruit_SSD1306 and Adafruit-BBIO

Those library and its dependency(Adafruit GPIO library) can be installed from PyPI by executing:

sudo pip3 install Adafruit-SSD1306

Demo Code Download

  • Download Demo Code:
git clone https://github.com/geeekpi/RPiFEBP.git
python3 oled.py & 

How to Setup LED indicator

  • Reinstall wiringPi library.
sudo apt -y purge wiringpi
hash -r 
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio readall
  • LED indicators Pin out

There are 4 LED under the PCB board.

- LED1 - nearby the GPIO pins and fan on left corner, connect to `GPIO 24` (BCM 19)
- LED2 - under LED1, connect to `GPIO 23` (BCM 13)
- LED3 - on the right of LED2, connect to `GPIO 22` (BCM 6) 
- LED4 - on the top of LED3, connect to `GPIO 21` (BCM 5) 
  • Demo code in shell:
for i in `seq 21 24`
    gpio mode $i out

while true
  for i in `seq 21 24`
	gpio write $i 1 
  	sleep 0.01
  	gpio write $i 0

Control LED on the bottom of expansion board by using RPi.GPIO library.

  • Demo code in Python:
import RPi.GPIO as GPIO
import time 

# BCM Number of LED indicators
leds = [5, 6, 13, 19]


for i in range(len(leds)):
    GPIO.setup(leds[i], GPIO.OUT)

    while True:
	for led in leds:
       	    GPIO.output(led, GPIO.HIGH)
            GPIO.output(led, GPIO.LOW)
except KeyboardInterrupt:


  • Raspberry Pi Fan Expansion Board Plus 0.91 OLED V1.0, Fan expansion board, oled 0.91, raspberry Pi 4B, heat dissipation, hat board for raspberry Pi 4B