Welcome to Our Community

Some features disabled for guests. Register Today.

How to connect spindle to Black Box...

Discussion in 'CNC Mills/Routers' started by Nick clarke, Oct 2, 2019.

  1. Nick clarke

    Builder

    Joined:
    Jun 15, 2019
    Messages:
    61
    Likes Received:
    11
    Hi folks, Since building my Mini Mill I have been switching the spindle on and off manually, but would like to start it when a job starts on the mill. I have a Black Box controller. The picture shows a wire link accross the 'switch' terminals, so I am guessing I will need to connect that to the Black Box. Voltage accross the switch terminals is 27V. Speed is controlled by a potentiometer so I just want the machine to switch the spindle on and off for now. I am guessing I will need to add a g code command to switch on and one to switch off.... Spindle.jpg
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Does the psu have a pwm input option?documentation or data sheet for it?
     
    Bebo995 likes this.
  3. Nick clarke

    Builder

    Joined:
    Jun 15, 2019
    Messages:
    61
    Likes Received:
    11
    Sadly no....
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Then I would recommend: OpenBuilds BlackBox 4X Documentation except instead of the Dewalt, you plug in the Spindle PSU instead (mains side)
    Safest option... (Legally we cannot advise mains wiring your own setups of course)
     
    Nick clarke likes this.
  5. Nick clarke

    Builder

    Joined:
    Jun 15, 2019
    Messages:
    61
    Likes Received:
    11
    I would need one with UK 220 V and UK type mains plugs, unless I bought US plugs to use just with the relay...
     
  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    :) Sorry no mention of UK and most users here are US
    So off the shelf options are going to be limited. There are other posts on here, use the search, where users recommended solutions (I just cant for liability reasons)
     
    Nick clarke likes this.
  7. Nick clarke

    Builder

    Joined:
    Jun 15, 2019
    Messages:
    61
    Likes Received:
    11
  8. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    My spindle was working with the Black Box and the IOT. Now when I begin a job, the spindle starts up then shuts off. The job continues. This is driving me crazy.
    I've double checked my connections to the IOT - Even when I power the Black Box elsewhere this same thing happens.
    I can turn the tool head on and off from Open Builds Control. If its on and I begin a Homing cycle, the head shuts off as well.
     
    #8 Bebo995, May 23, 2020
    Last edited: May 23, 2020
  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Please include the gcode file - so we can check it
     
    Bebo995 likes this.
  10. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    OK...But It happens with every file - Even the Hello World stock file.
     
  11. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    I'm such a noob. Attached is the GECODE file...
    Starts up but as soon as the job gets to its first point, the router is switched off.
    Its a workbee 1510 with lead screws, Black Box and N23 Hi torque steppers.

    [19:00:31] [ G1 F1000 X82.9654 Y111.2032 Z-1.0000 S1 ] ok

    [19:00:31] [ G1 F1000 X83.1733 Y109.9695 Z-1.0000 S1 ] ok

    [19:00:31] [ G1 F1000 X83.5076 Y108.8931 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X83.9664 Y107.9497 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X84.5302 Y107.1222 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X85.1644 Y106.4244 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X85.8638 Y105.8550 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X86.6404 Y105.4011 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X87.5350 Y105.0440 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X88.5473 Y104.7872 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X91.1946 Y104.5565 Z-1.0000 S1 ] ok

    [19:00:32] [ G1 F1000 X92.4876 Y104.6196 Z-1.0000 S1 ] ok

    [19:00:32] [ G0 Z7 ] ok

    [19:00:32] [ G0 X77.8213 Y106.2889 ] ok

    [19:00:33] [ G0 Z0 ] ok

    [19:00:33] [ ALARM ] ALARM: 3 - Reset while in motion. Grbl cannot guarantee position. Lost steps are likely. Re-homing is highly recommended. [ undefined ]

    [19:00:33] [ ] ALARM: 3 - Reset while in motion. Grbl cannot guarantee position. Lost steps are likely. Re-homing is highly recommended. [ undefined ]

    [19:00:33] [ ] ALARM:3

    [19:00:33] [ ] ok

    [19:00:33] [ ] Grbl 1.1g ['$' for help]

    [19:00:33] [ ] [MSG:'$H'|'$X' to unlock]

    [19:00:34] [ $$ ] $0=10 ;Step pulse time, microseconds

    [19:00:34] [ $$ ] $1=255 ;Step idle delay, milliseconds

    [19:00:34] [ $$ ] $2=0 ;Step pulse invert, mask

    [19:00:34] [ $$ ] $3=0 ;Step direction invert, mask

    [19:00:34] [ $$ ] $4=1 ;Invert step enable pin, boolean

    [19:00:34] [ $$ ] $5=0 ;Invert limit pins, boolean

    [19:00:34] [ $$ ] $6=0 ;Invert probe pin, boolean

    [19:00:34] [ $$ ] $10=1 ;Status report options, mask

    [19:00:34] [ $$ ] $11=0.020 ;Junction deviation, millimeters

    [19:00:34] [ $$ ] $12=0.002 ;Arc tolerance, millimeters

    [19:00:34] [ $$ ] $13=0 ;Report in inches, boolean

    [19:00:34] [ $$ ] $20=1 ;Soft limits enable, boolean
     

    Attached Files:

  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Router power cable near low voltage signal cables?
    Router turns on, kicks EMI out into controller and it resets

     
    Bebo995 likes this.
  13. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    I will try that.
     
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Yip, move router power far from other cables. EMI causes issues like these
     
    Bebo995 likes this.
  15. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,017
    Likes Received:
    1,682
    The easiest way I have found is to suspend the cable from the ceiling down to the router/spindle. I have never had EMI issues with it like this, it allows me to plug it into a separate circuit, and it is a clean way to do it.
     
    Bebo995 likes this.
  16. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    I haven't looked at it yet but yes. My router power cable is buried deep in both drag chains. I know I have the psu power, router and low power it signal cables zip tied together from the black box to the Meanwell PSU area and the IOT. So I'm almost positive this will be my issue. If it is, I'm going to run the router power cable through a braided sleeve and then ground both ends. I may add a single earth ground wire through the track to do this. When I snipped the router cable to lengthen it, I pitched the Feret ring located at the plug. Big mistake. I think I'll shield the signal cable too. May use coax wire to do that. I'd hang the wire as a last resort. Or I would simply run the router right off the main and forgo the software option.
     
  17. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,017
    Likes Received:
    1,682
    I like to think that I was "ignorantly smart" when it came to my decision to suspend mine. I had an overhead outlet and by suspending the cable from my Makita router, it would reach all machine positions without ever being in the way and I would not have to cut it to lengthen it. I hadn't even considered the EMI issues I avoided by doing this until I saw people routinely suggesting it.
     
    Peter Van Der Walt likes this.
  18. Bebo995

    Bebo995 New
    Builder

    Joined:
    Apr 3, 2020
    Messages:
    6
    Likes Received:
    0
    Oh I think that was a good idea. I was turning the vac and router from the software and loved it.
     

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