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

    GPIO pins in expansion header?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    2
    876
    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.
    • croadfeldtundefined
      croadfeldt
      last edited by

      General GPIO / PWM pins available?

      I am switching from a RAMPs board to a DuetWifi, have most of the printer related stuff working, minus the bed heater, which I posted about in another thread.

      On the RAMPs I used 3 GPIO PWM pins to drive 3 IRF3708 mosfets which in turn control a string of common anode RGB leds. Would like to use the same setup on my DuetWifi.

      I see the expansion header but it appears those pins are already spoken for. Is it possible to use them for GPIO PWM instead? If so, is there a pinout I can use to map a M42 gcode to?

      If there is not, is it possible to have messages sent out via SPI via gcode? I am looking at some SPI controlled PWM boards from Adafruit that might just be the ticket if GPIO pins are not available.

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

        All the hardware-PWM-capable output pins are assigned to heaters and fans. Currently you can't reassign the heater pins without recompiling the firmware, because the associated PIDs are liable to overwrite anything you write to them. I intend to introduce an M code that would let you specify now many heaters you have, thereby allowing the remaining heater pins to be used as GPIO pins.

        The Duet WiFi expansion boards we are working on will also provide additional PWM channels.

        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
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA