Arduino - DC motor speed control PID

preview_player
Показать описание
This video has full instruction how to control motor speed with PID algorithm. Motor speed is controlled by PWM through H-bridge L298. Arduino UNO is used to count motor speed via motor encoder, then calculate PWM needed for H-bridge to help motor reach speed setting. An HMI (in computer) is used to show speed graph, also for changing P, I, D gain.

-----------------------------------------------------------------------
Hardware to make this project:

------------------------------------------------------------------
Software
1. Arduino IDE (to program Arduino UNO)
2. Visual Studio 2008
----------------------------------------------------------------
Full code:

-------------------------------------------------------------------
Other meaning project made by me:

------------------------------------------------------------------
Thanks for your watching. Please help me to reach 2,000 subscribe! Thanks
Рекомендации по теме
Комментарии
Автор

What an amazing project, this is the only one capable to control motor rpm pid works great. Many thanks for sharing with us!

baiamontes
Автор

This is exactly what I was looking for! Thanks!

marmar
Автор

in the pv_speed section there is an input = 600. is this setpont?

dimdimas
Автор

sir, may i ask how can u get this "pv_speed = 600.0*(encoder/200.0)/0.1;" ?
what i got the meaning for is just 200 in there for ppr
but for 600 and 0.1 in there i still dont get it

ilhampambudi
Автор

THANK YOU, you have saved me a LOT of work :)

MrDeZaaa
Автор

the information block or form 1 appears empty, you could load the char1 of that block

rodrigovillatoro
Автор

thanks for the video! I have a question. is necessary to conect 5V on the 5V connector from the L298? I thought that it was neccesary when using the ENB pin

eljefaso
Автор

Hi can you tell me how to open tunning program on VS 2022?

TungPham-kuxf
Автор

How to change COM1 to another COM? I'm having trouble using the COM 1

danielpescador
Автор

Thanks for video❤ I have a question, Visual studio C# or C++ ?

kazuha
Автор

Hi, how can I open this project in Visual Studio 2019?

francesco
Автор

Ehrn u increase the speed does motor consume more electricity?

whatsup_viral
Автор

If I was using a different encoder, what values should I change in the arduino code? Since the count per rotation will be different.

vince
Автор

Hola ... tu motor trabaja de 12 a 24 Vdc, porque sacas la energía del arduino?

GabrielLopez-shkw
Автор

@engineer2you in your case, how many RPM dc motor are you using?

Kylle
Автор

Very good sir make videos please don't give up..
And yes that visual Studio and ide combination is unique please make some tut on it how to do its from beginning to advance 🤩🤩🥳🥳

saurabhtalele
Автор

Hlo Sir, Can i change rpm of motor inside the arduino code because i am doing simulation which is not supported visual studio. Regards

anonymousyoutubemember
Автор

Hello i'm trying to do this project and the program runs without errors however motor refuses to start. I managed to run it without the stdafx.h, could that be the issue?

stipemasnic
Автор

Thank you
Will it work on L293d motor shield?

khalilm
Автор

sir, why could you choose Kp, Kd and Ki like this? From where?

Kira_