15. STM32CubeIDE LED FADE. PWM Timers with STM32F103C8T6

  Рет қаралды 14,987

MicroPeta by Nizar Mohideen

MicroPeta by Nizar Mohideen

3 жыл бұрын

STM32 Blue Pill for beginners
Code and diagram are at www.micropeta.com/video15

Пікірлер: 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 kzfaq.info/get/bejne/ncVllZaT1r3IkmQ.html
@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 !
@BechirZalila
@BechirZalila 2 жыл бұрын
Very good work. Thank you!
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Glad you liked it!
@vigneshwaransaminathan6418
@vigneshwaransaminathan6418 2 жыл бұрын
Superb Sir! Really Helpful.
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Glad to hear that
@anakarinaramirez5401
@anakarinaramirez5401 Жыл бұрын
GRACIASSSSSS
@venkannababu5752
@venkannababu5752 2 жыл бұрын
thank u soo much sir
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Most welcome
@matovupaul4942
@matovupaul4942 10 ай бұрын
You setting the prescaler and ARR but you don't even explain why you using those values
@kenz0292
@kenz0292 11 ай бұрын
Why My led just blink, cant fade... When i connect led to 3.3v voltage it can on
@xlalbuquerque9705
@xlalbuquerque9705 2 жыл бұрын
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 2 жыл бұрын
I am sorry I don’t have VEML6040 with me at the moment.
@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 kzfaq.info/get/bejne/sN1hoLSGrpjXg4E.html
@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%
@andreyshintar7722
@andreyshintar7722 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
@andreyshintar7722
@andreyshintar7722 2 жыл бұрын
@@NizarMohideen Hi Nizar, thanks! I will watch it and try
@user-ec7bq4hj7g
@user-ec7bq4hj7g 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.
WS2812 LED with STM32 || PWM using DMA
29:18
ControllersTech
Рет қаралды 49 М.
STM32 PWM basics
18:31
Random Rick
Рет қаралды 19 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 98 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 10 МЛН
19. STM32CubeIDE OLED Display. I2C with STM32F103C8T6
8:41
MicroPeta by Nizar Mohideen
Рет қаралды 34 М.
27. STM32CubeIDE Servo Motor. PWM with STM32F103C8T6
4:14
MicroPeta by Nizar Mohideen
Рет қаралды 21 М.
14. STM32CubeIDE button. GPIO INPUT with STM32F103C8T6
5:38
MicroPeta by Nizar Mohideen
Рет қаралды 14 М.
20. STM32CubeIDE L298N Motor with STM32F103C8T6
6:34
MicroPeta by Nizar Mohideen
Рет қаралды 18 М.
Stm32 Timers in PWM mode
37:44
Eddie Amaya
Рет қаралды 48 М.
Easy & Powerful Arduino Alternative? STM32 Beginner's Guide
9:49
GreatScott!
Рет қаралды 1 МЛН
Getting started with STM32CUBE IDE || LED blink || F103C8
11:47
ControllersTech
Рет қаралды 107 М.
How to make a LED digital counter using 7- Segment Display
1:00
28. STM32CubeIDE Servo Motor and Potentiometer with STM32F103C8T6
5:00
MicroPeta by Nizar Mohideen
Рет қаралды 11 М.