Page 1 of 2 12 LastLast
Results 1 to 12 of 23

Thread: USB conversion

  1. #1
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0

    USB conversion

    I've got a China router with YooCNC step/dir driver boards
    and I've bought a Usb controller card from Planet CNC which I'm going to wire to the YooCNC driver boards.

    I don't have any good documentation on the YooCNC so I'm a bit unsure on how to wire it to the USB controller.
    Anyone who have done this?
    Or anyone who can help me with this?

    Here's how I've wired it:




    Thanks


  2. #2
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1,725
    Downloads
    0
    Uploads
    0
    I do not have either of those boards, however I will see if I can help you get the proper board to board connections.

    The Planet CNC connector is supposed to follow the Pminmo 10-pin IDC connector standard described at: DIY Interface Technical Information

    My interpretation of the signal labels on the YooCNC driver is that CP+ and CP- are step (clock) pulse inputs to an optoisolator; EN+ and EN- are enable inputs to another optoisolator; and there should probably be two additional inputs, for the Direction signal going to another optoisolator, possibly labeled CW+ and CW- (or maybe labeled DIR+ and DIR-). Can you verify that you have those additional input pins on your driver?

    In your diagram it appears that you have the DIR output from the Planet CNC board going to an enable input of the driver instead of going to a direction input. If that is the case, then it will not work properly as wired.

    Let me know whether you have located those additional direction signal pins, and if so, I can continue with my recommendation.


  3. #3
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0
    There are only 4 wires from the YooCNC and they are labeled CP+ CP- EN+ EN-
    There are however 2 soldering points on the board labeled DIR+ DIR- (they are not connected)

    On the original controller board the 4 wires are labeled PU+ PU- DIR+ DIR-

    DIR+ goes to EN+ on the driver board
    DIR- goes to EN-
    PU+ goes to CP+ on the driver board
    PU- goes to CP-


  4. #4
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1,725
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Sharx View Post
    There are only 4 wires from the YooCNC and they are labeled CP+ CP- EN+ EN-
    There are however 2 soldering points on the board labeled DIR+ DIR- (they are not connected)

    On the original controller board the 4 wires are labeled PU+ PU- DIR+ DIR-

    DIR+ goes to EN+ on the driver board
    DIR- goes to EN-
    PU+ goes to CP+ on the driver board
    PU- goes to CP-
    I'm not sure what "the original controller board" is (I don't think that you referenced it above), but from what you state it appears that the markings on the driver inputs may not correspond directly to their actual functions.

    So, I can't give any more advice other than to give it a try.

    There are some unknowns here - the primary one being whether your USB board's + outputs have sufficient current sourcing capability to drive the optoisolator LED inputs in your driver (which I am guessing are present).

    If it is set up like other drivers with which I am familiar, then there are two ways of hooking up your USB controller to the driver.

    One way would be like your diagram above, namely, where the controller signals source current which directly turns on the LEDs in the optoisolator inputs.

    The other hookup would have you wire a small value pull-up resistor (perhaps using a resistance in the range of a few hundred ohms) between each of the + inputs and the +5 volt power supply terminal, and then hook up the step and direction outputs from your controller to the corresponding - (minus) inputs of the driver. In that case, the LEDs in the driver's optoisolators are turned on by an active-low signal coming from your controller. So if you can't get it working the way that your diagram shows, then you have the option of trying the alternative hookup using the pull-up resistors.


  5. #5
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0
    Here's a drawing of how the YooCNC is connected and the markings on the card.
    Maybe someone recognize the markings and know where they should connect?



  6. #6
    Registered john_100's Avatar
    Join Date
    Mar 2007
    Location
    uk
    Posts
    577
    Downloads
    0
    Uploads
    0
    going by the last diagram it looks like the direction inputs ard wrongly labled as enable

    I would connect the new driver as in the diagram below

    John

    PS
    very often logic IC's at logic 0 can sink more current

    than source when at a logic 1 (as in your first diagram)
    Attached Thumbnails Attached Thumbnails USB conversion-cnc-connections.jpg  


  7. #7
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by john_100 View Post
    going by the last diagram it looks like the direction inputs ard wrongly labled as enable

    I would connect the new driver as in the diagram below

    John

    PS
    very often logic IC's at logic 0 can sink more current

    than source when at a logic 1 (as in your first diagram)

    Don't know it this matter but the YooCNC driver card har it's own power.


    Here's acouple of pictures of the driver board and the old controller board (YooCNC)






  8. #8
    Registered john_100's Avatar
    Join Date
    Mar 2007
    Location
    uk
    Posts
    577
    Downloads
    0
    Uploads
    0
    looking at the photo's

    on the yoocnc b.o.b , the pcb tracks for the "A" axis
    you can see the pu+ and dir+ connections go to the +5v supply from the
    board

    taking the white , yellow blue and red wire connecting the yoocbc driver to be
    the same wires

    I would now expect its the red and yellow wires that are connected to +5V
    (you can check this with a multimeter)

    the blue the step pulse and white the direction control


    if you look closely at the holes marked dir+ and dir-
    on driver the you can see two fine track going to the connector

    John



    PS looking at the stepper driver you have two EL817 opto isolators
    and a 6N137

    I'd expect the EL817's to for be step and direction (blue & white wires)
    and the 6N137 for an enable input
    ( connect the yellow wire to 0V to disable the drive)

    the three resistors R11,R12 and R13 to be all connected to +5V
    ( red wire)
    Last edited by john_100; 09-10-2011 at 07:01 PM.


  9. #9
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0
    I get +5V on all four wires.
    So I guess I must find my old computer and hook it up to see if the signal on Step and Dir gets low when activated in Mach3 ?


  10. #10
    Registered john_100's Avatar
    Join Date
    Mar 2007
    Location
    uk
    Posts
    577
    Downloads
    0
    Uploads
    0
    I think with in mach3 you can switch between positive and negative going
    pulses
    (I've not used mach 3 ,I'll have to read the book again !)

    either way , look at the direction output
    you should see it switch as you change direction

    do you have the E-stop pins connected ?

    John


  11. #11
    Registered
    Join Date
    Sep 2005
    Location
    Norway
    Posts
    35
    Downloads
    0
    Uploads
    0
    Step/Dir - blue & white wires
    Enable - Yellow wire
    +5V - red wire

    Just want to make sure I understand you correctly


  12. #12
    Registered john_100's Avatar
    Join Date
    Mar 2007
    Location
    uk
    Posts
    577
    Downloads
    0
    Uploads
    0
    yes thats what I expect at the driver board

    I assume there is another three unused connections on the board

    that are hidden from view by the 4 pin connector ( PU+ , PU- and EN + )



    on other stepper drivers the drive is disabled when the LED in the opto

    isolator is energised ! and is not connected when it's not being used


    with the yoocnc bob both terminals are connected to +5v ,
    there for the motor is enabled


    John
    Attached Thumbnails Attached Thumbnails USB conversion-connections_optoisolators.jpg  
    Last edited by john_100; 09-11-2011 at 08:49 AM. Reason: add diagram


Page 1 of 2 12 LastLast

Similar Threads

  1. x2 cnc conversion
    By pac1969 in forum Australia, New Zealand Club house
    Replies: 0
    Last Post: 10-12-2009, 06:32 AM
  2. Need Help With Conversion
    By NSCCstudent in forum Emco Mills
    Replies: 3
    Last Post: 10-02-2009, 06:41 PM
  3. Need Help!- Conversion Please!
    By kawazuki in forum Solidworks
    Replies: 2
    Last Post: 06-25-2009, 02:56 PM
  4. servo conversion vs stepper conversion
    By contractdesign in forum Bridgeport and Hardinge Mills
    Replies: 3
    Last Post: 07-26-2008, 03:54 PM
  5. Has any one done a CNC X1 conversion
    By cweeks in forum Benchtop Machines
    Replies: 4
    Last Post: 11-11-2006, 11:08 AM

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.