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

    Duet3 6HC + load cell + amp

    Scheduled Pinned Locked Moved
    Accessories and Add-ons
    4
    10
    647
    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.
    • jhalewoodundefined
      jhalewood
      last edited by jhalewood

      Hi,
      I'd like to use a load cell + amp (e.g. the HX711/INA333/ADS1242, any amp will do, it's gonna have low requirements) to have an ongoing measurement of my filament spools' weight so I can see how much I have left.
      I've seen people reference using a load cell for a Z-probe, so I assume it's possible?
      My question is how do I connect it up?
      I can't find anyone who's done it provide actual directions...
      I'd really like to set it up as a sensor (i.e. using the M308 command) so it can be graphed on the DWS temp graph (like you can with filament humidity for example)

      Many thanks for any help with this.

      achrnundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • rjenkinsgbundefined
        rjenkinsgb
        last edited by

        Something like this should do for spool weight measuring; 2KG full scale so about right for a 1Kg spool and supports:
        https://www.amazon.co.uk/Weight-Sensor-Weighing-Arduino-Raspberry-Black/dp/B07G2QVVH3

        Interfacing or display is another matter; I did not know about such as the humidity graph?

        Robert J.

        Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

        jhalewoodundefined 1 Reply Last reply Reply Quote 0
        • achrnundefined
          achrn @jhalewood
          last edited by

          https://forum.duet3d.com/post/241194
          https://forum.duet3d.com/post/253602

          Both have the mechanics of how to do it with a printer that has a Pi in the system. They don't graph, only display a current value.

          I don't think graph will be terribly useful - it will sawtooth its way down all the time a print is running.

          jhalewoodundefined 1 Reply Last reply Reply Quote 0
          • jhalewoodundefined
            jhalewood @rjenkinsgb
            last edited by

            @rjenkinsgb Aye, the hardware is not the issue, it's just interfacing with the duet I need help with

            You can connect a humidity (and temp) sensor for your filament and display values in graph per here: https://duet3d.dozuki.com/Wiki/Connecting_Digital_Humidity_and_Temperature_(DHT)_sensors

            1 Reply Last reply Reply Quote 0
            • jhalewoodundefined
              jhalewood @achrn
              last edited by

              @achrn thanks, they're excellent

              however they both use the pi as the processor

              I was wondering if it's possible to connect directly to the duet

              I may need to end up using the pi, but I'd prefer to use the duet if possible. I should've been more explicit in my question, apologies!

              achrnundefined rjenkinsgbundefined 2 Replies Last reply Reply Quote 0
              • rjenkinsgbundefined
                rjenkinsgb
                last edited by rjenkinsgb

                It looks like the M308 "linear-analog" option may do the trick?

                That has scaling values in the setup to calibrate the displayed range, which presumably would be the empty spool and full spool output levels from the load cell amp to suit 0 and 1000 grams, or 0-100% depending how it works.

                On the 6HC, it appears the inputs on IO3 to IO7 inclusive are analog capable, so should be usable in this manner?

                https://duet3d.dozuki.com/Wiki/M308

                https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Hardware_Overview#Section_IO

                Robert J.

                Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

                1 Reply Last reply Reply Quote 0
                • achrnundefined
                  achrn @jhalewood
                  last edited by

                  @jhalewood I haven't seen anyone publish about using an analogue amp on a bridge load cell to feed an ananlogue signal direct to the Duet.
                  You could be first! Blaze a trail!

                  I agree the INA333 looks plausible for that (from a quick glance at the data sheet).

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

                    @jhalewood we've done something similar before. In outline:

                    • Use an op amp in the voltage follower configuration, fed from the thermistor reference voltage Vref, to power the load cell bridge.
                    • Use a INA333 to amplify the output from the load cell.
                    • Use an op amp in the non-inverting configuration to buffer the output from the INA333 and to provide additional amplification
                    • Feed the output of that op amp into a Duet thermistor input
                    • Configure it as a linear analog sensor in M308.

                    If using Duet 3 then you can gain a little extra accuracy by connecting the reference terminal of the INA333 to Vssa instead of to ground.

                    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
                    • rjenkinsgbundefined
                      rjenkinsgb @jhalewood
                      last edited by

                      @jhalewood
                      If you are in the UK, one of these may be suitable, to save some construction?

                      StrainAmp_V1_small.jpg

                      I did a small batch to test a concept in a robotics project, but I don't need them all.

                      They have an AD623 instrumentation amp for the load cell input followed by a MAX44248 precision opamp in non-inverting configuration for extra gain & gain trimming.

                      The positions for conventional resistors set the AD623 gain and the gain range of the second stage.

                      The reference for both stages is from one of the connections.

                      Robert J.

                      Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

                      jhalewoodundefined 1 Reply Last reply Reply Quote 0
                      • jhalewoodundefined
                        jhalewood @rjenkinsgb
                        last edited by

                        @rjenkinsgb Thanks mate, very kind, but I'm not in UK
                        One of your colonies...

                        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