STM32 Timer Encoder: motor velocity and position

  Рет қаралды 15,284

Steppe School

Steppe School

Күн бұрын

Пікірлер: 33
@steppeschool3629
@steppeschool3629 Жыл бұрын
Hello guys, This video is about robust velocity and position measurement using Encoders. Timers are used to read the encoder's output. Since everything is implemented at a hardware level, minimum code is required😀. The source code can be found on my community and Patreon pages: www.steppeschool.com/products/communities/steppeschool-miscellaneous www.patreon.com/user?u=80399744
@lohikarhu734
@lohikarhu734 5 ай бұрын
Looks like nice way to handle "edge conditions".... I haven't read the timer information, yet, so I was surprised to see overflow on such a low speed operation. Thanks!
@ApertureApex
@ApertureApex 3 ай бұрын
Excellent video! Thank you.
@steppeschool3629
@steppeschool3629 3 ай бұрын
Thanks a lot!
@7alfatech860
@7alfatech860 Жыл бұрын
My, what small hands you have when turning the car wheel🤣. Good to see you've got your kid involved. And excellent video, BTW
@steppeschool3629
@steppeschool3629 Жыл бұрын
😂😂. Thanks 👍
@klebolek
@klebolek 10 ай бұрын
Nice video! Thanks for help and explanation!
@steppeschool3629
@steppeschool3629 10 ай бұрын
Glad it helped!
@botak333
@botak333 8 ай бұрын
Its that with Quadrature Encoder with Differential Signals sir???
@steppeschool3629
@steppeschool3629 8 ай бұрын
Yes it is quadrature encoder
@botak333
@botak333 8 ай бұрын
@@steppeschool3629 it posible to used for pmsm motor sir??
@lehuubaothuan8559
@lehuubaothuan8559 8 ай бұрын
sprint("thanks verry much for your video!");
@steppeschool3629
@steppeschool3629 8 ай бұрын
thank you!
@faezefaraz
@faezefaraz 3 ай бұрын
Why does it show zero speed in all cases when I run this code?
@woldecosgrove
@woldecosgrove 6 ай бұрын
Hello nice work! i like your video very much, but i cant find the code, i am already accessable to your web page, please advise the website to your code...thx
@vscm167
@vscm167 Жыл бұрын
Would you please share the link to buy this kind of motors? They look good!
@steppeschool3629
@steppeschool3629 Жыл бұрын
It is called: GA25-371. I bought it in Digikey with a kit. www.digikey.fr/fr/products/detail/seeed-technology-co-ltd/110090264/10290303?s=N4IgTCBcDaIIwFYCcB2AtHOAGLStgDYAWNAOQBEQBdAXyA You can also buy it separately. Just google. I usually mention the hardware I use in the video's description.
@bobby9568
@bobby9568 Жыл бұрын
You are very smart!
@steppeschool3629
@steppeschool3629 Жыл бұрын
thanks😀
@unholy1771
@unholy1771 7 ай бұрын
Why didn't you simply use the encoding of the channels to find position and then speed? Would've been cleaner, faster and provided more resolution
@steppeschool3629
@steppeschool3629 7 ай бұрын
Because the counter of the timer has limits. It cannot count to an infinity leading to overflow issues. Therefore, it is better to compute the velocity and then position. Hope I could answer your question
@LeTruong123
@LeTruong123 Жыл бұрын
velocity here is rad/s ? right ?. I use motor 330rpm around 33rad/s but your code just read 7 rad/s. It is not true
@steppeschool3629
@steppeschool3629 Жыл бұрын
My code shows the velocity in terms of the number of ticks of the encoder. In order to convert it to a physical unit, it is necessary to divide it by the number of ticks per revolution. Then you get a number of revolutions,
@LeTruong123
@LeTruong123 Жыл бұрын
@@steppeschool3629 Thank you, I can do it
@samibahlous979
@samibahlous979 Жыл бұрын
Very nice work , i just want to ask do you mean by the encoder position the distance traveled by the wheel of the motor or the number of ticks done by the encoder . Thank you !
@steppeschool3629
@steppeschool3629 Жыл бұрын
The answer is yes and no. The encoder returns the number of ticks done by the encoder. However, you can scale it to show the real distance traveled by the wheel, by knowing the diameter of the wheel and the number of ticks per rotation. Actual distance = number of tick * (pi * radius of wheel) / (number of ticks per rotation)
@samibahlous979
@samibahlous979 Жыл бұрын
Thank you !@@steppeschool3629
@shanmugaraj4755
@shanmugaraj4755 Жыл бұрын
What software you used to programming
@steppeschool3629
@steppeschool3629 Жыл бұрын
Hi, I used STM32CubeIde, a standard software tool for programming STM32 MCUs.
@machmanish1
@machmanish1 2 ай бұрын
Guys, avoid this person. He is showing different code that then what is actually written. With 2 hours of work i was able to make it working.
@ethukusj4743
@ethukusj4743 Жыл бұрын
bro can u plz send the code and your videos were awesome?
@steppeschool3629
@steppeschool3629 Жыл бұрын
Hello, You can access the source code and other materials on private repositories on GitHub. For that, you need to join my community: www.patreon.com/user?u=80399744
@lohikarhu734
@lohikarhu734 5 ай бұрын
Pay to play... I guess it's a way of getting actual income for the work
STM32 TIMERS #3. ENCODER MODE || F103C8
15:41
ControllersTech
Рет қаралды 58 М.
STM32 motor control: PID theory and implementation
10:52
Steppe School
Рет қаралды 17 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 269 #shorts
00:26
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 12 МЛН
A RISC-V Stick-on
8:44
Jeff Geerling
Рет қаралды 362 М.
Synchronizing Motor Position with Encoders, PID Control and Arduino
8:14
PID algorithm: An example with DC Motor Control with Encoder
27:57
STEM Formulas 理工公式
Рет қаралды 8 М.
This Component solves "All" Motor Problems?! (Motor Encoder) EB#58
11:34
STM32 ADC Complete Guidance: Polling, Interrupt, and DMA Modes.
17:55
Steppe School
Рет қаралды 3,2 М.
All Machine Learning algorithms explained in 17 min
16:30
Infinite Codes
Рет қаралды 278 М.
Decoding Rotary Encoders with STM32 | Truestudio + CUBEMx
12:15
Beyond Breadboard
Рет қаралды 18 М.
STM32 Таймеры. Введение
24:48
MBDLB
Рет қаралды 3,1 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 810 М.