background image

Software installation and configuration

Strato Pi Fan can be used with any operating system, programming language or 
framework compatible with Raspberry Pi. 

All the features are controlled via standard I

2

C communication on the primary I

2

C bus 

(i2c-1).

Our Strato Pi Fan kernel module for the Raspberry Pi OS (formerly Raspbian) provides for 
easy usage via sysfs files, without the need to implement the underlying I

2

C protocol.

For usage on other operating systems or to avoid the kernel module installation, refer to 
the "I

2

C Control" paragraph in the next chapter.

Raspberry Pi OS kernel module

The Strato Pi Fan kernel module can be used to easily access Strato Pi Fan's features via  
sysfs file system.

Refer to the following instructions to download and install the module or go to:

https://github.com/sfera-labs/strato-pi-fan-kernel-module

for updated instructions and further details and examples.

Download and install: 

sudo apt install git raspberrypi-kernel-headers

 

git clone --depth 1 https://github.com/sfera-labs/strato-pi-fan-kernel-module.git

 

cd strato-pi-fan-kernel-module 

make 

sudo make install 

dtc -@ -Hepapr -I dts -O dtb -o stratopifan.dtbo stratopifan.dts 

sudo cp stratopifan.dtbo /boot/overlays/ 

Add the following line to /boot/config.txt: 

dtoverlay=stratopifan 

Optionally, to be able to use the

 

sysfs

 

files not as super user, create a new group 

"stratopifan" and set it as the module owner group by adding an udev rule:

sudo groupadd stratopifan

 

sudo cp 99-stratopifan.rules /etc/udev/rules.d/ 

and add your user to the group, e.g., for user "pi":

sudo usermod -a -G stratopifan pi 

Reboot:

sudo reboot 

After installation, you'll find the directory

 

/sys/class/stratopifan/

 

which gives you access to 

Strato Pi Fan's functionalities.

Refer to the next chapter for usage details.

9

Strato Pi Fan User Guide

Summary of Contents for Strato Pi Fan SPBF10X

Page 1: ...Strato Pi Fan User Guide February 2021 Revision 001 SPBF10X Strato Pi Fan...

Page 2: ...ion 7 Power supply 7 GPIO pins 8 I2C header 8 Software installation and configuration 9 Raspberry Pi OS kernel module 9 Using Strato Pi Fan 10 I2C Control 10 Thermal considerations 12 Circuit schemati...

Page 3: ...o Pi Fan is neither designed nor intended for use in critical military or aerospace applications or environments and for automotive applications or environment Customer acknowledges and agrees that an...

Page 4: ...oduct Hazard levels This manual contains information you must observe to ensure your personal safety and prevent damage to property Safety information in this manual are highlighted by the safety symb...

Page 5: ...to the cabinet or equipment Risk of fire if not installed and operated properly Follow all applicable electrical safety standards guidelines specifications and regulations for installation wiring and...

Page 6: ...Raspberry Pi and reducing or delaying CPU throttling under heavy CPU load Features high performance 9100 RPM 4 9 CFM Cubic Feet per Minute fan on board LM75ADP temperature sensor and fan controller wi...

Page 7: ...Pi Fan board down will slightly tilt the header pins If you need to fit another expansion board on top with a female GPIO connector it is recommended to insert the Strato Pi Fan board only about halfw...

Page 8: ...kaging EXAMPLE RATING AND IDENTIFICATION PLATE Power supply Strato Pi Fan receives power from the Raspberry Pi GPIO connector Both 3 3V and 5V are required to operate The 3 3V rail supplies the temper...

Page 9: ...SCL line 5 3V3 3 3V line These lines are directly connected to the corresponding lines on the Raspberry Pi s GPIO connector without additional protection and have the same electrical limitations and...

Page 10: ...com sfera labs strato pi fan kernel module for updated instructions and further details and examples Download and install sudo apt install git raspberrypi kernel headers git clone depth 1 https githu...

Page 11: ...to 127 5 C with a 0 5 C resolution If you want to manually activate the fan simply set the TEMP_ON threshold to a value lower than the current temperature The TEMP_OFF value should always be lower th...

Page 12: ...with 0 5 C resolution Default value 0x4B00 75 C Register 3 Bit 15 7 TEMP_ON Temperature threshold for activating the fan 11 bit 2 s complement signed value with 0 5 C resolution Default value 0x5000 8...

Page 13: ...small enclosure by up to 15 C The following charts show measured temperatures in a standard 4 units DIN rail enclosure with Strato Pi Fan fitted between the Raspberry Pi 4B and a Iono Pi board This co...

Page 14: ...to the throttling temperature operating at approximately 70 C instead of 85 C DIN RAIL ENCLOSURE 45C AMBIENT TEMPERATURE 100 CPU LOAD At a much higher 45 C external temperature and with the CPU const...

Page 15: ...Circuit schematic STRATO PI FAN CIRCUIT SCHEMATIC 14 Strato Pi Fan User Guide...

Page 16: ...fan on Fan speed 9100 RPM Fan airflow 4 9 CFM Fan noise 23 6 dBA Temperature accuracy 2 C Dimensions W x D x H 50 x 45 x 10 mm Operating temperature 20 70 C Storage temperature 30 70 C Relative humid...

Page 17: ...p of electrical systems must be performed according to the relevant standards guidelines specifications and regulations of the relevant country The installation configuration and programming of the de...

Page 18: ...e essential requirements of the following directives and harmonised standards 2011 65 EU and 2015 863 EU Restriction of the use of certain hazardous substances in electrical and electronic equipment R...

Reviews: