sebastianardelean / raspberry_pi

0 stars 0 forks source link

Make a driver for controlling the fan #1

Open sebastianardelean opened 2 years ago

sebastianardelean commented 2 years ago
  1. Convert the cooling project into a char driver
  2. The GPIO that controls the FAN is passed as a parameter to the driver.
  3. The driver or an userspace application shall monitor the CPU temperature
  4. The char driver will start the fan as soon as the temperature pass a threshold value (passed as parameter).

In order to implement the driver, the first thing to be done is to create a hardware circuit with transistors for controlling the FAN and for limiting the current. The software implementation can be done in parallel with the electronic part.

sebastianardelean commented 2 years ago

Check this links:

https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/thermal/broadcom/bcm2835_thermal.c

https://forums.raspberrypi.com/viewtopic.php?t=250603