Difference between revisions of "EP-0152"
|Line 21:||Line 21:|
* Top view
* Top view
Revision as of 17:46, 19 November 2021
- 1 Raspberry Pi Fan Expansion Board Plus 0.91 OLED V1.0
- 2 Description
- 3 Features
- 4 Gallery
- 5 Package Includes
- 6 How to assemble
- 7 How to enable Fan
- 8 How to display system info
- 9 Keywords
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
- Product Outlook
- Top view
- 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.
How to enable Fan
- Fit for Raspberry Pi OS
- Open a terminal and typing following command:
- 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
- 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 pi-ina219 sudo pip3 install Adafruit-SSD1306 sudo pip3 install Adafruit-BBIO
- Or you can download and install it by manual:
- Download SSD1306 library:
sudo python -m pip install --upgrade pip setuptools wheel git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git cd Adafruit_Python_SSD1306 sudo python setup.py install pip install Adafruit-BBIO
Demo Code Download
- Download Demo Code:
git clone https://github.com/geeekpi/RPiFEBP.git cd RPiFEBP/ 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` do gpio mode $i out done while true do for i in `seq 21 24` do gpio write $i 1 sleep 0.01 gpio write $i 0 done done
- Demo code in Python:
import RPi.GPIO as GPIO import time # BCM Number of LED indicators leds = [5, 6, 13, 19] GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) for i in range(len(leds)): GPIO.setup(leds[i], GPIO.OUT) try: while True: for led in leds: GPIO.output(led, GPIO.HIGH) time.sleep(0.01) GPIO.output(led, GPIO.LOW) except KeyboardInterrupt: GPIO.cleanup() print("BYE")
- 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