15. STM32CubeIDE LED FADE. PWM Timers with STM32F103C8T6

  Рет қаралды 16,068

MicroPeta by Nizar Mohideen

MicroPeta by Nizar Mohideen

Күн бұрын

Пікірлер: 23
@NizarMohideen
@NizarMohideen 2 жыл бұрын
This video is for very beginners without code explanation. I have made another video about this topic with bit more details in video no - 70 in this channel kzbin.info/www/bejne/nZCYk2aYpryXmJI
@ulyssecordier
@ulyssecordier 2 жыл бұрын
It works very well. Thanks for this tutorial. I subscribed in case you make new videos, you stopped for 4 months, it's a shame. I hope you will be able to resume because I love your work. Best wishes !
@vigneshwaransaminathan6418
@vigneshwaransaminathan6418 3 жыл бұрын
Superb Sir! Really Helpful.
@NizarMohideen
@NizarMohideen 3 жыл бұрын
Glad to hear that
@BechirZalila
@BechirZalila 3 жыл бұрын
Very good work. Thank you!
@NizarMohideen
@NizarMohideen 3 жыл бұрын
Glad you liked it!
@matovupaul4942
@matovupaul4942 Жыл бұрын
You setting the prescaler and ARR but you don't even explain why you using those values
@venkannababu5752
@venkannababu5752 2 жыл бұрын
thank u soo much sir
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Most welcome
@DS-ls7ck
@DS-ls7ck 2 жыл бұрын
Thanks a lot. It is really simple. How can I make pwm with adjustable frequency and duty cycle?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
In this example I wanted to have 100Hz with 0-100% variable duty cycle. How I did is: Clock frequency = 8000000Hz I divided it by 128 (prescaler) and then divided it again 625 (Counter period) to get 100Hz Follow this to get different frequency as you wish. I am adjusting duty cycle on the fly using __HAL_TIM_SET_COMPARE in the for loop from 0 (0%) - 625 (100%)( Counter period) Note : prescaler is always one less 128 is 128-1 =127
@NizarMohideen
@NizarMohideen 2 жыл бұрын
If you want to set the frequency on the fly you can use __HAL_TIM_SET_AUTORELOAD as I did in video kzbin.info/www/bejne/sKiUnoSLfpemia8
@LabSkaterPussies
@LabSkaterPussies 2 жыл бұрын
@@NizarMohideen isn't it the other way around? The prescaler is the same but the counter period is -1 because it starts at 0?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
You can use other way round, it will generate pwm. But the counter period needs to be more than 1 (one) in order to have variable pulse width from 0-100%
@anakarinaramirez5401
@anakarinaramirez5401 Жыл бұрын
GRACIASSSSSS
@kenz0292
@kenz0292 Жыл бұрын
Why My led just blink, cant fade... When i connect led to 3.3v voltage it can on
@andrey__shintar
@andrey__shintar 2 жыл бұрын
Why i can't use this code with L293 motor shield? I've been trying to control the speed of DC motor 3V-6V. Please, help
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Hi Andrey, I don’t have L293 with me. I have done L298N motor control in video no 20 in this channel. I hope it gives you a stepping stone
@andrey__shintar
@andrey__shintar 2 жыл бұрын
@@NizarMohideen Hi Nizar, thanks! I will watch it and try
@xlalbuquerque9705
@xlalbuquerque9705 3 жыл бұрын
I'm looking for the library to PHOTO SENSOR VEML6040 RGBW 16-BITS I2C, I would like to know where I can find the libraries to use in CubeIDE. Could you please help me? thank you so much, yours videos are helping me a lot.
@NizarMohideen
@NizarMohideen 3 жыл бұрын
I am sorry I don’t have VEML6040 with me at the moment.
@구승모-j1t
@구승모-j1t 2 жыл бұрын
What is doing __HAL_TIM_SET_COMPARE() Functions?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Hi there, Since we set Configuration → Parameter Settings → Counter Period 625, we can change Pulse from 0 to 625. 0 being 0% and 625 being 100% pulse width. __HAL_TIM_SET_COMPARE() is a macro to set the pulse on the fly.
STM32 Guide #3: PWM + Timers
20:24
Mitch Davis
Рет қаралды 142 М.
14. STM32CubeIDE button. GPIO INPUT with STM32F103C8T6
5:38
MicroPeta by Nizar Mohideen
Рет қаралды 16 М.
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 46 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
Modus males sekolah
00:14
fitrop
Рет қаралды 25 МЛН
19. STM32CubeIDE OLED Display. I2C with STM32F103C8T6
8:41
MicroPeta by Nizar Mohideen
Рет қаралды 36 М.
LED Dimmer controller design - Electronics engineering pulse width modulation
15:36
The Engineering Mindset
Рет қаралды 238 М.
11. Install STM32 CubeIDE and LED blink program for Windows (OpenOCD included)
17:56
MicroPeta by Nizar Mohideen
Рет қаралды 69 М.
STM32 TIMERS #6. Timer Synchronization || 3 Phase PWM
9:01
ControllersTech
Рет қаралды 18 М.
62. STM32CubeIDE Timer Interrupt with STM32F103C8T6
7:18
MicroPeta by Nizar Mohideen
Рет қаралды 21 М.
Forget About Raspberry Pi! Use Your Old Phone Instead.
9:09
Doctor Volt
Рет қаралды 230 М.
STM32 Guide #1: Your first STM32 dev board
12:12
Mitch Davis
Рет қаралды 210 М.
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 46 МЛН