angle control with MD13S
Posted:
Mon Jan 04, 2021 6:55 am
by rayjorgensen
In the FAQ page, the question is:
3. I would like to control my servo motor to a certain angel, but i totally have no idea how to write the program.
At the end of the discussion - Sample source code has been provided too at the product page.
I can not find that sample code. Could someone post a link? I am using a MD13s.
Thanks
Re: angle control with MD13S
Posted:
Tue Jan 05, 2021 5:12 pm
by ZaM
Hi,
Can I have the link for QnA that you mention? Cannot find that question on our MD13S page.
About your question, it depends on your control method, you can use a potentiometer to act as angle feedback, so you will able to use a DC motor and this motor driver the same as a servo motor.
Re: angle control with MD13S
Posted:
Wed Jan 06, 2021 4:13 am
by rayjorgensen
https://forum.cytron.io/viewtopic.php?f ... f6f6a4f62fI'll be using a homemade sevo. Pot on motor shaft for feedback and pot (for testing) representing GPS speed.
Re: angle control with MD13S
Posted:
Fri Jan 08, 2021 7:02 am
by rayjorgensen
hello anyone have a link for me, please/
Re: angle control with MD13S
Posted:
Thu Jan 14, 2021 3:41 pm
by waiweng83
The FAQ you are referring to was how to control a RC servo and not the normal DC motor.
Anyway, you may refer to this tutorial on how to implement a PID control for DC motor.
Please take note that this tutorial is not using MD13S and you need to modify the code accordingly.
https://tutorial.cytron.io/2012/06/22/p ... ed-design/