Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Ernst Blofeld
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 11
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Ernst Blofeld

    • RE: Trouble with micro servos.

      @fcwilt said in Trouble with micro servos.:

      @ernst-blofeld

      The docs for M280:

      M280

      From the docs for M280:

      S values below 544 are treated as angles, and 544 or greater as the pulse width in microseconds.

      Yes! I'd become fixated on using the pulse width. S0 through S180 seem to work as expected.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Trouble with micro servos.

      @dc42 said in Trouble with micro servos.:

      @ernst-blofeld what commands are you sending to move it to the ends of its range?

      M280 P0 S1000
      to send to minimum

      and

      M280 P0 S2000
      to send to maximum

      Experimentally, I can get 180 degrees by using S600 for min and S2400 for max. I don't know what that means. Values below 600 seem to cause it to spin round to the other extreme and values over 2400 seem to be ignored.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Trouble with micro servos.

      @dc42 said in Trouble with micro servos.:

      @ernst-blofeld use:

      M950 S0 C"duex.pwm5"

      Don't invert the pin, and there is no need to specify the frequency.

      Thanks Dave, my servo is now moving, but only 90 degrees between min and max, where I expected 180 degrees. Any ideas on that?

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • Trouble with micro servos.

      I'm trying to run a micro servo from a PWM connection on my Duex 5, but I don't seem to be able to get it to move at all with what I think are the correct settings. I can get some movement if I change the PWM frequency to much higher than it should be, but it never moves to where I think it should.

      The servo is an MG90S. I have tried swapping it (I bought a pack of 3), but no change. It is connected to PWM_5 on my Duex.

      I'm running:

      • Duet 2 WiFi with Duex 5
      • RRF 3.3

      I have separate 5V power connected to the Duex's 5V Aux In and the jumper changed to select this.

      According to the internet, the servo expects a 50Hz PWN frequency, and a 1ms pulse should put it to the minimum position, a 1.5 ms pulse should put it to the middle and a 2ms pulse should put it to the maximum position.

      I think I should configure the servo with:

      M950 S0 C"!duex.pwm5" Q50
      

      and then set its position with, ie:

      M280 P0 S1000
      M280 P0 S1500
      M280 P0 S2000
      

      for the positions mentioned above.

      This does nothing, except turn on the LED next to the heater 7 output (I have nothing connected to any of the duex heaters).

      If I instead do:

      M950 S0 C"!duex.pwm5" Q500
      

      then the position commands do cause movement, just very small amounts, definitely not going to the correct positions.

      Different values of Q give different results, 250 gives some big movements, but I'm fairly sure I shouldn't be changing that number at all.

      Please help me, I have no idea what I'm doing.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      @whosrdaddy said in Duet 2 Wifi, DHCP / DNS questions:

      The problem is that the Duet has no real DNS support other than mDNS.

      Is this a hardware limitation or something that could be fixed in a firmware update?

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      @whosrdaddy said in Duet 2 Wifi, DHCP / DNS questions:

      well the Duet board supports mDns according to this page but it would be better if it would have DNS support built-in (ie register with an existing DNS server).
      Did you try accessing the printer with it's mDNS name (ie <yourprintername>.local)?

      mDNS isn't supported by my Android tablet or the Linux version I'm running at the moment, but both of those machines manage to tell the router what their names are, so either I really don't know what I'm talking about, or something is missing or broken.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      @whosrdaddy said in Duet 2 Wifi, DHCP / DNS questions:

      @Ernst-Blofeld You can always add the names to the hosts file of your local computer (assuming it's windows 10)

      Sure, but I'd prefer to know what I've done wrong - I must have done something wrong because every other device that is connected to this network works correctly.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      @jay_s_uk said in Duet 2 Wifi, DHCP / DNS questions:

      You could configure them with a static IP address using M552.
      Make sure this is out of the range assigned by DHCP

      I have now done this using M587 in a macro to set the IP address. I might not be able to refer to them by name, but at least I can find them.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      @Veti said in Duet 2 Wifi, DHCP / DNS questions:

      @Ernst-Blofeld said in Duet 2 Wifi, DHCP / DNS questions:

      Orange France Flybox 4G router

      this seems to be a tp-link mr200.

      you can install openwrt on it and it becomes a powerful router.

      https://openwrt.org/toh/tp-link/archer-mr200

      Unfortunately it's not mine to do that to.

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • RE: Duet 2 Wifi, DHCP / DNS questions

      I'm going to try that as an interim solution so I can at least find them without jumping through hoops, but any idea what could have happened to their names?

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld
    • Duet 2 Wifi, DHCP / DNS questions

      I have two printers here with Duet 2 Wifi controllers. The router they are connecting to (an Orange France Flybox 4G router) is very limited, with no way to reserve DHCP IP addresses and no way to add entries to its local DNS server.

      When the printers connect to the network they show up in the router's admin with blank IP addresses and their hostnames set to their MAC addresses. nmap from a linux machine on the same network shows the MAC address where the hostname should appear. Other devices connected to the network, such as the linux machine and an Android tablet show up correctly.

      I can connect to the machines through the IP addresses that nmap discovers, but not through their names, presumably because the names are getting lost somewhere. Both printers have an M550 P"name" as the first line in their config.g.

      Any ideas on how I can get these printers properly onto the network?

      posted in Duet Hardware and wiring
      Ernst Blofeldundefined
      Ernst Blofeld