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

    Magnetic filament monitor specs and status

    Scheduled Pinned Locked Moved
    Filament Monitor
    4
    13
    1.7k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      Our magnetic sensor uses a AS5600 encoder and ATTINY44A microcontroller to encode and transmit the data to the Duet. I know we commissioned a second batch of prototypes with revised dimensions, but I'm not sure about their availability. So I'll leave that for Tony to answer. He's busy for a few days, so don't expect an answer immediately.

      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

      metabo7000undefined 3 Replies Last reply Reply Quote 0
      • MGJoshundefined
        MGJosh
        last edited by

        Thanks for the super fast reply, David.

        It's entertaining that I ended up with the same sensor, though now I wonder - are you just reducing the resolution of the AS5600 in the ATTINY44A firmware for simpler processing on the Duet? Or is the encoder actually set to a lower resolution to reduce noise or similar? And are you using the analog output from the sensor, or the I2C (or PWM, or...these sensors have a lot of output options)?

        Good to hear that there's another batch in process - I'll wait for the timing info on that batch, though now that I know my next step of a micro in front of the encoder sending the data pretty much matches the official version, and the sensor is the same, I think I will actually get this implementation fully together for initial testing. I'll probably throw a Arduino Mega on there - massive, massive overkill, but again, what I have on hand...

        Thanks again David - have a good day.

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

          We're using the I2C interface of the AS5600. We drop the lowest 2 bits because they are noisy and we don't need that much precision anyway.

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

            Great, thanks again X) Looks like I get to hack up some firmware.

            1 Reply Last reply Reply Quote 0
            • fmaundefined
              fma
              last edited by

              Nice project! Monitoring the idler wheel is a good idea.

              Frédéric

              1 Reply Last reply Reply Quote 0
              • metabo7000undefined
                metabo7000
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • metabo7000undefined
                  metabo7000 @dc42
                  last edited by metabo7000

                  @dc42 hi!
                  Can you help me?
                  what is the correct pinout and setting fuse bits attiny45/85?

                  // Pin allocations on the ATTINY44A implementation
                  #define PIN_SWITCH PINA
                  const unsigned int PinSwitchBitNum = 2;

                  #define PORT_LED PORTB
                  #define DDR_LED DDRB
                  const unsigned int PortLedRedBitNum = 0;
                  const unsigned int PortLedGreenBitNum = 1;

                  #define PORT_OUT PORTA
                  #define DDR_OUT DDRA
                  const unsigned int PortOutBitNum = 7;

                  #define PIN_PROG PINB
                  const unsigned int PinProgBitNum = 2;

                  Thankyoumain.cpp

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

                    @metabo7000 see line 127 of the main.cpp file.

                    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

                    metabo7000undefined 1 Reply Last reply Reply Quote 0
                    • metabo7000undefined
                      metabo7000 @dc42
                      last edited by

                      @dc42

                      thankyou fuse info!

                      attiny45/85 pinout main.ccp?

                      1 Reply Last reply Reply Quote 0
                      • metabo7000undefined
                        metabo7000 @dc42
                        last edited by

                        @dc42

                        hello!

                        David eltudná e küldeni a teljes Magnetic filament monitor v2 forráskodot abban még látuk a attiny45 config lehetöséget mert a gibhub ezt gyüjti de már nem tudjuk letölteni csak v3..v4!
                        v2 giphub no compiled avr studio v7 😞 link text
                        Nekünk megfelel a filament monitor v2 mert régi firmwert is használunk duet2 alat 2.26 !
                        Köszi!

                        1 Reply Last reply Reply Quote 0
                        • metabo7000undefined
                          metabo7000 @dc42
                          last edited by

                          @dc42
                          github sensor v2 this is no longer the original github patched together!
                          avr studio v7 Snap043.jpg

                          github patched v2
                          main.cpp

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

                            @metabo7000 we switched from attiny45 to attiny44a during the prototyping phase. The firmware has changed a lot since then.

                            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