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

Non-Duet filament monitor setup?

Scheduled Pinned Locked Moved
Firmware installation
2
4
716
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.
  • undefined
    RGN01
    last edited by 5 Jan 2018, 19:08

    I am upgrading my cartesian printer from RAMPS to a Duet WiFi and all is going well but I have hit a snag with my filament monitors and I'm looking for help, please. I've searched for help and sample code but not been able to find it as unfortunately this page is blank https://duet3d.com/wiki/Duet3d_Filament_Monitor and the M591 text only tells some of the story.

    The sensors I have are my own design and pulse as the filament moves - they are currently working on 5V but the specs for the sensing board says that they can work on 3.3V. I plan to attach them to the extruder endstop inputs. The sensor bords in question are https://www.robotshop.com/en/12-cpr-magnetic-encoder-pair-kit-micro-metal-hpcb-compatible.html#Specifications and I am only using one output per extruder to give simple pulses - I'm not using direction sensing or similar.

    How do I configure the firmware, please? Does anyone have sample code they can share, or can I use the same code as used for the Duet3D filament monitor?

    Thanks.

    Richard

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 5 Jan 2018, 21:05

      RepRapFirmware doesn't yet have support for filament monitors that send pulses. The types it supports are simple present/not-present switches, and the Duet3D filament monitors that send the position of the filament.

      If your coding skills are up to it, you could add the support for your sensor, because the filament monitor code is designed to be extensible. You would need to:

      1. Allocate a new filament monitor type number (P parameter in the M591 command) and reserve it in the GCode wiki at reprapfirmware.org.

      2. Write a new descendent class of class Filament Sensor and implement a constructor and the same public methods that the other filament sensor classes provide.

      3. Extend the Create function in class FilamentSensor to create an instance of your class if it receives your type number.

      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
      • undefined
        RGN01
        last edited by 5 Jan 2018, 22:15

        Thanks, David, but my coding skills are not up to that yet! I'll investigate, though, but suspect that I'll end up having to wait for the Duet version!

        Richard

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 6 Jan 2018, 11:27

          I am in the process of updating the filament monitor support, and I decided to add support for pulse-type filament monitors at the same time. How many pulses per mm of filament does your sensor produce?

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