Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    duet 3 6HC Rat Rig Killerbee ( RRF reprapfirmware)

    Scheduled Pinned Locked Moved
    CNC
    3
    9
    695
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bowskiundefined
      Bowski
      last edited by

      Dear community,

      i already checked a few topics and try to find my answers in the documentations. But unfortunatly i did not get all questions answered. So maybe some of you have a similiar setup or has the knowledge to help me through.

      My Setup:

      • Killerbee 1510
      • 4x Nema 23 Motors
      • Duet 3 Mainboard 6HC

      My plan is to run the duet in the standalone mode at first. I have setup the cnc already and now next steps are wiring and the correct setup of the mainboard.

      So, my main questions go to the RRF, i think the steps afterwards with adding some GCodes to bring the firmware to the cnc mode is clear so far.

      1. I have four drivers, 1x X, 2x Y and 1x Z ... should i add an extra driver E0 in the configuration?
      2. The Endstop Pin - i think i will add the same Endstop Pin to both Y-Drivers.
      3. My Endstops have three cables but the connectors on the board five ... where i have to connect and what i have to choose in the configuration drop down?
      4. i think the rest on the page I/O Mapping is not important yet.
      5. On the Motors Page i am completly lost, what are the recommended values for my motors?
      6. The Endstops i think i can find out, but maybe someone with the same setup knows already the correct configuration.

      Maybe i have forgot a few important points, i know that i have a lot of questions. I would be very happy if someone can support me and help me to bring the killerbee to cut 🙂

      If there is a need of more information, please let me know.

      Cheers
      Bowski

      https://configtool.reprapfirmware.org/Start

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Bowski
        last edited by

        @bowski
        1 - add it manually afterwards. the config tool can't handle more than 1 driver per axis
        2 - you can't map one pin more than once so you would use 2 pins, one for each y endstop and map them as C"pin1+pin2"
        3 - I take it they have 5v power, signal and ground. signal goes to IOx.in, the other 2 should be self explanatory. Just configure them as switches, you can change the rest during commissioning.
        4 - probably not
        5 - we need more information about your motors. part number? spec sheet etc
        6 - not sure what you're asking

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        Bowskiundefined 1 Reply Last reply Reply Quote 0
        • Bowskiundefined
          Bowski @jay_s_uk
          last edited by

          @jay_s_uk
          thank you for your quick response!

          1 - ok i will go ahead at first.
          2 - i have only one end stop build in at the moment ... maybe i can connect the same endstop to two sets of pins?
          5 - https://ratrig.com/nema-23-stepper-motor-high-torque-1-8degree-step-345oz-in.html
          6 - type and location ... but you already give this answer 🙂

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @Bowski
            last edited by

            @bowski
            you want to set the motor current to 80% of the max, so go with 2400ma.
            if you only have 1 endstop, thats fine. the firmware will stop all motors on that axis when the endstop is hit

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            Bowskiundefined 2 Replies Last reply Reply Quote 0
            • Bowskiundefined
              Bowski @jay_s_uk
              last edited by

              @jay_s_uk
              great i will go this way!

              1 Reply Last reply Reply Quote 1
              • Bowskiundefined
                Bowski @jay_s_uk
                last edited by

                @jay_s_uk
                I tried to bring the right information in the configuration. On the Motors page i choose, based on some research: Forwards, X16 (on), 3560 Steps, 15 Max. Speed Change, 100 Max. Speed, 500 Acceleration, and 2400 Motor Current. I made this for all three axes the same.

                I am not sure if these parameters are correct. I only could find out that i have a 8mm metric lead screw build in my Rat Rig Killerbee. I did not find the ratio ... so i am not sure if the values are correct at the end. The Speed and Acceleration Values are the default (X and Y) ones.

                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk @Bowski
                  last edited by

                  @bowski if you can work out the pitch then you know how far it moves per revolution. Then you can just calculate the correct steps per mm.
                  For the max speeds etc you can use the EMF calculator to work out the max your motors can go https://www.reprapfirmware.org/emf.html

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  1 Reply Last reply Reply Quote 0
                  • Nightowlundefined
                    Nightowl
                    last edited by Nightowl

                    Hi Bowski,

                    I've got a similar CNC system to yours, although it's a smaller, RatRig KillerBee 1075. I'm also using NEMA23 stepper motors, the MB6HC control board and proximity sensors, rather than mechanical limit switches, with one on both the Y axes, the X axis and the Z axis.

                    Here is my config.g file, but bear in mind this is set up for a milling motor (not yet active) and a relay controlled (on/off) router, which I do use:

                    ; Configuration file
                    M453				; set machine to CNC mode
                    G90                           	; send absolute coordinates...
                    M83                           	; ...but relative extruder moves
                    M550 P"Weeble"			; set printer name
                    
                    ; Network
                    M552 P0.0.0.0 S1              	; enable network and acquire dynamic address via DHCP
                    M586 P0 S1                    	; enable HTTP
                    M586 P1 S0                    	; disable FTP
                    M586 P2 S0                    	; disable Telnet
                    
                    ; Configure Drives
                    M569 P0.0 S0                	; physical drive 0.0 goes backwards - X axis
                    M569 P0.1 S1                  	; physical drive 0.1 goes forwards - Y1 axis
                    M569 P0.2 S1           		; physical drive 0.2 goes forwards - Y2 axis
                    M569 P0.3 S0			; physical drive 0.3 goes backwards - Z axis
                    M584 X0.0 Y0.1:0.2 Z0.3	      	; set drive mapping
                    
                    ; Configure Motors
                    M350 X16 Y16 Z16 I1           	; configure microstepping with interpolation
                    M92 X400 Y400 Z400	   	; set steps per mm
                    M566 X500 Y500 Z500	  	; set maximum instantaneous speed changes (mm/min)
                    M203 X2500 Y2500 Z2500		; set maximum speeds (mm/min)
                    M201 X150 Y150 Z150	  	; set accelerations (mm/s^2)
                    M906 X2400 Y2400 Z 2400		; set motor currents (mA) 80% of maximum (3000mA)
                    M84 S0                        	; Disable motor idle current reduction
                    
                    ; Axis Limits
                    M208 X0 Y0 Z0 S1              	; set axis minima
                    M208 X550 Y787 Z100 S0         	; set axis maxima
                    
                    ; Endstops
                    M574 X2 S1 P"io8.in"          	; configure switch-type (e.g. microswitch) endstop for high end on X via pin io8.in
                    M574 Y2 S1 P"io6.in+io5.in"	; configure switch-type (e.g. microswitch) and dual self-squaring high ends on Y1 via pin io6.in and on Y2 via pin io5.in
                    M574 Z2 S1 P"io2.in"          	; configure switch-type (e.g. microswitch) endstop for high end on Z via pin io2.in
                    
                    ; Z-Probe
                    M558 P0 H5 F120 T6000		; disable Z probe but set dive height, probe speed and travel speed
                    ; M557 X15:215 Y15:195 S20      ; define mesh grid
                    
                    ; Heaters
                    
                    ; Fans
                    M950 F0 C"out8" Q500		; create fan 0 on pin out 8 and set its frequency
                    M106 P0 S0.5 H-1		; set fan 0 value. Thermostatic control is turned off
                    
                    ; Makita and relay configuration
                    M950 R0 C"out1+out7" L0:18000	; enable router relay on out7
                    M563 P0 S"Makita" R0 		; assign spindle 0 to tool 0 and name it Makita
                    T0				; select tool 0
                    
                    ; AMB spindle configuration
                    ; M950 R0 C"vfd" L0:25000 Q1000	; create spindle with index 0
                    ; M563 P0 S"AMB 1400" R0	; create tool 0 with spindle 0 and name it "AMB 1400"
                    ; T0				; select tool 0
                    
                    ; Pause button
                    M950 J9 C"io0.in"		; create input 9 on io0.in
                    M581 P9 T2 S0			; invoke trigger 2 active-to-inactive edge is detected on input 9
                    
                    ; Pause LED
                    M950 P8 C"!io0.out"		; create output/server port 8 on inverse io0.out
                    
                    ; Custom settings are not defined
                    
                    ; Variables definition
                    global savedSpindleSpeed = 0
                    global PausePress = false
                    
                    ; Miscellaneous
                    M564 S1 H1						; Disable jog commands when not homed
                    M911 S23 R23.5 P"M98 P""SaveSpindleSpeed.g""M913 X0 Y0"	; set voltage thresholds and actions to run on power loss
                    

                    I hope this will give you something to start from.

                    EDIT: Just be aware the RRF configuator asks for axis maximum instantaneous speed changes and maximum speeds in mm/second, but the config.g file shows these as mm/minute.
                    Also, you will (obviously) need to change these commands:

                    ; Axis Limits
                    M208 X0 Y0 Z0 S1              	; set axis minima
                    M208 X550 Y787 Z100 S0         	; set axis maxima
                    

                    ...to suit your machine's sizing.

                    Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                    I'm still on my learning curve, so take everything I say with caution!

                    RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                    Bowskiundefined 1 Reply Last reply Reply Quote 0
                    • Bowskiundefined
                      Bowski @Nightowl
                      last edited by

                      @jay_s_uk thanks for this great link.

                      @nightowl after solving some other issues I made my own configuration with RRF and compared it with your config. Now i made the upload and have to wait until i am in front of my machine.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA