Using The Raspberry Pi Temperature Sensor - Raspberry Pi PiCoolFAN4 User Manual

Advanced active cooling system
Table of Contents

Advertisement

PiCoolFAN4

Using the Raspberry Pi Temperature Sensor

In most cases using the PiCoolFAN4 sensor – once set up for the user's case/environment – provides
excellent temperature monitoring without the overhead of running additional software (daemon).
However, users can select to use the Raspberry Pi temperature sensor for temperature monitoring rather
than the PiCoolFAN4 sensor. This option accommodates users in specific scenarios/environments where
the PiCoolFan4 sensor is not practical.
Enable the daemon
To enable the software to use the Raspberry Pi sensor as the temperature monitor (as part of the cooling
profile), the following steps are required:
1. Copy provided python pcf4.py script to the root directory, if not already done so.
2.
Create a configuration file that tells SystemD what we want it to do and when:
3. Add the text below to this file, and then exit by saving it:
Setup the file permissions
4.
Designed by
www.pimodules.com
Firmware Code 0x14
sudo nano /lib/systemd/system/pcf4.service
[Unit]
Description=PiCoolFAN4 Service supplying RPi core temperature to it
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/python /home/pi/pcf4.py
StandardOutput=inherit
StandardError=inherit
Restart=always
[Install]
WantedBy=multi-user.target
sudo chmod 644 /lib/systemd/system/pcf4.service
manufactured in co-operation with
Print Date 10.11.2019
www.thepihut.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PiCoolFAN4 and is the answer not in the manual?

Questions and answers

Table of Contents