DUET 3 +RRF3 : Servo ?



  • Hi,
    my config: Duet 3 6HC with RRF3 + exp 3HC

    I try to implement a Servo, I need it to tilt my dual extruder.

    I never reach with a code like this one (i try on motherborad, and also on exp board, several IO, several 5V/GND ...):
    anyone implement a Servo on this configuration ?
    Thanks

    ;Servo				;not working for the moment
    ;M950 S0 C"io7.out"		;not working for the moment
    ;M280 P0 S1500 I1		;not working for the moment
    


  • First a basic question: I assume you've uncommented those commands at some point...

    Let's verify wiring: You've connected a "hobby" servo to the connector circled below, correct? AND, you've re-ordered the wires to match the Duet? A "standard" hobby servo's connector has "Ground, +5V, Signal", in that order. The Duet has "Ground, Signal, +5V". Therefore, the wires must be removed from the plastic shell of the servo connector and re-ordered. Or otherwise changed.

    What happens? Does the servo ever move at all? Any Errors on DWC console?

    0b9e5814-1eb5-42bb-ae95-aee7cab11af4-image.png
    88b5ae86-0199-4406-a371-97ac632a8324-image.png



  • And, yes, I just verified the signal looks correct on io7.out, via an oscilloscope. Using the exact commands you show above.

    It should work.


  • administrators

    @steevebecker said in DUET 3 +RRF3 : Servo ?:

    Hi,
    my config: Duet 3 6HC with RRF3 + exp 3HC

    I try to implement a Servo, I need it to tilt my dual extruder.

    I never reach with a code like this one (i try on motherborad, and also on exp board, several IO, several 5V/GND ...):
    anyone implement a Servo on this configuration ?
    Thanks

    ;Servo				;not working for the moment
    ;M950 S0 C"io7.out"		;not working for the moment
    ;M280 P0 S1500 I1		;not working for the moment
    

    Which firmware version are you running?

    That command should work, although the I1 parameter on the M280 command will be ignored.



  • @Danal Thanks for tips, and Yes it was uncommented during tests :). I've done what you explain, wiring was the same. No error on DWC, no error on the console too. We check with an oscillo (i'm not electronician...) but no signal was detected on this io when M280 command has been sent. M280 passed but no effect.

    @dc42 the version indicates with M115 :

    • FIRMWARE_NAME: RepRapFirmware for Duet 3 v0.6
    • FIRMWARE_VERSION: 3.0alpha
    • ELECTRONICS: Unidentified
    • FIRMWARE_DATE: 2019-09-05b2


  • Hmmm.... I am running the latest Beta. Worth a try.

    It is here: https://github.com/dc42/RepRapFirmware/releases



  • @Danal i'm doing this, but i got some issue 🙂 I 've posted another topic about it : here ==> from alpha to beta 11



  • Whaoo
    after updating the DSF and the RRF3 to beta (see post alfa to beta11) it Works !
    Servo is moving well on the motherboard (0.)

    but the goal is to use it on the expansion board (1.) and on it it's not working
    this is the code and the error

    ;Servo
    M950 S0 C"1.io5.out"                     		
    M280 P0 S1200 I1  
    
    Message Error: M950: Remote ports not yet supported by this command 
    

    Hummm strange ...
    2 questions :

    • How to check the version of the firmware on the expansion board 3HC ?
    • How to update the firmware the expansion board 3HC ?

  • administrators

    @steevebecker said in DUET 3 +RRF3 : Servo ?:

    How to check the version of the firmware on the expansion board 3HC ?

    Send M115 Bn where "n" is the address of your expansion board

    How to update the firmware the expansion board 3HC ?

    Send M997 Bn where "n" is the address of your expansion board. The expansion firmware must be available (in the sys directory).

    Note that not all features are enabled for expansion boards yet:

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



  • @T3P3Tony thanks for the link about limitation, i discover it.

    so clear: M950 cannot yet be used to configure a GPIO or servo port on an expansion board



  • @T3P3Tony There are a couple of other things not mentioned in that link - i.e. M303 heater tuning and M581 not yet implemented on expansion boards. I've added a comment to that effect.
    Ohh and a warning about thermostatic fans randomly "blipping" into life.


  • administrators

    @steevebecker not yet


Log in to reply