[Mini51] PWM Fan Control

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

27 May 2020, 11:09

  • Application: This code uses Mini51 PWM Channel 0 (P2.2) to control 4-wire PWM fan speed and uses Timer 0 external capture pin (P3.2) to detect fan speed in RPM.
  • BSP Version: Mini51DE Series BSP CMSIS v3.02.000
  • Hardware: NuTiny-SDK-Mini54 V3.1, 4-wire PWM fan
This example code uses PWM Channel 0 (P2.2) to control 4-wire PWM fan speed and uses Timer 0 external capture pin (P3.2) to detect fan speed in RPM. Inputting PWM waveform to the PWM fan control pin can control fan speed. By changing PWM duty ratio, PWM fan can operate in suitable speed. The PWM fan sense pin outputs tachometer signal, which changes voltage level when rotating from one pole to another. By calculating the time which fan takes when rotating one round, user can get the fan speed in RPM.

To use this example code, user should connect PWM channel 0 (P2.2) to PWM fan control pin and connect Timer 0 external capture pin (P3.2) to fan sense pin.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1216133919
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests