Welcome to Our Community

Some features disabled for guests. Register Today.

Openbuilds controller program

Discussion in 'CNC Mills/Routers' started by Joe Calvaresi, Dec 23, 2019.

  1. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Hi everyone i'm joe and new to the world of cnc building and control. i live in Australia and have built my first cnc. Although i may be new i have put some time and money into this new machine. sourced my parts from local and international companies. i'm having issues with trying to set up my cnc with the program and have the drivers installed but cant seem to get the machine to move a mm.

    Some info about my cnc - its running a designated 2hp router. running hi torque stepper motors, 1 for each axis, ball screws not lead screws, hiwin guide hails and the blackbox motion controller all on a custom vacuum table i built. cutting capacity is about 1100mm x 1000mm x 220mm, footprint is about 1400mm x 1400mm. like i said custom. total weight of machine is 124kgs.

    All my wiring is set up correctly as i have followed all the instructions and have also going to install a laser at a later stage..

    So in short is there anyone out there who was or is in the same boat as myself who is trying to work out the parameters and setup for a custom machine not a per defined machine setting that is listed...

    Hope to learn from all you experts and professionals.

    kind regards
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    You mention you have a BlackBox:
    For BlackBox to be able to move it needs just 3 things:

    1: Power connected? (and of course all turned on?)
    2: Motor wired properly (miswired motors shudder in place, but you'll hear them)
    3: Machine profile loaded: OpenBuilds CONTROL -> Grbl Settings -> CUSTOM (as yours is custom)
    - Custom sets $4=1 and $1=255 - both critical to enable the drivers)

    All the other parameters, can be configured from gnea/grbl
     
    Mark Carew likes this.
  3. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Screenshot_20191224-055417.png Screenshot_20191224-055417.png
    Thank you

    Hi

    I have gone though all of the setting and changed what you recommended to change, yes all power is on and connected. All wires are connected correctly as attached diagram. I still have the same issue as before, alarm 8 & 9, and my machine will not go to home. I've gone though the openbuilds forums and couldn't find anything matching my case. Could there be something to do with yhe amount of current from the blackbox to the motors. So basically i need a document or a video detailing how to set up a custom machine with a blackbox from start to finish running openbuilds software, i been looking for months and found nothing so hopefully someone here may know the best way to achieve this. I know i'm asking for a lot but in the end we can achieve the impossible.

    Kind regards to all

    Merry christmas and a happy new year
    Hope to here from you soon
     
  4. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,441
    Likes Received:
    1,910
    the meanings of those alarm codes are
    8
    Homing fail. Cycle failed to clear limit switch when pulling off. Try increasing pull-off setting or check wiring.
    9 Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.

    Are you max travels set correctly? $130,$131, $132

    so I would first double all homing pulloffs and crosscheck all wiring to make sure all the switches act as expected.
    if it still alarms I would turn off all homing and limits and make it work manually.
    this means...
    manually move to the home position
    reset GRBL
    now jogging should work. check that all motion is in the correct direction, X+ moves right, Y+ moves away, Z+ moves UP
    run a simple job, say cutting the outline of the letter B. Easy to tell if it is the wrong way up or left-right swapped.

    once actual motion is correct you can enable limits and test those, then once that is confirmed you can enable homing and test that.
    be very careful with directions and feedrates and hover over that emergeny stop switch at all times (-:
     
    Mark Carew and Alex Chambers like this.
  5. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    hi everyone

    ok ive tried and now im really stuck nothing is working. the motors shudder now but the wiring is correct. i have followed this like like a bible https://docs.openbuilds.com/blackbox/#0welcome.html

    everything is done right the motors are from china though so idk if they are hard wired backwards, if so how can i resolve this...

    as for the program and and firmware. i need a step by step on how to set it up from the very beginning and each value i need to set up my machine. also how does one calculate the exact maximum travel for the machine.

    maybe this will help - i used this to build my x axis with a hi torq stepper motor - US $101.05 6% OFF|2pcs HGH20 HGR20 Linear guide + HGH20CA or HGW20cc + SFU1605 Ball screw High assembly square load ballscrew linear motion module-in Linear Guides from Home Improvement on AliExpress

    this way my y and z axis - US $69.0 |HPV6 Linear module ballscrew sfu1204 with Linear Guides HGR20 HIWIN 100% same size with NEMA23 2.8A 56mm stepper motor-in Linear Guides from Home Improvement on AliExpress

    and these are the stepper motors - US $45.56 |Free shipping 1PCS 23HS10028 4 lead Nema 23 Stepper Motor 57 motor NEMA23 Stepper Motor 2.8A ISO CNC-in Stepper Motor from Home Improvement on AliExpress


    i have an original issue that nobody else has encountered yet to date or is has been resolved but its a very rare issue.

    kind regards
     
  6. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    There's the problem :)

    So they arent going to be our color code! Find your wiring pairs using a multimeter, nothing unique, just still wired wrong :) as mentioned before
     
  7. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Ok so your saying even though the motors have the same 4 colours of the wires they are wrong?..

    Ok so if i use a multi meter how do i go about this exactly. Do i put power on? Or run power from laptop usb? What numbers am i looking for?
     
  8. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Wire colors are not a global standard :) thats per-manufacturer

    Just the Motor in hand, multimeter with resistance mode, find two wires that belong to a pair.
    Put one pair on pins 1 and 2 of connector
    Put other pair on pins 3 and 4 of connector
    Then power on
     
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,781
    Likes Received:
    1,361
    Your stepper motors basically have two coils of wire. Two of your wires are connected to each end of a coil. Use the resistance setting to identify the wires linked to each coil.
     
  10. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Ok i set my meter to resistance and i have worked out red and green. Then blue and yellow. They flicker numbers other combinations dont work. Thanks heaps gents... whats my next step

    Kind regards
     
  11. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    WOOO HOOOOO you gents are legends i got my z axis perfect now to do the others. Thanks. Hopefully its smooth sailing from here. But also i have no experience in cnc or code work. I just know how to use autocad and. I have vetric aspire just dont know how to use it. What is the best way and how can i learn without troubles.

    Kind regards gents
     
  12. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Hi gents
    z and x both work very smoothly. but now my problem is my 2 y axis. Any idea? I been going thru every combination of wires and software settings to work it out. There's only 1 post but its for a different machine but its using the belt system.

    The photo reads left to right axis
    X - Y - Y2 - Z 1577408397992669992903.jpg 1577408397992669992903.jpg 1577408397992669992903.jpg 1577408397992669992903.jpg
     

    Attached Files:

  13. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,781
    Likes Received:
    1,361
    Why have you wired your Y motors differently from your X and Z?
    What happens when they are wired the same?
    Alex.
     
    Peter Van Der Walt likes this.
  14. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    No difference they shudder the same. I opened up each motor to be sure and they were different. So i wired them up correspondingly.
     
  15. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Also the video shows what happens either way the wires are wired up. I spent 90mins doing every combination all 48 of them since they're are 2 motors.
     
  16. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Get some motors from Openbuildspartstore.com (;
    Worth every penny not to have to scratch your head so much :)
    - matches documentation
    - proven to work really well with other components (have you even checked that your motors have the proper inductance etc for good performance)
    - high quality

    University of YouTube never disappoints:
    Vectric Aspire tutorials - YouTube

    And also see Aspires own documentation
    Aspire V9.5 User Manual
     
    Alex Chambers likes this.
  17. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    I got my other motors from the same company for my z and x axis. They now work perfectly. So i would say yes they would be high quality cause they are the same type as the openbuilds one. And same price as well.
    I checked the resistance on them as well like you said before. Thats why i wired them like that. Thats the most rotation i got from them currently. The video shows everything.

    I also piggy backed both motors together from 1 connector so each slot had 2 wires i wanted to see what would happen. Same thing in the video...

    This one is tricky. I may be so basic i dont recognize it. But i dont think its the motors as they still turn. Could it be a setting maybe? Idk. Ill load my settings in the morning

    Thank you for the links i sure will look into them. Cant wait to fix this issue and start cutting.

    Kind regards
     
  18. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Won't go deeper into it (; but ours is custom made for us, so don't trust them to be same at all


    Shuddering in one place is ALWAYS wiring. Either pairs mixed up, or not all wires making good contact throughout (any joints, extensions, etc should be checked too)

    Should only need to test one combination: Find the two wires that make up a coil using multimeter in resistance mode: then make sure the other two is a coil too; AABB onto connector (pictures show where each coil goes too)
     
  19. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Ok ill try again in the morning. Could it be the slave driver pin or something else? Or the motors wired on opposite poles? Are there any photos of your machine build setups ?

    Kind regards
     
  20. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Slave pin and opposite poles won't result in shuddering, as long as thats the symptom, its either wrong coils (instead of wired 1234 for example its 1324) or not all wires making contact, (or worst case faulty motor but more likely wiring )
     
    Alex Chambers likes this.
  21. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1

    Thanks ill try again in morning thanks for the help so far gents

    Kind regards
     
  22. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,781
    Likes Received:
    1,361
    As @Peter Van Der Walt said the random changes of direction are down to a bad connection (usually only one out of four) - often wiring between controller and stepper, but could also be a faulty connection inside the stepper or a break in a coil winding.
    Good luck :thumbsup:
    Alex.
     
  23. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Open circuit would show up nicely on the multimeter in resistance mode (; so go for the engineering approach instead of trial and error (;
    Measure out both coils (on the side nearest the connector going into BlackBox)
     
  24. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,781
    Likes Received:
    1,361
    Hi @Joe Calvaresi, I just read back through the whole thread and noticed that you said that when you checked the coils with your multimeter the numbers "flickered" - that could indicate an intermittent connection - sometimes prodding a connection with the meter probe "improves" a faulty connection.
    Alex.
     
    MaryD likes this.
  25. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Hi gents

    So i wired up the 2 motors differently to see what would happen. 1 works 1 doesnt but they can only do incremental jog. Not continuous jog thats when they shudder. 1577476528819297875746.jpg
     

    Attached Files:

  26. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Thats acceleration (acceleration is too fast, so the motor stalls before it gets up to speed)

    One of two (three) reasons:
    1) Current set too low
    2) Acceleration value set too high (our profile values match our motors - if you loaded our profiles) see gnea/grbl
    3) Motors with incorrect inductance or coil voltage ratings (too high) have very sluggish acceleration and low RPMs. Might need to tune gnea/grbl as well for them then if thats the case (again, these might look like ours, but are they? )

    Video helped a lot. I wouldn't have described that as shuddering, as it starts, then stalls :)
     
    Alex Chambers likes this.
  27. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Ok ive altered that and this is the result in video. I loweres each value to 100. The motors spin in both directions. On each motor while im pushing 1 y axis direction at a time
     

    Attached Files:

  28. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,945
    Likes Received:
    4,297
    Left side one still looks like its wired wrong
    Good luck!
     
  29. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    Its alive its alive
     

    Attached Files:

    Alex Chambers likes this.
  30. Joe Calvaresi

    Builder

    Joined:
    Dec 19, 2019
    Messages:
    16
    Likes Received:
    1
    @Peter Van Der Walt . What does the this mean. The attached motor is y axis and the loose one is my y2 axis the slave one. Why does it like going both directions when i push the Y- button.

    I wired them the same at first, same problem. Then i reversed it like a belt driven machine. Same problem?
    This one is baffling?
    Also does " - " minus symbol mean it goes towards or away from the motor.
    Kind regards
     

    Attached Files:

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