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

    1LC board "rare" peripheral support

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    10
    509
    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.
    • Marcossfundefined
      Marcossf
      last edited by

      Hi everyone,

      Do you know if it is possible to connect this amplifier for a load cell on a 1LC board?

      71e8cbbf-b734-4c40-a348-76f15b6e02e3-image.png
      https://www.sparkfun.com/products/13879?_ga=2.6962226.169585794.1656408252-1033354680.1649149432

      How? It's needed two addresable data pins and 3.3 to 5V power supply. Maybe it would be possible with IO3 pins (switch)?
      I just need to pass-thru some GPIO from the cell load amplifier connected to 1LC, to mainboard (6HC+Raspberry PI SBC mode) where the pins are occupied by the ribbon cable connecting the two boards.

      At this moment it works attached to a second SBC apart from Duet main board where the readings are analised.

      Marcossfundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
      • Marcossfundefined
        Marcossf @Marcossf
        last edited by

        @dc42 Any hint? Do you think it would be possible.

        Thx!

        Marcossfundefined 1 Reply Last reply Reply Quote 0
        • Marcossfundefined
          Marcossf @Marcossf
          last edited by

          I raise this question again, as we still have this need.

          Our aim is to be able to set up a load cell to measure the thrust/traction exerted by the plunger of a syringe extruder.

          Can you think how to interface it with the 1LC board?

          infiniteloopundefined 1 Reply Last reply Reply Quote 0
          • infiniteloopundefined
            infiniteloop @Marcossf
            last edited by

            @marcossf said in 1LC board "rare" peripheral support:

            I raise this question again, as we still have this need.

            Please search this forum for the two words "strain gauge" - I bet you'll find some hints and ideas. With the alternate term "load cell", I had no obvious matches.

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

              @marcossf said in 1LC board "rare" peripheral support:

              I just need to pass-thru some GPIO from the cell load amplifier connected to 1LC, to mainboard (6HC+Raspberry PI SBC mode) where the pins are occupied by the ribbon cable connecting the two boards.

              if you need to read the loadcell on the Pi and the pins are free (other than being covered by the ribbon cable) then you can connect only the required pins between the Duet and the Pi.

              The pins is use are shown here:
              https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6HC_Hardware_Overview#wiring-diagram

              reading the load cell with the 1LC would require a TWI input (and the code to drive it). The toolboard 1LC does not have an I2C/TWI interface allocated to any of the IO pins so it would require significant firmware work to extend the 1LC firmware to bit bang the protocol this uses and that would not be fast.

              www.duet3d.com

              Marcossfundefined infiniteloopundefined 2 Replies Last reply Reply Quote 1
              • Marcossfundefined
                Marcossf @T3P3Tony
                last edited by

                @t3p3tony There is attached the ribbon cable from the 6HC to the Raspberry PI, so the pins aren't reachables.

                BUT, we need to interface the load cell amplifier to the 1LC board and deliver that sensor dato thru the same FD-Cambus it have, not directly to the 6HC or RPI pins.

                I know it's a very uncommon scenario.

                dc42undefined 1 Reply Last reply Reply Quote 0
                • infiniteloopundefined
                  infiniteloop @T3P3Tony
                  last edited by

                  @t3p3tony I’m no expert, but would it be possible to put a Nano or ESP32 in between and then to mis-use one of the thermistor or BLTouch lines of the 1LC to move an analog reading over CAN? This, in turn, would be available to the SBC as an entry in the object model.

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

                    @infiniteloop @Marcossf yes you can stick some I2C -> analog board in the system. or:

                    1. use a load cell board that outputs analog.
                    2. use a SammyC21 with custom firmware to act as a tool board with this additional functionality.

                    www.duet3d.com

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

                      @marcossf the HX711 does not use I2C, instead it uses a simple serial protocol. As such, it would be possible to write a new sensor type that uses one output pin and one input pin. The only available external output pin on the TOOL1LC is IO0_OUT; so if you are not using that pin already then the logical choice is to use IO0_IN and IO0_OUT. This new sensor type would need to be added to the TOOL1LC firmware.

                      BTW the HX711 is intended for use in weighing scales, so it has quite a low sample rate (10Hz or 80Hz). Would that be sufficient for your application?

                      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

                      Marcossfundefined 1 Reply Last reply Reply Quote 0
                      • Marcossfundefined
                        Marcossf @dc42
                        last edited by

                        @dc42 The frequency does not have to be high, it is simply a rheological control of the force needed to extrude/compress a given material.
                        We use this load cell at the moment with good results:
                        https://www.galoce.com/products/miniature-button-load-cell/GML679_Button_Force_Sensor_Load_Cell.html

                        The IO0.in is being used in the syringe empty end detection at this moment, but we could do without it or replace it with the IO3 endstop pins, so both IO0.in and IO0.out would become available.

                        So physically we could connect the amplifier board the way you suggest but I don't know is whether we will be able to modify the firmware of the 1LC board.

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