STM32 Blue Pill for beginners Code and diagram are at www.micropeta....
Пікірлер: 43
@NizarMohideen2 ай бұрын
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 Жыл бұрын
Your videos are great and help me a lot. Thank you and best wishes to you
@NizarMohideen Жыл бұрын
Glad to hear that!
@quanvan9774 Жыл бұрын
@@NizarMohideen Can you make a video on how to use bluetooth hc05 with motor L298N?
@rafaelhung18125 ай бұрын
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 Жыл бұрын
Sir,, can you make video using "PID" for motor drive.. PID controls the pwm accurately and faster
@belkhiriahend6987 ай бұрын
Thank you soooo much foor this helpful video♥♥
@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 Жыл бұрын
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-bq1ku5 ай бұрын
Thank you sir ,can you please make a video for using rotart encoder to measure rpm
@NizarMohideen5 ай бұрын
I have done. Links are below kzfaq.info/get/bejne/arOFfMSJ07Gcqas.html kzfaq.info/get/bejne/atakmdWd3aeRaXk.html
@alimnerlink2 жыл бұрын
What i have to do if i want to have 2 wheels? And turn right or left?
@mechmarvel90316 ай бұрын
Why have you used the values 1790 and 2200? What is the logic behind it?
@rafaelhung18125 ай бұрын
were you ever able to figure out why? I'm currently trying to understand as well
@sergiocamargo6052 жыл бұрын
How can I run the DC motor, using an HC-SR04 sensor?
@vismaykakhandki3691 Жыл бұрын
How can I operate it using blutooth module with 2 wheels
@sallyobaid70202 жыл бұрын
If I don't connect the driver ground to the stm32 ground, does it damage the driver?
@NizarMohideen2 жыл бұрын
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.
@daliaghaziibaid71932 жыл бұрын
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????
@NizarMohideen2 жыл бұрын
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);
@daliaghaziibaid71932 жыл бұрын
@@NizarMohideen for what period?
@NizarMohideen2 жыл бұрын
Same Counter Period 625
@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 Жыл бұрын
@@NizarMohideen How did you calculate the value 1790, over here ?
@alanmoreno90742 жыл бұрын
How can i do this with two wheels? so that i can make a car that goes forward and backward
@NizarMohideen2 жыл бұрын
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
@alanmoreno90742 жыл бұрын
@@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?
@alanmoreno90742 жыл бұрын
@@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?
@NizarMohideen2 жыл бұрын
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
@alanmoreno90742 жыл бұрын
@@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.
@viperle60832 жыл бұрын
Do we need to change the RCC to HSE
@NizarMohideen2 жыл бұрын
You don't need to change the RCC to HSE
@nachikethase7022 жыл бұрын
How to do without joystick
@NizarMohideen2 жыл бұрын
A potentiometer can be used instead of a joystick
@nachikethase7022 жыл бұрын
@@NizarMohideen i am using L293D motor controller and a 500 ohm potentiometer How the connection will be
@NizarMohideen2 жыл бұрын
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
@nachikethase7022 жыл бұрын
Also I don't need potentiometer I need to rotate the motor using motor controller i tried but its not getting
@NizarMohideen2 жыл бұрын
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 Жыл бұрын
make: *** [makefile:79: pppppp.elf] Error 1 (i am getting error , what should I do?)