Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roundernetes

Code to manage the aRGB fans in Roundernetes

Fan

Pre-requisites

Code found here: https://www.waveshare.com/wiki/PI4-FAN-PWM

cd fan
python3 -m venv .
./bin/pip install gpiozero
./bin/pip install pigpio
./bin/pip3 install lgpio RPi.GPIO
./bin/pip3 install --upgrade lgpio
nohup ./bin/python3 temperature-pwm.py 2>&1 &
tail -f nohup.out

Systemd

Create a new service file in /etc/systemd/system/ with a .service extension. For example, you could name it temperature_pwm.service.
The content could be as what you'll find in fan/temperature_pwm.service.
Now, you need to reload the systemd manager configuration with the following command:

sudo systemctl daemon-reload

Enable the service to start at boot time:

sudo systemctl enable temperature_pwm.service

Start the service:

sudo systemctl start temperature_pwm.service

Check the status of the service:

sudo systemctl status temperature_pwm.service

This should show that your service is active and running.

Stop the service:

sudo systemctl stop temperature_pwm.service

LED

LED Number Location Description
0 interior between dami-3bplus 2 and dami-3bplus-3
1 interior between dami-3bplus-3 and dami-3bplus-1
2 interior between dami-3bplus-1 and goun-3bplus-1
3 interior between goun-3bplus-1 and goun-3bplus-2
4 interior goun-3bplus-2
5 interior dami-3b-1
6 interior between dami-3b-2 and goun-3bplus-3
7 interior between goun-3bplus-3 and dami-3bplus-2
8 exterior between dami-3bplus-1 and goun-3bplus-1
9 exterior goun-3bplus-1
10 exterior between goun-3bplus-2 and goun-3bplus-2
11 exterior goun-3bplus-2
12 exterior between goun-3bplus-2 and dami-3b-1
13 exterior dami-3b-1
14 exterior between dami-3b-1 and dami-3b-2
15 exterior dami-3b-2
16 exterior between dami-3b-2 and goun-3bplus-3
17 exterior between goun-3bplus-3 and dami-3bplus-2
18 exterior dami-3bplus-2
19 exterior between dami-3bplus-2 and dami-3bplus-3
20 exterior dami-3bplus-3
21 exterior between dami-3bplus-3 and dami-3bplus-1
22 exterior dami-3bplus-1
23 exterior between dami-3bplus-1 and goun-3bplus-1
Board Name LED Numbers (interior) LED Numbers (exterior)
dami-3bplus-2 0 8, 18, 19
dami-3bplus-3 0, 1 8, 19, 20, 21
dami-3bplus-1 1, 2 8, 21, 22
goun-3bplus-1 2, 3, 9 8, 9, 10, 22, 23
goun-3bplus-2 3, 4, 10, 11 10, 11, 12
dami-3b-1 5, 13 13, 14
dami-3b-2 5, 6, 15 14, 15, 16
goun-3bplus-3 6, 7 16, 17
dami-3bplus-2 7 17, 18, 19

About

Code to manage the aRGB fans in Roundernetes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages