This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:practical:hardware:sut:stm32:emb1a_1 [2024/03/03 09:22] – [Steps] ktokarz | en:iot-open:practical:hardware:sut:stm32:emb1a_1 [2024/03/25 08:23] (current) – [Project information] pczekalski | ||
---|---|---|---|
Line 63: | Line 63: | ||
To modify the fan's rotation speed after initialisation use the setCaptureCompare function. In the following example, the duty_cycle_value can vary between 0 and 100. | To modify the fan's rotation speed after initialisation use the setCaptureCompare function. In the following example, the duty_cycle_value can vary between 0 and 100. | ||
<code c> | <code c> | ||
- | MyFanServo-> | + | MyTimFan-> |
}; | }; | ||
</ | </ | ||
Line 80: | Line 80: | ||
</ | </ | ||
==== Result validation ==== | ==== Result validation ==== | ||
- | You should be able to observe the pulsing colours of the RGB LED, increasing and decreasing brightness linearly. | + | You should be able to observe the changes in the fan's rotation speed. It is advisable to connect this scenario with the scenario for reading the pressure measurements. |
===== FAQ ===== | ===== FAQ ===== | ||
- | **What is the maximum number of channels? | + | **What is the maximum number of channels? |
\\ | \\ | ||
- | **What is the maximum bit resolution for PWM?**: Maximum resolution is 16 bits. Note that we can express the duty cycle in a variety of formats. In the presented example we expressed it in percentage so it varies between 1 and 100. It can be also expressed in ticks, Hertz, microseconds, | + | **What is the maximum bit resolution for PWM?**: Maximum resolution is 16 bits. Note that we can express the duty cycle in a variety of formats. In the presented example we expressed it in percentage so it varies between 1 and 100. It can be also expressed in ticks, microseconds, |
\\ | \\ | ||
- | **What PWM frequency should I use? | + | **What PWM frequency should I use? |
+ | <WRAP noprint> | ||
===== Project information ===== | ===== Project information ===== | ||
{{: | {{: | ||
Line 105: | Line 106: | ||
{{: | {{: | ||
</ | </ | ||
- | + | </ | |
- | + |