How to build PID controller with Arduino UNO?
8 次查看(过去 30 天)
显示 更早的评论
I want to control a DC motor with PID controller by using Arduino UNO board and simulink. i write the code as pic attached, and i found the when the ref. value was 0 the motor run and physically it's wrong. PIN 0 Reference value : from variable voltage source 0~5 VDC PIN 1 Feedback : from speed sensor 0~5 VDC PIN 5 output : to motor drive
please any help or example to how i use pid in smulink with arduino.
0 个评论
回答(2 个)
Madhu Govindarajan
2015-10-20
Here is a link that shows how to do PID control on DC motors using Simulink - http://www.mathworks.com/help/supportpkg/arduino/examples/drive-with-pid-control.html
If you think the motor is running when the input is zero, can you confirm that the input is actually zero by connecting an oscilloscope to the pin?
0 个评论
Adrian Fleck
2019-11-4
But how is it possible to control an proces without simulink and an pid contoler (with code) ?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!