You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
-
# 52Pi EP-0152 Raspberry Pi Fan Expansion Board / GeeekPi Fan Hat - **UPDATED for RPi 5**
1
+
# 52Pi EP-0152 Raspberry Pi Fan Expansion Board - _UPDATED for Raspberry Pi 5_
2
2
3
-
Updated source code for the [52Pi EP-0152 Raspberry Pi Fan Expansion Board](https://52pi.com/products/raspberry-pi-cooling-fan-expansion-board-plus-0-91-oled-v1-0-compatible-for-raspberry-pi-4b-3b-3b-2b), sold on Amazon as [GeeekPi Fan Hat](https://a.co/d/0fnQFZCU). The [original code](https://wiki.52pi.com/index.php?title=EP-0152) listed for the fan hat is woefully out of date. The code in this repository is compatible with the following revisions and Bookworm:
3
+
Updated source code for the [52Pi EP-0152 Raspberry Pi Fan Expansion Board](https://52pi.com/products/raspberry-pi-cooling-fan-expansion-board-plus-0-91-oled-v1-0-compatible-for-raspberry-pi-4b-3b-3b-2b), sold on Amazon as [GeeekPi Fan Hat for Raspberry Pi 4 Model B, PWM Fan GPIO Expansion Board with 0.91inch OLED Display for Raspberry Pi 4B/3B+/3B/2B](https://a.co/d/0fnQFZCU).
4
+
5
+
The [original code](https://wiki.52pi.com/index.php?title=EP-0152) listed for the fan hat is woefully out of date, as it won't work for the Raspberry Pi 5 and doesn't use the [PEP 668 specification](https://peps.python.org/pep-0668/), which is now [required for Rasberry Pi OS](http://rptl.io/venv).
6
+
7
+
This repository is compatible with the following Raspberry Pi versions on [Raspberry Pi OS (64-bit) / Debian GNU/Linux 12 (bookworm)](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit):
4
8
5
9
- Raspberry Pi 5B ( :white_check_mark: - Tested)
6
10
- Raspberry Pi 4B ( :white_check_mark: - Tested)
@@ -34,17 +38,22 @@ Updated source code for the [52Pi EP-0152 Raspberry Pi Fan Expansion Board](http
34
38
pip3 install rpi-lgpio
35
39
```
36
40
37
-
3. Exit `sudo`:
41
+
3. Remember to exit from `sudo -i`:
38
42
39
43
```bash
40
44
exit
41
45
```
42
46
43
47
## Fan Control
44
48
45
-
I've added [@franganghi](https://github.com/franganghi)'s version of [Raspberry-Pi5-PWM-Fan-Control](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control) as a submodule to this repository.
49
+
I've added [@franganghi](https://github.com/franganghi)'s version of [Raspberry-Pi5-PWM-Fan-Control](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control) as a submodule to this repository. To pull the submodule after cloning this repository, run:
50
+
51
+
```bash
52
+
cd EP-0152
53
+
git submodule update --init --recursive
54
+
```
46
55
47
-
- Follow the instructions listed in the [README](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control/tree/master?tab=readme-ov-file#raspberry-pi5-pwm-fan-control) to install [as a Linux service](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control/tree/master?tab=readme-ov-file#as-a-service).
56
+
After doing so, follow the instructions listed in the [README](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control/tree/master?tab=readme-ov-file#raspberry-pi5-pwm-fan-control) to install [as a Linux service](https://github.com/franganghi/Raspberry-Pi5-PWM-Fan-Control/tree/master?tab=readme-ov-file#as-a-service).
48
57
49
58
## PWM LEDs
50
59
@@ -76,7 +85,7 @@ $ sudo systemctl status ep0152ledpwm.service
76
85
├─2701 /bin/bash /opt/EP-0152/LEDs/LEDsV2.sh
77
86
└─2710 python3 /opt/EP-0152/LEDs/LEDsV2.py
78
87
79
-
Jun 21 10:34:34 ussyukon systemd[1]: Started ep0152ledpwm.service - EP-0152 LEDs PWM Pulse.
88
+
Jun 21 10:34:34 host systemd[1]: Started ep0152ledpwm.service - EP-0152 LEDs PWM Pulse.
80
89
```
81
90
82
91
### LEDs Uninstallation
@@ -91,6 +100,8 @@ sudo rm -rf /opt/EP-0152/LEDs
91
100
92
101
## OLED Screen
93
102
103
+
Credit to [@AmazonShopper](https://www.amazon.com/gp/profile/amzn1.account.AH6T6UZJDFOPJJFIU7NEEZSCIVKA/) for [providing the edits](https://www.amazon.com/gp/customer-reviews/R2X09M6QTQ2GJC) to the original code.
104
+
94
105
### OLED Installation
95
106
96
107
```bash
@@ -120,7 +131,7 @@ $ sudo systemctl status ep0152oled.service
120
131
├─2703 /bin/bash /opt/EP-0152/OLED/OLED.sh
121
132
└─2711 python3 /opt/EP-0152/OLED/oledV2.py
122
133
123
-
Jun 21 10:34:34 ussyukon systemd[1]: Started ep0152oled.service - EP-0152 OLED Monitor.
134
+
Jun 21 10:34:34 host systemd[1]: Started ep0152oled.service - EP-0152 OLED Monitor.
0 commit comments