Results 1 to 7 of 7

Thread: Controlling a servo motor with mach3

  1. #1
    Registered
    Join Date
    Nov 2009
    Location
    USA
    Posts
    2
    Downloads
    0
    Uploads
    0

    Controlling a servo motor with mach3

    Hi, I'm just starting off my journey through DIY CNC milling, and I was hoping for some help, since Google has failed me .

    I have a bunch of servo motors that I am modifying to use a 15-turn potentiometer. I am not having trouble with that. it is hooked up to a little test circuit with a 556 timer and big control potentiometer on it. That works great.

    The problem is that I want to now hook the servo up to my computer's serial port and have Mach3 turn it. It doesn't have to be perfect right now, I just want a proof of concept. Stepper motors can be controlled via the serial port with just some simple components wired up without any microcontrollers or anything like that. How can I do the same for a servo motor? I don't want to have to buy and program an arduino or pololu or whatever, I just want it to connect to the port and take commands directly with mach3 running it.

    What do you think?

    Thanks in advance!


  2. #2
    Registered Iron-Man's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    181
    Downloads
    0
    Uploads
    0

    Controlling a servo motor with mach3

    Mach III uses the parallel port.
    For DIY Servo check out this link.
    dsPic-Servo


  3. #3
    Registered
    Join Date
    Feb 2009
    Location
    USA
    Posts
    1,570
    Downloads
    0
    Uploads
    0
    What are you calling a "servo" motor - an RC model servo, or an industrial servo with a built in encoder?

    Post a make and model number, and better yet a link to the part datasheet and you may get some useful replies.


  4. #4
    Registered
    Join Date
    Nov 2009
    Location
    USA
    Posts
    2
    Downloads
    0
    Uploads
    0

    Ah, the life of a newb

    Thank you for your replies, my newbie-ness is showing through, eh? sorry

    I have three JR Sports ST126MG servos which I am really having fun with even on my simple little test circuit. They don't have any built-in anything besides the pot comparator circuit.

    Looking at Mach3, it seems that it could just hook up through the parallel port (I said serial port up above, didn't I? Oops) and have it generate the 1-1.5 ms patterns to direct the motors by hooking their "signal" wire up to the corresponding pin of the port, and have it be fast enough to divide the 15 turns of the servo into small enough steps. Am I incorrect in this? I'm trying to track down something about it on Google, but the guiding hand of an experienced mach3/servo user is probably going to be so much more helpful.


  • #5
    Registered
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    77
    Downloads
    0
    Uploads
    0
    If you wanted to control an RC servo directly via mach3, you'd probably have to write a plugin. The only similar feature I can think of is PWM spindle control.

    Or you could use intermediate hardware (cpld or microcontroller), that would receive a step direction command from mach and convert that to a servo pulse.


  • #6
    Registered
    Join Date
    Nov 2009
    Location
    Bahrain
    Posts
    1
    Downloads
    0
    Uploads
    0
    Hi is any can help me i have problem in my Quick CNC china machine i am new in these field i have a problem my DSP 0501 control system is not working nothing display in the screen .can anybody help me what i have to do i am in trouble.pleas send the solution throw my e mail.
    alnajar2@gmail.com
    Thanks
    Alnajar


  • #7
    Registered Iron-Man's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    181
    Downloads
    0
    Uploads
    0

    RC Servo Control

    See the following links;
    http://openservo.com/
    Open servo has a digital servo project based on the AVR MCU. You should be able to modify the software to work with mach 3. Also check out this site,
    http://www.servomagazine.com/
    I hope this helps.

    Iron-Man


  • Similar Threads

    1. Replies: 3
      Last Post: 09-04-2009, 06:33 PM
    2. Need Help!- I'm looking for ideas on controlling this DC motor
      By NEATman in forum General Electronics Discussion
      Replies: 18
      Last Post: 02-12-2008, 05:40 PM
    3. Newbie- Controlling Servo Drives With Pulses
      By Mert-G in forum Servo Motors and Drives
      Replies: 3
      Last Post: 02-04-2008, 05:50 PM
    4. Fanuc controller controlling mach3?
      By h_2_o in forum Mach Software (ArtSoft software)
      Replies: 3
      Last Post: 04-19-2006, 09:28 AM
    5. controlling stepper motor without pc
      By kerimtemel in forum Hobbycnc (Products)
      Replies: 4
      Last Post: 05-18-2005, 02:29 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.