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

    A few questions regarding switching to Duet

    Scheduled Pinned Locked Moved
    General Discussion
    5
    48
    5.2k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      It's possible to damage the motor drivers by connecting the motors to them incorrectly. I did that one, although more usually the motors just vibrate if you do that. So I suggest you check the pairing of the wires to make sure you connect them correctly. See the post by Phaedrux.

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • sibluesundefined
        siblues
        last edited by siblues

        I am currently reading up on quite a few things all at once so it is a bit difficult to absorb everything.I haven most of the wiring done I just need to crimp all of the ferrules and slide them into the plug shells.

        The lighting I am deciding on how and what to use at the moment but that isn't very high on my to do list so it can wait.

        I do need some advice on using a relay to power on and off my printer.I have a few Sainsmart 5v relays laying around and I was wondering what you guys recommend using for turning on and off a Meanwell psu?The specs on the relays I have are

        5V 2-Channel Relay interface board, and each one needs 15-20mA Driver Current
        Equipped with high-current relay, AC250V 10A ; DC30V 10A
        Standard interface that can be controlled directly by microcontroller (Arduino , 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL logic)
        Indication LED’s for Relay output status
        It activates on low level.

        I don't know if I should make multiple threads or keep this one going to keep everything together and not clutter the forum with tons of random threads?

        Phaedruxundefined dc42undefined 2 Replies Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @siblues
          last edited by

          @siblues said in A few questions regarding switching to Duet:

          I don't know if I should make multiple threads or keep this one going to keep everything together and not clutter the forum with tons of random threads?

          A new focused thread with a new title might get the attention of someone who knows the answer to what you're asking.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @siblues
            last edited by

            @siblues said in A few questions regarding switching to Duet:

            5V 2-Channel Relay interface board, and each one needs 15-20mA Driver Current
            Equipped with high-current relay, AC250V 10A ; DC30V 10A
            Standard interface that can be controlled directly by microcontroller (Arduino , 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL logic)
            Indication LED’s for Relay output status
            It activates on low level.

            That sounds like a standard relay module with a driver and an optically-isolated input. If it is then it is suitable.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • sibluesundefined
              siblues
              last edited by siblues

              I have everything wired up and sort of working.The motors and endstops are all working fine except for the extruder that hasn't been tested yet.I am working on the BLTouch right now.I have a few questions regarding setting it up.What do I need to do after using the RepRap configuration tool.I am assuming the pins the sensor is hooked up to are set with the configurator when the BLTouch is chosen and assuming you use the wiring diagram from the documentation.I am guessing that I need to manually enter the lines to deploy and retract the probe along with clearing the alarm on the sensor?I also am guessing that I need to set up a user defined macro to have a button for bed compensation/leveling.Thanks

              Here is my deploy and retract probe files

              ; deployprobe.g
              ; called to deploy a physical Z probe
              ;
              ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
              M280 P9 S10 I1

              ; retractprobe.g
              ; called to retract a physical Z probe
              ;
              ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
              M280 P9 S90 I1

              This is the Z Probe section in the config.g files

              ; Z-Probe
              M307 H8 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
              M558 P9 H5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
              G31 P25 X0 Y0 Z5 ; Set Z probe trigger value, offset and trigger height
              M557 X15:205 Y15:205 S20 ; Define mesh grid

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by Phaedrux

                https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_BLTouch

                This should get you going on the BLTouch.

                https://duet3d.dozuki.com/Wiki/BLTouch_Troubleshooting

                And if you have issues.

                For bed compensation and leveling you can use bed.g. That gets called by G32. If you have a paneldue there is also a button on the screen that will call it. It can also be ran from the DWC.

                Z-Bot CoreXY Build | Thingiverse Profile

                sibluesundefined 1 Reply Last reply Reply Quote 0
                • sibluesundefined
                  siblues @Phaedrux
                  last edited by

                  @phaedrux Thanks for that I will try to get that sorted out this weekend.I am very new to all of this so when setting up a cartesian style printer where the extruder's home position is in the lower left hand corner and the actual nozzle sits below and to the left of the actual bed how or what offsets need to be changed?I am assuming the simplest way of setting those up would be to accurately measure them and entering them as a negative into wherever the offsets are set?

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Probably best to start with this.

                    https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      Oh and this will help a lot with getting the bed and axis travel limits setup.

                      https://drmrehorst.blogspot.com/2017/08/setting-up-3d-printers-origin.html?m=1

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • sibluesundefined
                        siblues
                        last edited by

                        I am Following the documentation to set up my machine and Duet but when using a BlTouch is it recommended to not use a Zmin endstop? I am asking because I have both wired up at the moment and I figured I would ask if it is common practice to eliminate the Zmin endstop when using the BlTouch sensor?

                        Phaedruxundefined dc42undefined 2 Replies Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator @siblues
                          last edited by

                          @siblues the BLTouch would become your z min endstop. Your homing files would need to be changed to use a G30 probe command instead of a G1 S1 Z move to trigger the endstop switch.

                          You could move the endstop switch to z max. Sometimes it's handy to be able to home to z max as well.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • sibluesundefined
                            siblues
                            last edited by siblues

                            I have a cartesian style printer and setting it up at z max would be problematic when it comes to wiring it up.I am having a bit of a hard time setting up the bltouch and it is due to my lack of experience in using any type of firmware.I ran into the same problem when trying to set up my Smoothie and I couldn't get it to work for the life of me.I can care less if I have a zmin endstop or not as long as everything works as it should.I already have the zmin wired up but I can remove it if necessary to clean things up a bit. The problem I have is it isn't as simple as using the configurator to set up the machine and then copying and pasting the relevant lines of code for the bltouch sensor into the correct folders is it?

                            Which way would you recommend for an absolute beginner?The simplest route would be a better option for me at the moment.

                            Phaedruxundefined 1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator @siblues
                              last edited by

                              @siblues can you post your current config.g and homing files? Also the deployprobe and retractprobe files.

                              What firm ware version are you using?

                              I can take a look and see if anything else needs changing.

                              There are 5 wires for the BLTouch. They need to go to the right place and the wires and crimps need to be working obviously. Wiring ends up being the culprit often. A multimeter to check continuity is helpful.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @siblues
                                last edited by dc42

                                @siblues said in A few questions regarding switching to Duet:

                                I am Following the documentation to set up my machine and Duet but when using a BlTouch is it recommended to not use a Zmin endstop? I am asking because I have both wired up at the moment and I figured I would ask if it is common practice to eliminate the Zmin endstop when using the BlTouch sensor?

                                It's entirely up to you whether you home Z using the Z probe or using an endstop switch. Set up the homing files according to your choice. See https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter#Section_Homing_Z.

                                Having the option to home to Z max can be useful if you want to be able to resume a print after a power failure.

                                Duet WiFi hardware designer and firmware engineer
                                Please do not ask me for Duet support via PM or email, use the forum
                                http://www.escher3d.com, https://miscsolutions.wordpress.com

                                1 Reply Last reply Reply Quote 0
                                • sibluesundefined
                                  siblues
                                  last edited by siblues

                                  I have the BlTouch wired up how it is pictured here

                                  firmware version
                                  2.0(RTOS) (2018-06-05b3)

                                  alt text

                                  config.g

                                  ; Configuration file for Duet WiFi (firmware version 1.21)
                                  ; executed by the firmware on start-up
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)

                                  ; General preferences
                                  G90 ; Send absolute coordinates...
                                  M83 ; ...but relative extruder moves

                                  ; Network
                                  M550 PTony's P3 Steel ; Set machine name
                                  M551 ; Set password
                                  M552 S1 ; Enable network
                                  ;*** Access point is configured manually via M587
                                  M586 P0 S1 ; Enable HTTP
                                  M586 P1 S0 ; Disable FTP
                                  M586 P2 S0 ; Disable Telnet

                                  ; Drives
                                  M569 P0 S1 ; Drive 0 goes forwards
                                  M569 P1 S1 ; Drive 1 goes forwards
                                  M569 P2 S0 ; Drive 2 goes forwards
                                  M569 P3 S1 ; Drive 3 goes forwards
                                  M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
                                  M92 X80 Y80 Z400 E420 ; Set steps per mm
                                  M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
                                  M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
                                  M201 X500 Y20 Z250 E250 ; Set accelerations (mm/s^2)
                                  M906 X1200 Y1200 Z1200 E1200 I30 ; Set motor currents (mA) and motor idle factor in per cent
                                  M84 S30 ; Set idle timeout

                                  ; Axis Limits
                                  M208 X0 Y0 Z0 S1 ; Set axis minima
                                  M208 X220 Y220 Z200 S0 ; Set axis maxima

                                  ; Endstops
                                  M574 Y1 Z1 S0 ; Set active low endstops
                                  M574 X1 S1 ; Set active high endstops

                                  ; Z-Probe
                                  M307 H8 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
                                  M558 P9 H5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
                                  G31 P25 X0 Y0 Z5 ; Set Z probe trigger value, offset and trigger height
                                  M557 X15:205 Y15:205 S20 ; Define mesh grid

                                  ; Heaters
                                  M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
                                  M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
                                  M143 H0 S120 ; Set temperature limit for heater 0 to 120C
                                  M305 P1 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1
                                  M143 H1 S290 ; Set temperature limit for heater 1 to 290C

                                  ; Fans
                                  M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                                  M106 P1 S1 I0 F500 H0:1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
                                  M106 P2 S1 I0 F500 H0:1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

                                  ; Tools
                                  M563 P0 D0 H1 ; Define tool 0
                                  G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
                                  G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

                                  ; Automatic saving after power loss is not enabled

                                  ; Custom settings are not configured

                                  deploy probe

                                  ; deployprobe.g
                                  ; called to deploy a physical Z probe
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  M280 P7 S10 I1

                                  retract probe

                                  ; retractprobe.g
                                  ; called to retract a physical Z probe
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  M280 P7 S90 I1

                                  home all

                                  ; homeall.g
                                  ; called to home all axes
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  G91 ; relative positioning
                                  G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 X-225 Y-225 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
                                  G1 X5 Y5 F6000 ; go back a few mm
                                  G1 S1 X-225 Y-225 F360 ; move slowly to X and Y axis endstops once more (second pass)
                                  G1 S1 Z-205 F1800 ; move Z down stopping at the endstop
                                  G90 ; absolute positioning
                                  G92 Z0 ; set Z to axis minimum (you may want to adjust this)

                                  ; Uncomment the following lines to lift Z after probing
                                  ;G91 ; relative positioning
                                  ;G1 S2 Z5 F100 ; lift Z relative to current position
                                  ;G90 ; absolute positioning

                                  Home x

                                  ; homex.g
                                  ; called to home the X axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  G91 ; relative positioning
                                  G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 X-225 F1800 ; move quickly to X axis endstop and stop there (first pass)
                                  G1 X5 F6000 ; go back a few mm
                                  G1 S1 X-225 F360 ; move slowly to X axis endstop once more (second pass)
                                  G1 Z-5 F6000 S2 ; lower Z again
                                  G90 ; absolute positioning

                                  home y

                                  ; homey.g
                                  ; called to home the Y axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  G91 ; relative positioning
                                  G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 Y-225 F1800 ; move quickly to Y axis endstop and stop there (first pass)
                                  G1 Y5 F6000 ; go back a few mm
                                  G1 S1 Y-225 F360 ; move slowly to Y axis endstop once more (second pass)
                                  G1 Z-5 F6000 S2 ; lower Z again
                                  G90 ; absolute positioning

                                  home z
                                  ; homez.g
                                  ; called to home the Z axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Tue Oct 30 2018 20:32:38 GMT-0400 (Eastern Daylight Time)
                                  G91 ; relative positioning
                                  G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 Z-205 F1800 ; move Z down until the endstop is triggered
                                  G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

                                  ; Uncomment the following lines to lift Z after probing
                                  ;G91 ; relative positioning
                                  ;G1 S2 Z5 F100 ; lift Z relative to current position
                                  ;G90 ; absolute positioning

                                  1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator
                                    last edited by Phaedrux

                                    If you're wired up the way its shown in that diagram you've got the wrong heater pin unbound. You've got 8 instead of 7 in M307.

                                    Heater pin 3 is also commonly used. Either way, check your config-override.g to see if there is a heater binding being applied after you've removed it.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by

                                      You'll also have to modify your homeall and home z files to use G30 instead of G1 S1 Z-200

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      1 Reply Last reply Reply Quote 0
                                      • sibluesundefined
                                        siblues
                                        last edited by

                                        Thanks for all the help so far Phaedrux

                                        I have no idea where the config-override.g file is.I checked in the settings / system editor where all of the other folders are but it isn't there.

                                        I would like to ask if I am using G30 to replace the entire line G1 S1 Z-200 or just replacing the G1 line with G30 S1 Z-200.

                                        I am guessing the way I am setting it up now with your guidance is to use both the Zmin endstop and BlTouch?

                                        Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator @siblues
                                          last edited by

                                          @siblues You may not have one. It'll only be created if you've used M500 to save a parameter. Similar to how older firmwares use EEprom saving. M501 is used in config.g to load it.

                                          G30 will replace the entire G1 line. It tells the firmware to find z min with the probe.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          1 Reply Last reply Reply Quote 0
                                          • sibluesundefined
                                            siblues
                                            last edited by

                                            Phaedrux after I changed things around how you pointed out how do I go about checking to see if the probe is actually working as it should?

                                            I tried
                                            M280 P7 S10 I1
                                            M280 P7 S90 I1

                                            The BlTouch is going through the self test at startup and then gives a constant on led.

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