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

Help with setting up motors.

Scheduled Pinned Locked Moved
Duet Hardware and wiring
7
26
3.0k
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.
  • undefined
    Dougal1957
    last edited by Dougal1957 6 Sept 2018, 14:56 9 Jun 2018, 14:52

    @saltypetz said in Help with setting up motors.:

    M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
    M201 X500 Y20 Z250 E250 ; Set accelerations (mm/s^2)
    M906 X1200 Y1200 Z1200 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent

    Ok these 3 lines are what basically controls the motors and for yours it think you should increase the values in the M203 to something like
    M203 X18000 Y18000 Z300
    you accelerations look way of as well but I don't know the TEVO but the Y value of the M201 looks very strange to me and I would have expected it to be similar to your X value and I would suggest that your currents for your motors are a bit high i would try with

    M906 X1000 Y1000 Z1000 E450 I30

    Also your steps/mm seem a bit strange what toothed pulleys and belt does it use?

    HTH at least a little bit (it looks to me like you have just taken the Steps/mm from your old controller which was probably set to 32 micro step mode so I think you need to halve the values in your M92 line although having looked at the extruder manual I think it needs to be increased for E0) According to the extruder data I think 1168 is the correct value for E0

    1 Reply Last reply Reply Quote 0
    • undefined
      Dougal1957
      last edited by 9 Jun 2018, 14:54

      each motor is rated at 1.5 amps except the extruder which is 0.67 hence my figures
      all are 1.8 deg motors AFAICT

      1 Reply Last reply Reply Quote 0
      • undefined
        Saltypetz
        last edited by 9 Jun 2018, 15:01

        Everyone thank you for the help. Hopefully I can get it going today. I checked the board and it is a v1.03 I don't understand why this doesn't work but we got it working now.
        M307 H3 A-1 C-1 D-1
        M558 P9 H5 F100 T2000
        G31 X0 Y0 Z0 P25

        undefined 1 Reply Last reply 9 Jun 2018, 15:02 Reply Quote 0
        • undefined
          Dougal1957 @Saltypetz
          last edited by 9 Jun 2018, 15:02

          @saltypetz said in Help with setting up motors.:

          Everyone thank you for the help. Hopefully I can get it going today. I checked the board and it is a v1.03 I don't understand why this doesn't work but we got it working now.
          M307 H3 A-1 C-1 D-1
          M558 P9 H5 F100 T2000
          G31 X0 Y0 Z0 P25

          Those lines have no baring on the issue you have been complaining about (Slow motor speeds) so what have you done to fix it can you post your new revised Config.G for others to find and see?

          1 Reply Last reply Reply Quote 0
          • undefined
            Saltypetz
            last edited by 9 Jun 2018, 15:13

            It has two lead screws with a belt and one motor.

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by dc42 6 Sept 2018, 16:02 9 Jun 2018, 16:00

              @saltypetz said in Help with setting up motors.:

              M92 X157.64 Y157.64 Z5120 E301.54 ; Set steps per mm

              As @Dougal1957 said, those are unusual steps/mm values for X and Y - but not impossible.

              M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)

              Those values are OK, however I suggest you reduce the X and Y values to 600 until you know that higher is OK for your machine.

              M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)

              Those are conservative values and could probably be increased, but I suggest you leave them alone for now.

              M201 X500 Y20 Z250 E250 ; Set accelerations (mm/s^2)

              The Y value is too low, try 500. The Z value may be too high, I suggest 100 for now, maybe increase later when everything is working.

              M906 X1200 Y1200 Z1200 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent

              The extruder motor has a rated current of 0.67A, so use E400 or E500 in that line. Otherwise OK. If the XYZ motors get too warm, reduce the currents from 1200 to 1100 or 1000.

              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
              • undefined
                Saltypetz
                last edited by Saltypetz 6 Sept 2018, 19:25 9 Jun 2018, 19:19

                As soon as I try to update the motor settings it doesn't start in the middle hot it goes to the far right corner. Also when I tell it to mesh it starts at about 100mm in from the front of the bed. May I did something wrong but before updating the speed it worked perfect. Is there somewhere I can read so I understand about the motors setup.

                Here is the Config file.

                ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
                ; executed by the firmware on start-up
                ;
                ; generated by RepRapFirmware Configuration Tool on Sat Mar 03 2018 14:29:05 GMT-0500 (Eastern Standard Time)

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

                ; Network
                M550 P"Black Widow" ; Set machine name
                M552 S1 ; Enable network
                M587 S"NETWORKNAMEHERE" P"NETWORKPASSWORDHERE" ; Configure access point. You can delete this line once connected
                M586 P0 S1 ; Enable HTTP
                M586 P1 S0 ; Disable FTP
                M586 P2 S0 ; Disable Telnet

                ; Drives
                M569 P0 S1 ; Drive 0 goes forwards X
                M569 P1 S0 ; Drive 1 goes backwards Y
                M569 P2 S1 ; Drive 2 goes backwards Z
                M569 P3 S1 ; Drive 3 goes forwards E

                M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
                M92 X157.64 Y157.64 Z5120 E301.54 ; Set steps per mm for 16x microstepping
                M566 X600 Y600 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 E1000 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 X335 Y260 Z250 S0 ; Set axis maxima

                ; Endstops
                M574 X1 Y1 S1 ; Set active low endstops
                M574 Z1 S1 ; Set endstops controlled by probe
                M557 X0:335 Y45:260 S20 ; Define mesh grid

                ; Heaters
                M301 H0 S1.00 P32.6 I1.360 D79.4 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
                M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
                M143 H0 S80 ; Set temperature limit for heater 0 to 80C
                M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
                M143 H1 S240 ; Set temperature limit for heater 1 to 220C

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

                ; Tools
                M563 P0 D0 H1 F2 ; 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

                M307 H7 A-1 C-1 D-1 ;
                M558 P5 X0 Y0 Z1 H9 F200 T6000
                G31 X-48.8 Y-18.2 Z0.445 P25

                ; Miscellaneous
                M501
                T0 ; Select first tool

                1 Reply Last reply Reply Quote 0
                • undefined
                  Saltypetz
                  last edited by Saltypetz 6 Sept 2018, 21:29 9 Jun 2018, 21:17

                  I have been messing around with the motor setting. When I change this line the beg starts about 100mm in from the front and about 30mm from the left. M92 X157.64 Y157.64 Z5120 E301.54 when meshing the bed. Also if I do Z home it goes to the far right corner not the middle of the bed.

                  Just from messing around with it this works perfect so far.
                  M92 X90.64 Y90.64 Z5120 E456 ; Set steps per mm

                  undefined 1 Reply Last reply 9 Jun 2018, 23:17 Reply Quote 0
                  • undefined
                    T3P3Tony administrators @Saltypetz
                    last edited by 9 Jun 2018, 23:17

                    @saltypetz generally steps/mm for motion axis should be calculated, not determined by experiment.

                    Prusa has a good calculator:

                    for belt
                    https://www.prusaprinters.org/calculator/#stepspermmbelt

                    Or leadscrews
                    https://www.prusaprinters.org/calculator/#stepspermmlead

                    www.duet3d.com

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Saltypetz
                      last edited by Saltypetz 6 Oct 2018, 14:25 10 Jun 2018, 12:44

                      Is there more information that I can read so I have a better understanding what all the numbers are for.
                      I went on the calculator but I want to have better understanding of all the settings. I want to understand what they all do. If there is a link to something I can read can you please post the link.

                      Thank you, everyone for the help.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Saltypetz
                        last edited by 11 Jun 2018, 13:18

                        Could the belt be the problem making it go across the bed. I am looking for information on it now.
                        Here is the link to the belt. https://tevo3dprinterstore.com/products/10meter-gt2-6mm-open-timing-belt

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Saltypetz
                          last edited by 13 Jun 2018, 19:05

                          Here are the setting for micron cobra motors.

                          M92 E1600; Set steps per mm for 16x microstepping
                          M566 E120; Set maximum instantaneous speed changes (mm/min)
                          M203 E1200; Set maximum speeds (mm/min)
                          M201 E600; Set accelerations (mm/s^2)
                          M906 E800 I30; Set motor currents (mA) and motor idle factor in per cent

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