3.5.1.13 PWN FAN
Herodotus supports pwm fan connector using typical 4 pin fan. This section explains how to
control pwm fan.
Please follow below commands to execute pwm fan.
⚫
To change directory to pwm chip path, execute the below command.
sh-5.1#
cd /sys/class/pwm/pwmchip1
⚫
To export and enable pwm control configuration, execute the below command.
sh-5.1#
echo 0 > export
sh-5.1#
echo 1 > pwm0/enable
⚫
To set pwm parameters period and duty cycle, execute the below command.
sh-5.1#
echo <period> > pwm0/period
sh-5.1#
echo <duty_cycle> > pwm0/duty_cycle
⚫
To unexport and disable pwm control, execute the below command.
sh-5.1#
echo 0 > pwm0/enable
sh-5.1#
echo 0 > unexport
Herodotus BSP User Guide
SCM186 NXP i.MX 8M Plus ARM-based Evaluation Kit
FAN
37
Need help?
Do you have a question about the SCM186 and is the answer not in the manual?
Questions and answers