angle control with MD13S

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

angle control with MD13S

Postby rayjorgensen » Mon Jan 04, 2021 6:55 am

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
rayjorgensen
Greenhorn
 
Posts: 3
Joined: Mon Jan 04, 2021 6:30 am

Re: angle control with MD13S

Postby ZaM » Tue Jan 05, 2021 5:12 pm

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.
ZaM
Moderator
 
Posts: 78
Joined: Tue Nov 23, 2010 4:16 pm

Re: angle control with MD13S

Postby rayjorgensen » Wed Jan 06, 2021 4:13 am

https://forum.cytron.io/viewtopic.php?f ... f6f6a4f62f

I'll be using a homemade sevo. Pot on motor shaft for feedback and pot (for testing) representing GPS speed.
rayjorgensen
Greenhorn
 
Posts: 3
Joined: Mon Jan 04, 2021 6:30 am

Re: angle control with MD13S

Postby rayjorgensen » Fri Jan 08, 2021 7:02 am

hello anyone have a link for me, please/
rayjorgensen
Greenhorn
 
Posts: 3
Joined: Mon Jan 04, 2021 6:30 am

Re: angle control with MD13S

Postby waiweng83 » Thu Jan 14, 2021 3:41 pm

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/
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 189
Joined: Wed Apr 15, 2009 2:17 pm


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 1 guest

cron