Welcome to Our Community

Some features disabled for guests. Register Today.

CNC xPRO Driver

Discussion in 'Other Builds' started by Spark Concepts, May 25, 2014.

  1. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    As I know it's all about you route it, the digital (PWM) pins 2 to 11 can be used, but I have no knowledge of the Arduino Stepper library, sorry.

    -Ronald

    Edit: I would look into Inkscape and it's CAM plugin, generate G-code and use GRBL as it is. Inkscape with the CAM plugin is great for 2D.
     
  2. mcbuilder22

    Builder

    Joined:
    Jan 12, 2015
    Messages:
    45
    Likes Received:
    24
    Eric,

    Using the Above Arduino Uno pinout it's very easy to just use the Xpro as an arduino with connected motor drivers. You don't have to use the stepper library.

    Here is some code to try:

    At the top of your file:

    int dirPin = 5;
    int stepperPin = 2;


    Inside void setup:

    pinMode(dirPin, OUTPUT);
    pinMode(stepperPin, OUTPUT);


    Inside void loop

    digitalWrite(dirPin, LOW);


    digitalWrite(stepperPin, HIGH);
    delayMicroseconds(900);
    digitalWrite(stepperPin, LOW);
    delayMicroseconds(900);

    -----------

    That will make it take 1 step of the X axis. The loop should cause it to continue to got in that direction. Write dirPin to HIGH if you wish to go the other direction.

    Hope this helps
     
  3. Kyo

    Kyo Veteran
    Staff Member Builder Resident Builder

    Joined:
    Feb 27, 2014
    Messages:
    673
    Likes Received:
    702
    Don't want to spam the thread but figured this would be the best place to post it. ( Mark, we need two new sub forums: Commercial sales ( for business selling stuff ) and Private sales ( for the rest of us lol :) ) so we don't have to clutter build threads )

    I have a working when pulled X-pro v2 board no longer being used and would like to pass it on to someone who could use it. just send me a PM..

    EDIT: Thanks Simon, Enjoy your new controller!
     
    #483 Kyo, Apr 20, 2016
    Last edited: Apr 28, 2016
    GrayUK likes this.
  4. Eric Schneider

    Builder

    Joined:
    Jan 10, 2016
    Messages:
    14
    Likes Received:
    0
    Hi Mcbuilder, thanks! That did indeed work. I know the GRBL setup has a lot more functionality built in, the reason I wanted to try Arduino at first was to play around with some basic controls stuff.

    General XPro questions
    - When driving the motor for a short while, not particularly aggressively, the heatsink chips got very, very hot. Not quite hot enough to burn my finger but getting close. Is this normal operation, or will the chips underneath burn out soon?
    - Also, at one point the motor connected to the X-Axis became loose and wouldn't respond to commands, after waiting a while and power cycling it started responding again. Could this be thermal protection, or something else?

    Thanks all.
     
  5. Serge E.

    Serge E. Journeyman
    Builder

    Joined:
    May 6, 2014
    Messages:
    730
    Likes Received:
    252
    From my early experiences, it is a good idea to get good heat syncs properly mounted. Heat transfer grease, as typically used on computers, on its own allows the heat syncs to slide off, thus fail at their task. Adding a dab of silicon to two corners did the trick for me... Adding a fan blowing air over the heat syncs is also a good idea. Doing those two things solves most of my early 'random' problems.

    The drivers have over heating protection. You probably won't get a melt down. However, as one or more drivers over heat and shut down and repower randomly, you will see your router and spinning tool start gouging into your work piece and spoil board as the other drivers keep going and G-code is being processed by the rest of the controller. It can get real ugly real fast (speaking from experience)

    If your drivers are getting hot after only a short while, you might need to adjust the power level. I've got mine at ... about 2/3 (NEMA 23 with higher torque than default steppers for an OX).

    have fun ...
     
  6. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    To answer your question:

    -It's normal for the DRV8825 to get hot, and real hot is when you burn your finger but it will get there with NEMA23 motors. Use a 60 or 80mm fan to force air on the chips if possible.
    -Hard to say what caused the stall, but it was most likely a thermal problem; go with a fan, use 24vDC PSU (and thus a 24vDC fan).

    -Ronald
     
  7. mcbuilder22

    Builder

    Joined:
    Jan 12, 2015
    Messages:
    45
    Likes Received:
    24
    I never had heat problems with a nema 17 motor: http://www.amazon.com/Stepper-Motor...&redirect=true&ref_=oh_aui_detailpage_o03_s00
     
  8. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    The NEMA17 motor will consume about 0.7A @ 24vDC, and 1.2A @ 12vDC, that is under the 1.75A RMS that the DRV8825 can deliver, so yes, the xPRO is perfect with NEMA17 but can get tricky with the 170oz.inch NEMA23 motors and will/can not handle the 345oz.inch NEMA23 motors. If the xPRO could handle 35/36vDC it would have been better, who knows if V3 is going to work with that voltage; it would be great if it would :).

    -Ronald
     
  9. Darus

    Darus New
    Builder

    Joined:
    Mar 9, 2015
    Messages:
    22
    Likes Received:
    1
    I have a fan on the xpro and heat sinks on the driver chips. Just run the fan from xpro connection.
     
  10. Rob Mitchell

    Rob Mitchell Well-Known
    Builder

    Joined:
    Nov 29, 2015
    Messages:
    105
    Likes Received:
    35
    I run the NEMA23 using 24v supply with no issues.

     
  11. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    Hello Rob,

    I have failed to get the 345oz.inch motors, the high torque series, to run with the xPRO. How long are your cables and have yo modified the board?

    -Ronald
     
  12. Rob Mitchell

    Rob Mitchell Well-Known
    Builder

    Joined:
    Nov 29, 2015
    Messages:
    105
    Likes Received:
    35
    Actually I have the 175oz NEMA23 steppers.

    NEMA 23
    • Shaft Size: 1/4"
    • Torque: 175 oz-in
    • Step Angle: 1.8
    • DC 2.8 A/Phase
    • 4 Wire Bi-polar

     
  13. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    Typo from my side, it should say 175 where I wrote 170. Yes, the 175 will work fine with the xPRO and not too long cables. The 345 will pull way too much and so 35vDC would be needed to not go over the 1.75A. 1.75A is what the DRV8825 can deliver, RMS that is.

    -Ronald
     
  14. Eric Schneider

    Builder

    Joined:
    Jan 10, 2016
    Messages:
    14
    Likes Received:
    0
    Hi, I tried programming a basic sketch on the XPro using it as an Arduino, and now when I'm trying to recompile GRBL 0.9 onto the board I am completely unable to do so. I also can't load any other Arduino sketches onto the board.

    I tried following the instructions from
    Compiling Grbl · grbl/grbl Wiki · GitHub
    Using the code from here:
    GitHub - grbl/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino

    I've gotten a bit stuck on how to debug this. I tried following a tutorial on how to debug whether an Arduino is bricked. Following the tutorial: when I plug the XPro into the computer via USB it is successfully powered, lights turn on and I measure 4.75V on the 5V line. Next I try pressing the reset button on the XPro, but no lights flash. According to the Arduino tutorial, this suggests that there is a problem with the bootloader or the main processing chip. When I plug the . In the Windows device manager the XPro shows up as FT232R USB UART and reports that "There are no compatible drivers for this device." When I go to the Arduino IDE to try and reload GRBL the XPro does not show up as a valid port for upload.
    http://arduino.stackexchange.com/qu...-arduino-uno-problems-with-uploading-to-board

    Can anyone help me try and debug the XPro? This feels like issues occurring at a very basic level. The funny this is, I've barely used the board and haven't hooked up much to it. I made a couple of motors twitch a while back but never did any heavy driving. I'm not sure how it could have gotten borked, but it's very sad :(
     
  15. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
  16. Eric Schneider

    Builder

    Joined:
    Jan 10, 2016
    Messages:
    14
    Likes Received:
    0
    I have looked at that, I tried reflashing the bootloader and it failed at a very basic level.

    I have access to an AVRISP mkII, so I tried following this tutorial
    Burning the Bootloader to an Arduino Uno using Atmel Studio and the AVRISP mkII
    Using the bootloader code from here
    Arduino/optiboot_atmega328.hex at master · arduino/Arduino · GitHub

    Step 6 of the bootloader tutorial involves hitting "Read" to make sure you have connection to the chip. For me when the XPro was powered and the mkII was powered it said something like "Couldn't read, failed to enter programming mode". I'm fairly sure that the ISP 6-pin header was on the right way, because pin 1 of the 6-pin header is marked on the XPro board. I also tried all the ISP clock settings to no avail. Like I said, it seems to be failing at a pretty basic level.

    I could try flashing the bootloader with Arduino, but based on the above experience I think it will fail with a different error message... Any good debug steps for the XPro?
     
  17. Ronald van Arkel

    Staff Member Builder Resident Builder

    Joined:
    May 7, 2014
    Messages:
    472
    Likes Received:
    245
    I never looked into it, but why not use the modem (RX/TX) and by-pass the USB to serial chip.

    -Ronald
     
  18. Eric Schneider

    Builder

    Joined:
    Jan 10, 2016
    Messages:
    14
    Likes Received:
    0
    What would the wiring look like for that? Would it use an extra Uno or other Arduino?

    Also, wouldn't that still leave the computer unable to command the board with USB and gcode?
     
  19. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
    t
    that tutorial is for burning a new chip.
     
  20. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
  21. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
  22. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
  23. Chillimonster

    Chillimonster Well-Known
    Builder

    Joined:
    May 6, 2015
    Messages:
    153
    Likes Received:
    81
    Strange issue this morning.

    Headed to the workshop as normal on a Sunday and fired up the power supply for the cnc / controller etc

    Normally I'll hear a 'clunk' as the motors locked but not this morning.

    The PC will not talk to the controller (says grbl not finished booting and will not move from there)

    Have tried another PC but no change.

    I did notice another couple of lights on the xPro that I have not noticed before but unsure what this signifies.
     
  24. Chillimonster

    Chillimonster Well-Known
    Builder

    Joined:
    May 6, 2015
    Messages:
    153
    Likes Received:
    81
    image.jpeg image.jpeg

    These are the lights.
     
  25. RichGMD61

    RichGMD61 New
    Builder

    Joined:
    Dec 24, 2015
    Messages:
    20
    Likes Received:
    15
    Hi folks, finished my build pretty rapid, all went well. Hooked up the controller as per the xpro wiki even got myself a 'tvs' as specified, I'm running it all from a 'meanwell s-350-24' psu when I try to tune in the motors as per the wiki, all the pot seems to do is change the 'volume' of the noise coming from the steppers.
    When the pot is in the full anti-clockwise position the steppers still turn, not as described in the wiki, turning it slowly clockwise just seems to change the volume of the noise.
    The only things I've changed are the baseline GRBL firmware settings to the ones supplied by @Ryan Lock for the oozenest ox and the variable spindle max speed. I've also tried with an 'ATX' psu (Corsair VS350) and I still get the same thing happening, can anyone please shed some light on the situation and none of the belts are connected as I don't want it crashing the end of the frames.
     
  26. Ryan Lock

    Ryan Lock Veteran
    Builder

    Joined:
    Oct 12, 2014
    Messages:
    530
    Likes Received:
    293
    If they are making alot of noise, it may be due to them be connected wrong, but if this is the case they usually wouldn't turn. But just to check what order have you got motor wires?

    When you are running the motors what speed are you running them at?
     
  27. RichGMD61

    RichGMD61 New
    Builder

    Joined:
    Dec 24, 2015
    Messages:
    20
    Likes Received:
    15
    Hi Ryan

    The connections were all okay, all done as per the wiki instructions and started the testing as per the wiki with no difference, I surmise that the DRV8825 chip isn't man enough for NEMA 23's, coincidently I tried some 12v NEMA 17's I had and everything went as the wiki instructions no problems at all. Ill keep the xpro for another project I've got in mind and stick to the pukka 'protoneer' v3.51 shield and external drivers, when they were all hooked up the steppers were singing along nicely, even up-to the 7500 mm/min rate in those setting you sent me.

    I've been looking around for different driver chips and found the AMIS-30543 chip by ON Semiconductor, not having the electronic design skills I would have had a go at making a board, current settings are all done in software not hardware like current plugin drivers.

    Richard
     
  28. Darus

    Darus New
    Builder

    Joined:
    Mar 9, 2015
    Messages:
    22
    Likes Received:
    1
    Is there a way to setup a z zeroing touch plate with the xpro board?
     
  29. snokid

    snokid Journeyman
    Builder

    Joined:
    Oct 11, 2014
    Messages:
    335
    Likes Received:
    104
    this should get you going...
     
    GrayUK and Darus like this.
  30. Darus

    Darus New
    Builder

    Joined:
    Mar 9, 2015
    Messages:
    22
    Likes Received:
    1
    Thank you! Could you make a vide on your wiring setup?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice