Skip to content

User's guide 2.0

3lv edited this page Dec 19, 2023 · 1 revision

General Description

image

The Smart Fan is the most elegant, compact and inexpensive cooling solution for your Raspberry Pi. It has the form factor of the Raspberry Pi HAT. It receives commands from Raspberry Pi through the I2C interface. A step-up power supply converts the 5 Volts provided by Raspberry Pi to 12 Volts, ensuring precise speed control. Using pulse width modulation, it powers the fan just enough to maintain a constant temperature of the Raspberry Pi processor.

The Smart Fan preserves all the GPIO pins, allowing any number of cards to be stacked on top of Raspberry Pi. If another add-on card has to dissipate power, a secondary Smart Fan can be added to the stack.

Features

  • 40x40x10mm fan with 6 CFM airflow
  • Step-up 12V power supply for precise fan speed control
  • PWM Controller modulates the fan to keep constant Pi temperature
  • Draws less than 100mA of power
  • Fully stackable allows adding other cards to Raspberry Pi
  • Uses only I2C interface, leaves full use of all GPIO pins
  • Super quiet and efficient
  • All mounting hardware included: brass stand-offs, screws and nuts
  • Command line, Node-RED, Python drivers

What's in Your Kit

  1. Smart Fan add-on card for Raspberry Pi

image

2.40x40x10mm fan with mounting screws

image

3.Mounting hardware - Four M2.5x19mm male-female brass standoffs - Four M2.5x5mm brass screws - Four M2.5 brass nuts

image

Quick Start-up Guide

  1. Plug your Smart Fan Card on top of your Raspberry Pi and power up the system

  2. Enable I2C communication on Raspberry Pi using raspi-config.

  3. Install the Smart Fan software from github.com:

cd
git clone https://github.com/SequentMicrosystems/SmartFan-rpi.git
cd SmartFan-rpi
sudo make install
  1. Run the software:
fan

The program will respond with a list of available commands.

Board Layout

The Smart Fan comes with appropriate mounting hardware. All surface mount components are installed on the bottom. The fan is power from the Raspberry Pi GPIO connector and it draws less than 100mA. One or two fans can be installed on each Raspberry Pi. If the second fan is present, a jumper has to be installed on connector J4.

Block Diagram

image

Power Requirements

The Smart Fan is powered from the Raspberry Pi GPIO connector. It draws less than 100mA at 5V. The fan is powered by the on-board 12V step-up power supply which permits precise speed control.

Mechanical Specifications

image

  • The Smart Fan has the same form factor with the Raspberry Pi HAT.

Software Setup

  1. Have your Raspberry Pi ready with the latest OS.

  2. Enable I2C communication:

sudo raspi-config

image

image

image

  1. Install the fan software from github.com:
cd
git clone https://github.com/SequentMicrosystems/SmartFan-rpi.git
cd SmartFan-rpi
sudo make install
  1. Run the software:
fan

The program will respond with a list of available commands.

  • Run fan -h for online help.

  • After installing the software, you can update it to the latest version with the commands:

cd ~/SmartFan-rpi
git pull
sudo make install

Smart Fan Software

The Smart Fan can be controlled from any program using simple Command Line Python functions. A Node-Red interface let's you set and monitor the temperature from the browser. The software can maintain the temperature history in a log file which can be plotted in Excel, an example loop can be found at github.com:

https://github.com/SequentMicrosystems/SmartFan-rpi/tree/main/python/examples

Controlling The Fan Speed

Since the Smart Fan is slave to the I2C interface, Raspberry Pi must tell it what to do. Command line and Python functions are available to control the fan speed. Raspberry Pi needs to monitor the processor temperature and control the fan speed accordingly. A PID loop sample program can be downloaded from GitHub. In case of malfunction, if the temperature exceeds a safe limit, Raspberry Pi must shut itself off to prevent burnout.

Self Test

The Smart Fan has a LED controlled by the local processor. At power up, the processor powers up the fan for 1 second, so the user can make sure the system is functional. The on board LED shows the status of the fan. When the fan is off, the LED blinks 1 time per second. When the fan is turned on, the LED blinks between 2 to 10 times per second, proportional with the speed of the fan