Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Phidget motor control + Ph encoder + Ph Spatial 3/3/3

Post any examples or modules that you want to share here

Phidget motor control + Ph encoder + Ph Spatial 3/3/3

Postby leonhernando » Wed Aug 17, 2011 10:01 pm

Dear developers

I am trying to move a linear motor (attached in one end) like a lifting mechanical pendulum (where the linear motor have to changes in different angles).
I am comparing the position of the encoder (which is in one of axis of the mechanism) and the ph Spatial 3/3/3 (is the given position). The idea is measure the angle of the linear motor and goes to a pre-setup position or given angle. So if the value of the encoder is relative equal to the ph spatial (roll) the motor control should stop moving. If the value is different the motor should move increase or decrease the angle to meet the selected angle.

Could you please give me any idea how to do it?
Or if you could give a hand with one example, I’m really appreciated.
I have try, but still not quite on track...

Thanks you

hernando
leonhernando
 
Posts: 4
Joined: Tue Dec 07, 2010 2:05 am

Re: Phidget motor control + Ph encoder + Ph Spatial 3/3/3

Postby DSP » Fri Aug 19, 2011 8:39 am

Basically what you need to do is use the FlowStone PID module:

Example: http://www.dsprobotics.com/support/viewtopic.php?f=11&t=32

You can learn about PID on Wikipedia if your not sure, but basically it allows you to have a target position and an actual position, then the PID algorithm will move the motor until it reaches the target, smoothly and with no overshoot.
DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm


Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 48 guests