No video

20. STM32CubeIDE L298N Motor with STM32F103C8T6

  Рет қаралды 19,144

MicroPeta by Nizar Mohideen

MicroPeta by Nizar Mohideen

3 жыл бұрын

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

Пікірлер: 43
@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 - 116 in this channel kzfaq.info/get/bejne/aJxdZqSGu7DQlHU.html If your board has clone stm32 chip and have code uploading problems, please use method shown in video no - 92 in this channel kzfaq.info/get/bejne/j9WTqMdyr6isXZs.html
@quanvan9774
@quanvan9774 Жыл бұрын
Your videos are great and help me a lot. Thank you and best wishes to you
@NizarMohideen
@NizarMohideen Жыл бұрын
Glad to hear that!
@quanvan9774
@quanvan9774 Жыл бұрын
@@NizarMohideen Can you make a video on how to use bluetooth hc05 with motor L298N?
@rafaelhung1812
@rafaelhung1812 5 ай бұрын
hello, thank you for the great video! One question though, where did you get the values 1790 from and 2220, alongside that where did the calculations for the speed come from? I would really appreciate an answer thank you!
@ferdinvivian9336
@ferdinvivian9336 Жыл бұрын
Sir,, can you make video using "PID" for motor drive.. PID controls the pwm accurately and faster
@belkhiriahend698
@belkhiriahend698 7 ай бұрын
Thank you soooo much foor this helpful video♥♥
@NgocNguyen-qi8su
@NgocNguyen-qi8su Жыл бұрын
sir, why I take the jump of L298N off then it doesn't work, it just work when I take back the jump.
@minhtris21
@minhtris21 Жыл бұрын
Hello, thank you so much for your helpful videos, I got a problem with my yellow DC motor, when I start from 0 to 100% speed, it doesn't spin the wheel but the engine inside the motor is rotating, are there any way to fix this ?
@RachelSusan-bq1ku
@RachelSusan-bq1ku 5 ай бұрын
Thank you sir ,can you please make a video for using rotart encoder to measure rpm
@NizarMohideen
@NizarMohideen 5 ай бұрын
I have done. Links are below kzfaq.info/get/bejne/arOFfMSJ07Gcqas.html kzfaq.info/get/bejne/atakmdWd3aeRaXk.html
@alimnerlink
@alimnerlink 2 жыл бұрын
What i have to do if i want to have 2 wheels? And turn right or left?
@mechmarvel9031
@mechmarvel9031 6 ай бұрын
Why have you used the values 1790 and 2200? What is the logic behind it?
@rafaelhung1812
@rafaelhung1812 5 ай бұрын
were you ever able to figure out why? I'm currently trying to understand as well
@sergiocamargo605
@sergiocamargo605 2 жыл бұрын
How can I run the DC motor, using an HC-SR04 sensor?
@vismaykakhandki3691
@vismaykakhandki3691 Жыл бұрын
How can I operate it using blutooth module with 2 wheels
@sallyobaid7020
@sallyobaid7020 2 жыл бұрын
If I don't connect the driver ground to the stm32 ground, does it damage the driver?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
If both grounds are not connected together, it will not damage anything. On the other hand it will not function until they are connected together. It needs closed loop wiring to current flowing or data transmission.
@daliaghaziibaid7193
@daliaghaziibaid7193 2 жыл бұрын
I want to run dc motors on pwm equal to 50% and 72 MHz what is the best operating period and the value of prescaler????
@NizarMohideen
@NizarMohideen 2 жыл бұрын
For 8 MHz, I used prescalor 128 - 1 = 127 So, for 72 MHz, I used prescalor 128* 72/ 8 - 1 = 1151 For 50% PWM, speed = 625 * 50% = 312 __HAL_TIM_SET_COMPARE(&htim2,TIM_CHANNEL_2, 312);
@daliaghaziibaid7193
@daliaghaziibaid7193 2 жыл бұрын
@@NizarMohideen for what period?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
Same Counter Period 625
@payalpal4386
@payalpal4386 Жыл бұрын
@@NizarMohideen So, for 170Mhz, PSC = { (128x170)/8 } -1 = 2719 ? And for 50% PWM, ARR/ Counter Period = 625 ? For 100% PWM, ARR/ Counter Period = 62.5 or 63 ? is this correct
@payalpal4386
@payalpal4386 Жыл бұрын
@@NizarMohideen How did you calculate the value 1790, over here ?
@alanmoreno9074
@alanmoreno9074 2 жыл бұрын
How can i do this with two wheels? so that i can make a car that goes forward and backward
@NizarMohideen
@NizarMohideen 2 жыл бұрын
I used pin A1 to create PWM for first motor Channel2 set to PWM Generation CH2 You can use pin A2 to create PWM for second motor Channel3 set to PWM Generation CH3 And then use two other pins for IN1 and IN2
@alanmoreno9074
@alanmoreno9074 2 жыл бұрын
@@NizarMohideen Thanks this helps so much! Would i need to use a different pre-scaler if for instance, i am not using the same board you are but rather a nucleo-F446RE? Or would it not matter?
@alanmoreno9074
@alanmoreno9074 2 жыл бұрын
@@NizarMohideen I have attempted to do this on my f446re but for some reason it does not work. Is there anything i may have to do different?
@NizarMohideen
@NizarMohideen 2 жыл бұрын
If it initialized with default settings (clock speed 180MHz), then set Prescaler set to 840-1 Or Prescaler set to 839 Compare video no 15 and 70 in my KZfaq channel for STM32F103C8T6 and STM32F446RE-Nucleo to see the different PWM generation
@alanmoreno9074
@alanmoreno9074 2 жыл бұрын
@@NizarMohideen Okay! Thank you so much! One last question, for the code in the while 1 loop would i have to change any of those values? For instance the 1000, 1790, and 2220? Kinda new at all of this xD sorry for all the questions.
@viperle6083
@viperle6083 2 жыл бұрын
Do we need to change the RCC to HSE
@NizarMohideen
@NizarMohideen 2 жыл бұрын
You don't need to change the RCC to HSE
@nachikethase702
@nachikethase702 2 жыл бұрын
How to do without joystick
@NizarMohideen
@NizarMohideen 2 жыл бұрын
A potentiometer can be used instead of a joystick
@nachikethase702
@nachikethase702 2 жыл бұрын
@@NizarMohideen i am using L293D motor controller and a 500 ohm potentiometer How the connection will be
@NizarMohideen
@NizarMohideen 2 жыл бұрын
L298N and L293D have different Specifications and Pinouts. I don’t have L293D with me to test and show how to connect them. As for the potentiometer, it should have more than 2000 ohm (2k) otherwise it will consume more power. But 500 ohm potentiometer will work. The connect GND and VCC to both side pins and connect middle pin to ADC pin. Thank you
@nachikethase702
@nachikethase702 2 жыл бұрын
Also I don't need potentiometer I need to rotate the motor using motor controller i tried but its not getting
@NizarMohideen
@NizarMohideen 2 жыл бұрын
L298N and L293D have different Specifications and Pinouts. I am sorry I don’t have L293D with me to test and show how to connect them.
@youtubebilgi
@youtubebilgi Жыл бұрын
make: *** [makefile:79: pppppp.elf] Error 1 (i am getting error , what should I do?)
19. STM32CubeIDE OLED Display. I2C with STM32F103C8T6
8:41
MicroPeta by Nizar Mohideen
Рет қаралды 35 М.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 631 М.
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 14 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 30 МЛН
28. STM32CubeIDE Servo Motor and Potentiometer with STM32F103C8T6
5:00
MicroPeta by Nizar Mohideen
Рет қаралды 11 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 144 М.
STM32 Timer Encoder: motor velocity and position
8:47
Steppe School
Рет қаралды 13 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
STM32 DC MOTOR VE L298N UYGULAMA | DERS-22
13:06
Electrobrains
Рет қаралды 3,5 М.
STEPPER Motor and STM32 || Angle, RPM and Direction control || CubeIDE
14:38
32. STM32CubeIDE RGB LED. Multi channel ADC with STM32F103C8T6
6:31
MicroPeta by Nizar Mohideen
Рет қаралды 8 М.
STM32 Guide #3: PWM + Timers
20:24
Mitch Davis
Рет қаралды 139 М.
Incremental Encoder and Servo Angle Control in STM32 || PWM
19:39
ControllersTech
Рет қаралды 19 М.
Motor Driver in depth | H-Bridge | L293D, L298N, TB6612FNG, VNH2SP30
12:50