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

    Optical Endstops

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    7
    25
    1.3k
    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.
    • Adamfilipundefined
      Adamfilip @Phaedrux
      last edited by

      @Phaedrux homeall.g homex (1).g homey (1).g homez (1).g config (1).g homexy (1).g

      1 Reply Last reply Reply Quote 0
      • Adamfilipundefined
        Adamfilip @Adamfilip
        last edited by Adamfilip

        @Phaedrux M122

        M122
        === Diagnostics ===
        RepRapFirmware for Duet 2 WiFi/Ethernet version 3.4.5 (2022-11-30 19:36:12) running on Duet WiFi 1.02 or later + DueX5
        Board ID: 08DLM-996RU-N85T0-6JKF2-3SJ6Q-1AVVR
        Used output buffers: 1 of 26 (26 max)
        === RTOS ===
        Static ram: 23836
        Dynamic ram: 75956 of which 40 recycled
        Never used RAM 11984, free system stack 134 words
        Tasks: NETWORK(ready,4.7%,242) HEAT(notifyWait,0.5%,333) Move(notifyWait,0.0%,282) DUEX(notifyWait,0.0%,24) MAIN(running,94.5%,442) IDLE(ready,0.3%,30), total 100.0%
        Owned mutexes:
        === Platform ===
        Last reset 16:24:31 ago, cause: software
        Last software reset at 2023-01-19 16:51, reason: User, GCodes spinning, available RAM 12384, slot 0
        Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
        Error status: 0x04
        Step timer max interval 0
        MCU temperature: min 33.3, current 33.9, max 35.4
        Supply voltage: min 24.0, current 24.1, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
        Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
        Events: 0 queued, 0 completed
        Driver 0: standstill, SG min 0
        Driver 1: standstill, SG min n/a
        Driver 2: standstill, SG min n/a
        Driver 3: standstill, SG min n/a
        Driver 4: standstill, SG min n/a
        Driver 5: standstill, SG min 0
        Driver 6: standstill, SG min 0
        Driver 7: standstill, SG min 0
        Driver 8: standstill, SG min 0
        Driver 9: standstill, SG min n/a
        Driver 10: 
        Driver 11: 
        Date/time: 2023-01-20 09:16:09
        Cache data hit count 4294967295
        Slowest loop: 291.81ms; fastest: 0.18ms
        I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
        === Storage ===
        Free file entries: 9
        SD card 0 detected, interface speed: 20.0MBytes/sec
        SD card longest read time 26.8ms, write time 3.4ms, max retries 0
        === Move ===
        DMs created 83, segments created 11, maxWait 1260235ms, bed compensation in use: none, comp offset 0.000
        === MainDDARing ===
        Scheduled moves 23, completed 23, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 18], CDDA state -1
        === AuxDDARing ===
        Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
        === Heat ===
        Bed heaters 0 -1 -1 -1, chamber heaters 2 -1 -1 -1, ordering errs 0
        === GCodes ===
        Segments left: 0
        Movement lock held by null
        HTTP is idle in state(s) 0
        Telnet is idle in state(s) 0
        File is idle in state(s) 0
        USB is idle in state(s) 0
        Aux is idle in state(s) 0
        Trigger is idle in state(s) 0
        Queue is idle in state(s) 0
        LCD is idle in state(s) 0
        Daemon is idle in state(s) 0
        Autopause is idle in state(s) 0
        Code queue is empty
        === DueX ===
        Read count 23, 0.02 reads/min
        === Network ===
        Slowest loop: 30.97ms; fastest: 0.00ms
        Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
        HTTP sessions: 2 of 8
        = WiFi =
        Network state is active
        WiFi module is connected to access point 
        Failed messages: pending 0, notready 0, noresp 0
        WiFi firmware version 1.27
        WiFi MAC address 84:0d:8e:b2:f8:6f
        WiFi Vcc 3.31, reset reason Turned on by main processor
        WiFi flash size 4194304, free heap 18176
        WiFi IP address 192.168.0.183
        WiFi signal strength -33dBm, mode 802.11n, reconnections 0, sleep mode modem
        Clock register 00002002
        Socket states: 0 0 0 0 0 0 0 0
        

        M98

        M98 P"config.g"
        HTTP is enabled on port 80
        FTP is disabled
        TELNET is disabled
        FTP is enabled on port 21
        Error: Unknown pin name 'e6stop'
        Extruder 0 has no filament sensor
        Endstop configuration:
        X: high end switch connected to pin xstop
        Y: none
        Z: noneError: in file macro line 111: M581: missing parameter 'T'
        Error: Accelerometer not found on specified port
        
        Phaedruxundefined 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User
          last edited by A Former User

          This post is deleted!
          Adamfilipundefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @Adamfilip
            last edited by dc42

            @Adamfilip it is the resistor marked 181 that is too high a value for 3.3V. The good news is that you don't need to remove it (which is tricky), you can solder a 180 or 220 ohm resistor of the same size (probably 0603) on top of it, so that the two resistors are in parallel and make about 100 ohms.

            Alternatively, if your Duet 2 is a sufficiently recent version, you can provide 5V power to those endstops as explained in the link that I posted.

            5V endstops sometimes do work on 3.3V, so it's worth using M119 or the Object Model Viewer in DWC to test whether they are working.

            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

            Adamfilipundefined 2 Replies Last reply Reply Quote 0
            • Adamfilipundefined
              Adamfilip @A Former User
              last edited by

              @Herve_Smith 6 for $13 in US or 1 for $28 in Canada lol 28d28efb-f5c8-4b35-ae29-65e44861981d-image.png

              1 Reply Last reply Reply Quote 0
              • Adamfilipundefined
                Adamfilip @dc42
                last edited by

                @dc42 So if i manage to solder on a 220ohm resister like this. it should work.

                ddc4e832-177e-4b51-af7a-aaeb3e9caaf9-image.png

                1 Reply Last reply Reply Quote 0
                • Adamfilipundefined
                  Adamfilip @dc42
                  last edited by

                  @dc42 I can pickup some of these. but cant tell if they will work 3.3

                  https://wanhao.store/products/wanhao-duplicator-d7-end-stop-switch-v1-2

                  Adamfilipundefined 1 Reply Last reply Reply Quote 0
                  • Adamfilipundefined
                    Adamfilip @Adamfilip
                    last edited by

                    https://www.youtube.com/watch?v=g5L1AnrOytY&t=4s

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @Adamfilip
                      last edited by

                      @Adamfilip said in Optical Endstops:

                      Error: Unknown pin name 'e6stop'

                      Where is it actually connected?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      Adamfilipundefined 1 Reply Last reply Reply Quote 0
                      • Adamfilipundefined
                        Adamfilip @Phaedrux
                        last edited by

                        @Phaedrux duex5 e6stop

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Change your pin name to duex.e6stop

                          https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/DueX2_and_DueX5#pin-names

                          Z-Bot CoreXY Build | Thingiverse Profile

                          Adamfilipundefined 1 Reply Last reply Reply Quote 1
                          • Adamfilipundefined
                            Adamfilip @Phaedrux
                            last edited by

                            @Phaedrux Amazing thank you! that fixed it all. its all homing properly now. im shocked to be honest.

                            I am curious why you need to add duex before e6stop but not when declaring the drive number on duex with M584

                            1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined Phaedrux marked this topic as a question
                            • Phaedruxundefined Phaedrux marked this topic as a regular topic
                            • A Former User?
                              A Former User @Adamfilip
                              last edited by A Former User

                              This post is deleted!
                              Adamfilipundefined 1 Reply Last reply Reply Quote 0
                              • mrehorstdmdundefined
                                mrehorstdmd @Adamfilip
                                last edited by

                                @Adamfilip I use endstops that have an LM393 comparator chip and LED on board with Duet2 controller. They are very reliable and precise, except that I have had problems with them when sunlight hits them directly (an easy problem to fix, once you have figured out that that's the problem).

                                These are the exact ones I used, but they are no longer available.

                                These are similar to the ones I used.

                                The comparator slams the output either hard high or hard low, and it works fine with the voltage available at the pins on the controller board.

                                https://drmrehorst.blogspot.com/2020/01/ummd-gets-opto-endstops.html

                                https://drmrehorst.blogspot.com/2020/03/testing-ummds-xy-optical-endstops.html

                                https://drmrehorst.blogspot.com/

                                1 Reply Last reply Reply Quote 0
                                • Adamfilipundefined
                                  Adamfilip @A Former User
                                  last edited by

                                  @Herve_Smith I didn't LOL at you. more at the absurdity at the amounts Canadians get charged for things. Sorry Didn't intend any offense. unfortunately the same items in canada are priced very high, so the links you provided isn't a affordable option for me.. But I do appreciate you posting it as it helps to search for local alternatives.

                                  1 Reply Last reply Reply Quote 0
                                  • Nordleundefined
                                    Nordle
                                    last edited by Nordle

                                    wouldn't it work to just run the sensor from any spare 5V pin on the baord?

                                    dc42undefined 1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined Phaedrux marked this topic as a question
                                    • Phaedruxundefined Phaedrux has marked this topic as solved
                                    • dc42undefined
                                      dc42 administrators @Nordle
                                      last edited by

                                      @Nordle said in Optical Endstops:

                                      wouldn't it work to just run the sensor from any spare 5V pin on the baord?

                                      Yes, I said that in my reply at https://forum.duet3d.com/post/305741.

                                      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 1
                                      • First post
                                        Last post
                                      Unless otherwise noted, all forum content is licensed under CC-BY-SA