No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:aih:lab:stm32fan

This is an old revision of the document!


Fan and Servo controlling

Both the fan and servo are controlled with a PWM signal. In the STM32WB55 microcontroller, there are two timers capable of generating PWM signals. One of them is connected to the RGB LED, second is connected to the fan and servo.

Tab. 1: Assignment of pins for the fan and servo
GPIO noelement
PA0 Servo
PA1 Fan

In the stm32duino examples 1), there is a simple program which allows us to control a single LED with PWM. It is named “All-in-one_setPWM” 2). It uses hardware timer output connected directly to an LED. We will modify this example to control the fan and servo. The code is composed of two files FanSrvTest.h and FanSrvTest.cpp. In the *.h file some definitions are

en/edu/zmitac/s2/aih/lab/stm32fan.1705170833.txt.gz · Last modified: by ktokarz