Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    temperature sensor pin number change

    Firmware developers
    2
    4
    303
    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.
    • go
      go last edited by go

      Hello,

      I tried to change pin slot for DuetWifi According to our PIN numbers on board.

      It does work if I flash it using Sam-Ba.

      It doesn't using GCode if I use M997 S0 after putting newly compiled Duet2CombinedFirmware.bin and iap4e.bin on the SD card.

      By saying it doesn't work it should be displaying 2000C for dismounted thermistor. It displays 112C.

      I compiled and replaced iap4e.bin after changing CoreNG/variants/variants.cpp
      replaced iap4e.bin. Didn't affect the mapping again.

      How does iap4e.bin affect mapping? Which file should I change on In application project?

      Thanks,

      go 1 Reply Last reply Reply Quote 0
      • go
        go @go last edited by go

        @go
        can't post text akismet spam filter blocks it.

        so more detailed file names and variables are below...

        RepRapFirmware/src/DuetNG/Pins_DuetNG.h
        constexpr Pin TEMP_SENSE_PINS[NumThermistorInputs] = { 45, 44, 47, 61, 62, 63, 59, 18 }; // Thermistor pin numbers
        to
        constexpr Pin TEMP_SENSE_PINS[NumThermistorInputs] = { 45, 47, 44, 61, 62, 63, 59, 18 }; // Thermistor pin numbers
        

        Compiled it...

        after compilation works if flash using Sam-Ba and it doesn't if I flash using gcode.

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

          There is no difference between flashing with Bossa or using M997. So I suspect that the binary that M997 is installing is not the one you thought it was.

          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
          • go
            go last edited by go

            @dc42 said in temperature sensor pin number change:

            not the one you thought it was.

            There were two firmwares on the SD card. One for before 1.20 one for 2.0+. Having these both on the SD card causes problems. Now it has resolved.
            Thanks,

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