Simple GPIO usage

  • Hi everyone,

    I am trying to solve a very simple problem.
    I would like to switch an output Pin of the DuetWifi 2 from LOW to HIGH when the Nozzle reached a certain temperature.
    I do not know how to implement this into my config.g file.

    I just know you will need the M42 command, but do not know how to use it.

    Can anyone help me?

  • what firmware version are you running?

  • This is the answer from M115 with YAT via USB.

    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.03beta3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2019-03-25b6<LF>ok<LF>

  • If you want it to turn on at a set temperature, you could us a fan output instead and get it to turn on at the temperature you want.
    but it may be time to look at upgrading to RRF3 as this allows the use of conditional gcode and queries can be ran all the time using the daemon.g file. This is how I control some LED's to automatically come on when the printer is doing something.

  • I want to use this output for an Arduino pro mini.
    I already connected the fan out to the Arduino, but the Arduino does not recognize the input, it does not matter if I use analog in or pulse in (PWM).
    Also it wont recognize the input as a normal bool in.

    That is the reason why I want to use a GPIO.

Log in to reply