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

    Load cell data acquisition with Duet 3 6HC

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    13
    1.0k
    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.
    • Omicletteundefined
      Omiclette @dc42
      last edited by

      @dc42 To modify the firmware, are the instructions of the following link the easiest way to do the modifications (changing the sample frequency to 1000Hz on a specific IO pin)? I don't have a lot of background in coding, I am trying to figure out how much work it would be to learn how to modify the firmware. https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware

      Thanks
      Olivier

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

        @omiclette whether you modify the main board firmware or the SAMMYC21 firmware, I think the easiest approach will be to use the existing accelerometer code to do the data collection. It's designed to handle data rates in excess of 1000 samples/sec, whereas the interface used for temperature sensors is only designed to handle slow data rates.

        If you modify the main board firmware then the code you need to change is mostly in function AccelerometerTaskCode at https://forum.duet3d.com/topic/25232/phi-open-source-wi-fi-ethernet-rrf-3d-printer-controller. You would also need to attach a callback function to the ADC input you use to read the load cell.

        Do you work for a commercial organisation? If so then if you don't have the required skills, perhaps your organisation would pay for Duet3D to implement this for you.

        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

        Omicletteundefined 2 Replies Last reply Reply Quote 0
        • Omicletteundefined
          Omiclette @dc42
          last edited by

          @dc42 Thanks for your reply, I am a master student in mechanical engineering and if it is not too complicated I would like to do this modification myself. Otherwise, I will ask my superior if we can pay for the firmware modification. Could you give me the contact at Duet to obtain a quote for this modification?

          Thanks
          Olivier

          1 Reply Last reply Reply Quote 0
          • Omicletteundefined
            Omiclette @dc42
            last edited by

            @dc42 Could you give me the contact at Duet to obtain a quote for this modification?

            Best regards
            Olivier

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

              @omiclette please email info@duet3d.com

              www.duet3d.com

              Omicletteundefined 1 Reply Last reply Reply Quote 0
              • zaptaundefined
                zapta @Omiclette
                last edited by zapta

                @omiclette said in Load cell data acquisition with Duet 3 6HC:

                I will use the load cell for specific short prints (ram extruder) to evaluate the pressure variation during the print.

                Can't this be done by an independent acquisition system? Why does it need to be done on the Duet? Is this because you want to somehow sync between the stepper motor control?

                Also, what pressure sensor and amplifier do you plan to use? Inexpensive ones such as HX711 based will get you up to ~140 samples/sec.

                Omicletteundefined 1 Reply Last reply Reply Quote 0
                • Omicletteundefined
                  Omiclette @T3P3Tony
                  last edited by

                  @t3p3tony Thank you for your reply.

                  1 Reply Last reply Reply Quote 0
                  • Omicletteundefined
                    Omiclette @zapta
                    last edited by

                    @zapta You are right, this could be done with an independant acquisition system, but as you mentionned they would need to be sync together to get accurate data. I will start with a 50lb load cell directly under the piston rod (Omega LCFD-50, AD623 amplifier). We are working on integrating a pressure sensor just before the nozzle, but this will be for a later improvement. My understanding is that the data acquisition board is usually the limiting factor when a high sample frequency is needed, not the amplifier.

                    zaptaundefined 1 Reply Last reply Reply Quote 0
                    • zaptaundefined
                      zapta @Omiclette
                      last edited by zapta

                      @omiclette, in this case may be easier to have a fast external logging system that also logs sync pulses from a duet output. You can generate the sync pulses with gcode or even record step count if you hook to a duet step pulses output.

                      As for amplifier, I used hx711 that is limited to 140 hertz but it seems that you plan to use something faster. Pay attention to the bandwidth of the sensor and amplifier. Max frequency ahoys be high enough.

                      BTW, you can also sync to high speed camera with a led that is driven by duet sync pulses.

                      Edit: for the duet modification, you can ask for loadcell reading and micro step counts. Would make the analysis simpler.

                      Omicletteundefined 1 Reply Last reply Reply Quote 0
                      • Omicletteundefined
                        Omiclette @zapta
                        last edited by

                        @zapta Thanks for your input, I didn't think of taking an output signal from the Duet that would be generated by some gcode, that seems like a good idea especially as I could possibly borrow a NI acquisition board for the duration of my project. I will compare both solutions.

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