Skip to content

Code to control the speed of a PC fan, including setting various modes or using a PID controlled speed dial. A userinterface with an LCD is was used to show the user which mode the fan was in, the speed of the fan and the temperature of the PC.

Notifications You must be signed in to change notification settings

BatemanOJ/Fan-Control-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Fan & LCD Controller (Mbed OS)

This project demonstrates controlling a 4-bit ST7066U LCD, a PWM-controlled fan, and a rotary encoder using the Mbed OS platform.

Requirements

  • Board: NUCLEO-F446RE (or equivalent STM32 with Arduino header)
  • Libraries: mbed.h, TextLCD, LCD_ST7066U.h
  • Software: Mbed CLI 2 / Mbed Studio, GCC_ARM
  • Connections:
    Function MCU Pin Notes
    LCD RS PA_6 4-bit interface
    LCD E PA_7
    LCD D4-D7 PB_4, PB_5, PB_3, PA_10
    Encoder A/B PA_1 / PA_4 Interrupt inputs
    Encoder button BUTTON1
    Fan PWM PB_0 PWM output
    Fan tachometer PA_0 Interrupt input
    LEDs PA_15, PB_7, PC_0, LED1 Indicators

Build Instructions

mbed compile -m NUCLEO_F446RE -t GCC_ARM --flash

About

Code to control the speed of a PC fan, including setting various modes or using a PID controlled speed dial. A userinterface with an LCD is was used to show the user which mode the fan was in, the speed of the fan and the temperature of the PC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published