DeimosHall / SmartFan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartFan

This is a simple project to control a fan using a Raspberry Pi and a temperature sensor.

Hardware

  • Raspberry Pi Pico
  • USB cable
  • 1x DS18B20 temperature sensor
  • 1x 4.7k resistor
  • 1x 12 V fan (You can use the fan you want, but you need to change the circuit to match the fan voltage)
  • 1x 12 V power supply (Or the voltage of the fan you are using)
  • 1x TIP41C transistor (Or any other transistor that can handle the current of your fan)

Software

You can use one of the following options:

Circuit

Circuit

Libraries

Used library Version
OneWireNg 0.13.1
DallasTemperature 3.9.0
ezButton 1.0.4
ezOutput 1.2.0

Note: OneWire does not work with the Raspberry Pi Pico, so I used OneWireNg instead. The reason is described in this Github issue and in this Arduino forum.

About

License:MIT License


Languages

Language:C++ 82.5%Language:Makefile 17.5%