Skip to main content
minor
Source Link
Seamus
  • 22.9k
  • 4
  • 38
  • 79

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi hasstill works today, sadly, it has been deprecated. The availability of his source code is unknown, it still works todaybut may be available.

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi has, sadly, been deprecated, it still works today.

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi still works today, sadly, it has been deprecated. The availability of his source code is unknown, but may be available.

deleted 89 characters in body
Source Link
Seamus
  • 22.9k
  • 4
  • 38
  • 79

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi has, sadly, been deprecated, it still works today. Also please note I have not built and tested it myself, but others claim that it has worked for them.

As mentioned in one of the other answers here, it is not necessary to install wiringpi, nor even to create this bash script & associated cron job. You may use a kernel overlaydevice tree overlay:

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi has, sadly, been deprecated, it still works today. Also please note I have not built and tested it myself, but others claim that it has worked for them.

As mentioned in one of the other answers here, it is not necessary to install wiringpi, nor even to create this bash script & associated cron job. You may use a kernel overlay:

If you've followed this so far, and have read Mr. Drogon's news, you'll know that although wiringpi has, sadly, been deprecated, it still works today.

As mentioned in one of the other answers here, it is not necessary to install wiringpi, nor even to create this bash script & associated cron job. You may use a device tree overlay:

add option for dtoverlay
Source Link
Seamus
  • 22.9k
  • 4
  • 38
  • 79

The following answer addresses a Hardware and Software approach, and an Easier alternative requiring only hardware & a configuration change. This project mightmay be of interest. The author uses a simple bash script to read the RPi CPU temperature, and turn a cooling fan on and off based on the temperature. In other words, the fan only runs when the CPU temperature rises above the value you set in the bash script that controls it.

The hardware requirement is simple enough: a 2N2222 transistor serves as a switch to turn the cooling fan on & off. The 2N2222 is driven from a GPIO pin. A 500𝛀~500𝛀 resistor to bias the transistor properly, and a small diode for back emf protection completes the circuit.

schematicschematic

simulate this circuitsimulate this circuit – Schematic created using CircuitLab

To switch the fan on at 48℃ with GPIO 17 (pin # 11 on the header)GPIO 17 (pin # 11 on the header) requires only the addition of the following line to your file /boot/config.txt:

This project might be of interest. The author uses a simple bash script to read the RPi CPU temperature, and turn a cooling fan on and off based on the temperature. In other words, the fan only runs when the CPU temperature rises above the value you set in the bash script that controls it.

The hardware requirement is simple enough: a 2N2222 transistor serves as a switch to turn the cooling fan on & off. The 2N2222 is driven from a GPIO pin. A 500𝛀 resistor to bias the transistor properly, and a small diode for back emf protection completes the circuit.

schematic

simulate this circuit – Schematic created using CircuitLab

To switch the fan on at 48℃ with GPIO 17 (pin # 11 on the header) requires only the addition of the following line to your file /boot/config.txt:

The following answer addresses a Hardware and Software approach, and an Easier alternative requiring only hardware & a configuration change. This project may be of interest. The author uses a simple bash script to read the RPi CPU temperature, and turn a cooling fan on and off based on the temperature. In other words, the fan only runs when the CPU temperature rises above the value you set in the bash script that controls it.

The hardware requirement is simple enough: a 2N2222 transistor serves as a switch to turn the cooling fan on & off. The 2N2222 is driven from a GPIO pin. A ~500𝛀 resistor to bias the transistor properly, and a small diode for back emf protection completes the circuit.

schematic

simulate this circuit – Schematic created using CircuitLab

To switch the fan on at 48℃ with GPIO 17 (pin # 11 on the header) requires only the addition of the following line to your file /boot/config.txt:

add option for dtoverlay
Source Link
Seamus
  • 22.9k
  • 4
  • 38
  • 79
Loading
Source Link
Seamus
  • 22.9k
  • 4
  • 38
  • 79
Loading