587,475 active members*
3,706 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Servo Motors / Drives > Controlling a servo motor with mach3
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    2

    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
    Join Date
    Jan 2009
    Posts
    334

    Controlling a servo motor with mach3

    Mach III uses the parallel port.
    For DIY Servo check out this link.
    http://www.cnczone.com/forums/showthread.php?t=40940

  3. #3
    Join Date
    Feb 2009
    Posts
    2143
    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
    Join Date
    Nov 2009
    Posts
    2

    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. #5
    Join Date
    Dec 2008
    Posts
    77
    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. #6
    Join Date
    Nov 2009
    Posts
    1
    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.
    [email protected]
    Thanks
    Alnajar

  7. #7
    Join Date
    Jan 2009
    Posts
    334

    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, 11:33 PM
  2. I'm looking for ideas on controlling this DC motor
    By NEATman in forum CNC Machine Related Electronics
    Replies: 18
    Last Post: 02-12-2008, 11:40 PM
  3. Controlling Servo Drives With Pulses
    By Mert-G in forum Servo Motors / Drives
    Replies: 3
    Last Post: 02-04-2008, 11:50 PM
  4. Fanuc controller controlling mach3?
    By h_2_o in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 04-19-2006, 02:28 PM
  5. controlling stepper motor without pc
    By kerimtemel in forum Hobbycnc (Products)
    Replies: 4
    Last Post: 05-18-2005, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •