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

    Support for AS5311 High Resolution Linear Encoder

    Scheduled Pinned Locked Moved
    CNC
    6
    22
    1.1k
    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.
    • Guusundefined
      Guus @droftarts
      last edited by

      @droftarts

      I made a mistake. The steppers for Z and X are Nema 17. So the "Duet3D Magnetic Encoder" will fit.

      Only the stepper for Z is Nema 10. I will make an adapter for the "Duet3D Magnetic Encoder" and try to get it working.

      The steppers have only 4 wires and were directly connected to stepper drivers. No SPI or anything else.

      1 Reply Last reply Reply Quote 0
      • Guusundefined
        Guus @dc42
        last edited by Guus

        @dc42 I decided not to use the Linear encoder for the time being. I will install end stops. Thanks for the answers.

        HHmm. Maybee the linear encoders are only used as end stops.

        Question: Can I use the PWM signal from the AR5311 as end-stop signals in RRF?AS5311-B.jpeg

        Guusundefined T3P3Tonyundefined 3 Replies Last reply Reply Quote 1
        • Guusundefined
          Guus @Guus
          last edited by

          @Guus The processing board and the driver board where not that complex. I don't see it being used with closed-loop steppers.Old and new cntroller.jpeg

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • Guusundefined
            Guus @Guus
            last edited by

            @Guus These are the steppers. Stepper X.jpeg atv the X axis. Stepper Y.jpeg at the two Y steppers and Stepper Z.jpeg at the Z stepper.

            dc42undefined 1 Reply Last reply Reply Quote 0
            • T3P3Tonyundefined
              T3P3Tony administrators @Guus
              last edited by T3P3Tony

              @Guus said in Support for AS5311 High Resolution Linear Encoder:

              Can I use the PWM signal from the AR5311 as end-stop signals in RRF?

              No, but those encoder have an Index output, if that index pulse is at the right point on the axis it might be possible to use that. See DC42's response below.

              www.duet3d.com

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

                @Guus the index pulse is generated once every pole pair (see page 10 of the datasheet), so it's not much use as an endstop. I guess you could use it to detect the passing of a magnet, but a Hall effect device would do that more simply.

                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
                • droftartsundefined
                  droftarts administrators @Guus
                  last edited by

                  @Guus The controller board is interesting. It looks like it has an ARM MCU, and the encoder plugs in directly to that. The stepper drivers are standard 'stepstick' plug-in modules, and are probably Allegro A4988 drivers. I'd guess the firmware reads the motor position from the encoder, and maybe adjusts the position, but this isn't quite closed loop, as it's not taking the motor commutation into account, which allows for accurate positioning. The drivers on the Mini 5+, even though in open loop mode, will be nicer!

                  Interesting that there are 5 drivers on the motor board. I guess it uses three for X, Y and Z. Does it use the driver with 8 output pins for Y? What does it use the other drivers for? I did see it comes with other tools, eg paste dispenser and pick-and-place toolhead, so I assume those.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  Guusundefined 1 Reply Last reply Reply Quote 0
                  • Guusundefined
                    Guus @droftarts
                    last edited by Guus

                    @droftarts

                    Here are more photo's. This will explain many questions very fast.

                    The boards;

                    MCU board front side
                    MCU board front side.jpeg

                    MCU board rear side
                    MCU board back side.jpeg

                    Driver board front side with ET4988 chips.
                    Driver board front side.jpeg

                    Driver board rear
                    Driver board backside.jpeg

                    Bottom with Duet Mini 5. You can see 2 tubes with compressed air and a vacuum pump.
                    Bottom with Mini 5+.jpeg

                    Solder paste head
                    PnP head.jpeg

                    PnP head The 5the driver is for the motor for positioning
                    Solder paste head.jpeg

                    Mill and drill head
                    Mill and Drill head.jpeg

                    This was sold in 2016. It is really not badly designed. But I could not work with the software and never used this machine. Now have to mill small microstrip antennas. And that requires a lot of testing and milling. So this machine would speed up my development time for antennas a lot.

                    droftartsundefined Guusundefined 2 Replies Last reply Reply Quote 1
                    • droftartsundefined
                      droftarts administrators @Guus
                      last edited by

                      @Guus Interesting! As it has an STM32F407, you might be able to run RepRapFirmware on it via the STM port of the firmware: https://teamgloomy.github.io/.

                      @jay_s_uk might know if it would work, though it may take some effort to get it working, because you would have to define what the pins do. And the linear encoders would still not be supported in firmware.

                      And you have a Mini 5+ now, so probably not much point.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                      • jay_s_ukundefined
                        jay_s_uk @droftarts
                        last edited by

                        @droftarts it won't run i'm afraid as it only has 512kb flash. not enough to fit RRF into (we're at about 730kb without the bootloader (another 32kb))

                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                        1 Reply Last reply Reply Quote 1
                        • Guusundefined
                          Guus @Guus
                          last edited by Guus

                          @Guus

                          @droftarts said in Support for AS5311 High Resolution Linear Encoder:

                          @Guus The controller board is interesting. It looks like it has an ARM MCU, and the encoder plugs in directly to that. The stepper drivers are standard 'stepstick' plug-in modules, and are probably Allegro A4988 drivers. I'd guess the firmware reads the motor position from the encoder, and maybe adjusts the position, but this isn't quite closed loop, as it's not taking the motor commutation into account, which allows for accurate positioning. The drivers on the Mini 5+, even though in open loop mode, will be nicer!

                          Interesting that there are 5 drivers on the motor board. I guess it uses three for X, Y and Z. Does it use the driver with 8 output pins for Y? What does it use the other drivers for? I did see it comes with other tools, eg paste dispenser and pick-and-place toolhead, so I assume those.

                          Ian

                          There must have been many problems with this early design of the machine. The manufacturer panicked and stopped the production and closed down his company.

                          By installing a Duet 3 mini 5+ in this machine I have the latest and greatest controller and support!!!!! Thanks!!!!!

                          I won't be using the linear encoder for the time being. I will install 3 end stops on the machine. And I will install 4 Duet 3 Expansion 1HCL boards and 4 Duet 3 magnetic encoders. This way I will have a closed loop. The machine has robust spindles and I think the linear encoders are no longer necessary. So no new c code is needed.

                          If this setup is not accurate enough, I will try to figure out how to add the linear encoders to the machine.

                          Guus

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