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

    How to setup the Bigtreetech smart filament sensor?

    Scheduled Pinned Locked Moved Solved
    Third-party add-ons
    15
    55
    11.2k
    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.
    • Infinitysnekundefined
      Infinitysnek @arhi
      last edited by

      @arhi Sadly I do not have a scope. I will try again with other resistors tomorrow.

      Here are some pictures of the pcb, the ic at U1 says C145. I'm not yet sure what it does but it could maybe be a Single Schmitt-Trigger Inverter based on what I found online.
      The traces are a bit dificult to follow so I could make a schematic of it if that's helpful.

      IMG_20200621_002437.jpg IMG_20200621_002351.jpg

      1 Reply Last reply Reply Quote 0
      • arhiundefined
        arhi
        last edited by

        Most probably it is dual smidth 74xx2g14. If you could reverse engineer schematic that would be great.

        But looking at images, output from the LDR goes to input2 ... see if you can see where the pins 4 and 6 from the U1 go. Pins 2 and 5 are Vss and Vcc, 4 and 6 are outputs, it is possible one is going directly to the signal pin on the connector.

        Also check if Vcc and Vss from the connector go directly to pins 5 and 2.

        This should be powered from 3v3 and should have 3v3 pulses on the signal output..

        For test, no resistor needed as this does not have open drain output.

        1. supply 3.3V to Vcc, ground to Vss
        2. measure voltage between pins 2 and 5 (middle pins) on U1
        3. measure voltage across LED
        4. use camera phone, see if you can see if LED is emitting light (you should be able to see IR light with most phone cameras, check also some remote controller if you can see the light with camera when you press a button)
        5. Measure voltage on U1 pins 1 and 3 (input)
        6. measure voltage on U1 pins 4 and 6 (output) - check if they are inverted 1-3
        7. measure resistance U1 pins 4 and 6 to the signal pin on the connector
        Infinitysnekundefined 1 Reply Last reply Reply Quote 1
        • zaptaundefined
          zapta @Infinitysnek
          last edited by zapta

          @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

          with the resistor between Out and GND

          I think arhi suggested a resistor between Out and Vin.

          Infinitysnekundefined 1 Reply Last reply Reply Quote 0
          • Infinitysnekundefined
            Infinitysnek @arhi
            last edited by

            @arhi This is what I could find and its only confusing me more and more. If 4 &6 are supposed to be outputs one goes to what I thought was Vcc and the other to a pin that is not even connected to anything.

            069e0f1d-e494-4bbd-b208-62a59bafb99a-image.png

            Based on the schematic I switched Vcc and Out around to test but then the IR led is turning on.

            measure voltage between pins 2 and 5 (middle pins) on U1

            2.55V

            measure voltage across LED

            1.113V

            Measure voltage on U1 pins 1 and 3 (input)
            measure voltage on U1 pins 4 and 6 (output) - check if they are inverted 1-3

            I am not really getting a consistent reading on both of them sometimes its around 1.1V, around 0.8V or nothing and 4&6 are usually inverted but not always

            measure resistance U1 pins 4 and 6 to the signal pin on the connector

            Pin6 - Signal = 1.3M ohm
            Pin4 - Signal = 24.4 ohm

            arhiundefined 2 Replies Last reply Reply Quote 0
            • Infinitysnekundefined
              Infinitysnek @zapta
              last edited by

              @zapta said in How to setup the Bigtreetech smart filament sensor?:

              @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

              with the resistor between Out and GND

              I think arhi suggested a resistor between Out and Vin.

              I tried it both ways, the first one was between Out and Vin the second between Out and GND

              1 Reply Last reply Reply Quote 0
              • arhiundefined
                arhi @Infinitysnek
                last edited by

                @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

                @arhi This is what I could find and its only confusing me more and more.

                Looking at this schematic, I'd say the names on the J1 are all wrong 😞

                Fors start, the main thing to do is to get the IR led to power on.

                In order to power the IR LED on you need Ground (Vss) to be on J1-4 and 5V (Vcc) on J1-1. Bringing 5V between pins 1 and 4 should get the LET to turn on as that will directly power the LED trough R1.

                If that works, this will automatically properly power the C145 as U1-2 is Vss and U1-5 is Vcc and that correspond with 5V on J1-1 to J1-4.

                In this case output of the U1 are pins J1-2 and J1-3 and are alternating from what I see so you should be able to use either as the signal to the duet's sensor input.

                All this hoping that all the parts on the board are working ok, as by connecting them with wrong pinout you might kill the U1

                Note that to test the outputs properly the whole thing needs to be closed or in the dark so that P1 only see the light from the IR diode and not ambient light.

                Infinitysnekundefined 1 Reply Last reply Reply Quote 0
                • Infinitysnekundefined
                  Infinitysnek @arhi
                  last edited by

                  @arhi I changed the pins around, this made the led turn on and got 3.3V over pin 2 - 5 so that's all good now. Measured the voltage over 1 & 3 while turning the wheel and that does seem to give a 1V pulse consistently but nothing happens overt 4 & 6. The IC is not getting hot so either something is going wrong or the IC is already dead i guess?

                  I updated the schematic to reflect the changes and I do have to say this makes more sense now πŸ™‚
                  84b3c196-14d9-46a5-9fb2-cd237f33284d-image.png

                  arhiundefined 2 Replies Last reply Reply Quote 0
                  • arhiundefined
                    arhi @Infinitysnek
                    last edited by

                    @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

                    Measured the voltage over 1 & 3 while turning the wheel and that does seem to give a 1V pulse consistently but nothing happens overt 4 & 6.

                    The Vt+ when operating from 3V source per datasheet is 1.3-2.2V so 1V is not enough to trigger that schmitt. Check if will trigger better if you power the contraption from 5V.

                    Not sure if input on the duet is 5V tolerant (@dc42 should know) so if it works when powered from 5V you will probbly need a voltage divider on the output before feeding it to duet. But for now, just test it without any connection to duet.

                    To test the U1 on it's own you can bring Vcc to pin1 and expect 0V on the pin6 and also Vss to pin1 and expect 5V on pin6, just to be sure the U1 is not dead. Shorting U1-1 to Vcc or Vss should not damage anything.

                    BTW are you sure about schematic? The C1 seems weird, maybe they did it like this to just have a single pulse even if the hole is there for a while

                    Infinitysnekundefined 1 Reply Last reply Reply Quote 0
                    • arhiundefined
                      arhi @Infinitysnek
                      last edited by

                      @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

                      have to say this makes more sense now

                      I have to say the schematic as a whole does not make too much sense to me.

                      Vcc directly on the base of the foto transistor will keep it always open ?!?! for e.g. maybe Vcc is in the collector? SFH303 is BCE footprint:
                      51366d79-dd8f-4f5f-bf06-00f8958a04af-image.png

                      but from the pictures I see it's a square piece, not the round one so.. who knows what PRC made pos is that 😞

                      Anyhow, assuming the schematic works 2 and 3 pins should have the pulses out if nothing is dead on that board.

                      Infinitysnekundefined 1 Reply Last reply Reply Quote 0
                      • Infinitysnekundefined
                        Infinitysnek @arhi
                        last edited by

                        @arhi Oh yes i could not find writing on the sensor so i just took something from the eagle library that roughly looked the same

                        1 Reply Last reply Reply Quote 0
                        • arhiundefined
                          arhi
                          last edited by

                          yes probably the vcc is in the collector.. if that's npn at all ..

                          did you manage to test the U1 and output on J1-2 and J1-3 ?

                          1 Reply Last reply Reply Quote 0
                          • Infinitysnekundefined
                            Infinitysnek @arhi
                            last edited by

                            @arhi said in How to setup the Bigtreetech smart filament sensor?:

                            To test the U1 on it's own you can bring Vcc to pin1 and expect 0V on the pin6 and also Vss to pin1 and expect 5V on pin6, just to be sure the U1 is not dead. Shorting U1-1 to Vcc or Vss should not damage anything.

                            I'm not exactly sure what you mean by this. Should i bridge Vcc or vss to U1-1 then measure over U1-6 and Vss?

                            With 5V I get a 1,7V pulse so that should be high enough however i'm getting a constant 1,3V on the output now

                            arhiundefined 1 Reply Last reply Reply Quote 0
                            • arhiundefined
                              arhi @Infinitysnek
                              last edited by

                              @Infinitysnek said in How to setup the Bigtreetech smart filament sensor?:

                              I'm not exactly sure what you mean by this. Should i bridge Vcc or vss to U1-1 then measure over U1-6 and Vss?

                              yes.

                              With 5V I get a 1,7V pulse so that should be high enough however i'm getting a constant 1,3V on the output now

                              I fear that U1 is dead. The schmitt output can only be 0 or Vcc (with a very little offset), the output of 1.3 on the 4 or 6 pin should only happen if you power it from 1.3V

                              Infinitysnekundefined 1 Reply Last reply Reply Quote 0
                              • Infinitysnekundefined
                                Infinitysnek @arhi
                                last edited by

                                @arhi Well thats too bad. The chips is fairly cheap at €2 for 20 so ill get some and replace the chip when it arrives in a month or so.
                                It is impossible for me to bridge the 2 pins and probe 2 others at the same time so Im going to assume its dead.

                                Thank you for your help so far I really appreciate it πŸ˜„

                                1 Reply Last reply Reply Quote 0
                                • arhiundefined
                                  arhi
                                  last edited by

                                  double check if those outputs go really directly to the connector trough 200R or maybe they have some other links that you missed but on the output pins really you should not see anything except 0/1 (Vss/Vcc).

                                  Also, if you have any other schmitt inverter you can bodge it there.. should work..

                                  Infinitysnekundefined 2 Replies Last reply Reply Quote 0
                                  • Infinitysnekundefined
                                    Infinitysnek @arhi
                                    last edited by

                                    @arhi I will check tomorrow. I don't have any schmitt inverters laying around but I did found another online: NC7WZ14P6X. Seems similar and should be here within a week.

                                    1 Reply Last reply Reply Quote 0
                                    • Infinitysnekundefined
                                      Infinitysnek @arhi
                                      last edited by

                                      @arhi I was going to replace the chip today until i found out its even smaller and doesn't fit 😞
                                      I ordered new ones but that will take a while to arrive... IMG_20200627_143036.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User
                                        last edited by A Former User

                                        if its pin-compatible you could try stretching and bending the legs to force it onto the bigger pad.
                                        (apply liberal amounts of "carefulling" first)

                                        or solder thin wires from the pad to the leads. if current situation means huge delays I'd be inclined to try it.

                                        edit: i've only had to use bigger chips on smaller pads, but having given it a second thought I'd flatten the legs to they come straight out the side of the chip to make up the missing length, angle them outwards to align with the pads, then just solder a wire between the pad on the board and lead of the chip that would otherwise be floating in air. once you got one down the rest should be simple-ish.

                                        1 Reply Last reply Reply Quote 0
                                        • arhiundefined
                                          arhi
                                          last edited by arhi

                                          uh, I hate when it happens...

                                          @omni will bring his one to me these days ('cause mine is not arriving for months now 😞 ) so I can do some real life testing here ... I finished the new "case" for my encoder last night

                                          cbfc85a0-ba13-494a-99e6-6620104dec1d-image.png

                                          c2c5a6b7-62a4-4d21-acea-7983937ff3f2-image.png

                                          it's not a fancy package like the btree sensor but it does not restrict filament flow as much as btree one does and it's 600 impulses per rotation so ~8 impulses per mm instead of 1 impulse every 7mm πŸ™‚ and these encoders are 5-6eur delivered so 3x cheaper than btree one πŸ™‚

                                          anyhow I'm waiting for the tests you do after you replace the chip.

                                          btw, one quick test you should be able to do during the weekend .. if you have hotair gun, heat it up a bit and just lift the pin1 and pin6 from the pcb so they don't touch any of the circuitry ... power the chip with 5V and measure output on the pin6 when you short the pin1 to ground and to 5V (should be easy to just solder a jumper wires so you can easily measure) just to be 100% sure that chip is dead ... or if you already desoldered it (I think you did), just solder the 4 wires (1,2,5,6) and try "in the air" ...

                                          and I agree with @bearer few wires and that small one can fit, I did it more than once and still hate doing it but it's a fairly quick job if you have a steady hand and ok-ish vision πŸ™‚

                                          1 Reply Last reply Reply Quote 0
                                          • Infinitysnekundefined
                                            Infinitysnek
                                            last edited by

                                            I have desoldered the chip already yes. I could try soldering on wires, hated doing that last time for a different project but it’s better than waiting a few weeks for new chips.

                                            Does yours work with the duet? If this won’t play nice with the duet I could repurpose the housing for something like that

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