Inductive sensor



  • Ok according to the duet manual i connect a resistor between the ground and signal, then the power to a Vin socket.

    Now, how many ohms resistor should it be.

    I currently have 240ohm spare one laying around.


  • administrators



  • Ok so i drew a diagram, which way should i go with connecting the inductive sensor.

    Kind Regards


  • administrators

    Is it a PNP or an NPN output sensor?



  • Its NPN


  • administrators

    Then you don't need resistors, just a small signal Schottky diode as described in the page I linked too.



  • Would this setup work?



  • Hey npm1

    I just hooked a probe similar to this yesterday.
    dc42 helped me out with a problem that I was having.
    You should have a read of that thread.
    https://www.duet3d.com/forum/thread.php?id=4490.

    Are you planning on using the probe as an end stop too?
    Because I hooked mine up using E0 endstop pins, I'm not sure that it will work as
    an endstop if you use the probe pins.

    Hope this helps
    Steve


  • administrators

    Yes that diagram looks right. Use probe type P5 in the M558 command.



  • Port will not burn out?



  • @dc42:

    Yes that diagram looks right. Use probe type P5 in the M558 command.

    Hey dc42, just so i understand, if you use the probe connector can you still use the probe as an endstop?
    Is there any difference besides for the firmware settings between using the Z probe pins vs the E0 stop pin?


  • administrators



  • thks for the heads up on the pictures,

    @kozlow: anything can be used as an endstop as long as the M558 and G31 commands are defined correctly



  • @npm1:

    thks for the heads up on the pictures,

    @kozlow: anything can be used as an endstop as long as the M558 and G31 commands are defined correctly

    Right, i realize that you can use a probe as an endstop, that's how mine is set up.
    What i didn't know was if it worked the same when the probe was hooked up to the probe pins. Because when i set up my NPN sensor the wiki said to use the E0 stop pin.
    The wiki must be out dated. That must be for previous hardware that didn't have probe pins.


  • administrators

    An NPN-output sensor can be connected to the E0 endstop input, E1 endstop input, Z endstop input (if it is free) or Z probe connector. You choose the P parameter in the M558 command to tell it which one.



  • @dc42:

    An NPN-output sensor can be connected to the E0 endstop input, E1 endstop input, Z endstop input (if it is free) or Z probe connector. You choose the P parameter in the M558 command to tell it which one.

    Ok, thanks for the clarification. I understand now. Lol



  • Great so I have successfully got the 5v version of this sensor, literally plug and play, the issue i have is the first layer i.e. some of the filament isnt smushed down enough to the point where i could rub my finger against the filament and have it come of the build plate



    Isnt bed leveling with a sensor supost to give perfect first layer height.

    my bed.g file

    [[language]]
    ; bed.g
    ; called to perform automatic bed compensation via G32
    M561				       ;Clear any bed transform
    G28 ; home all
    G90 				               ; Back to absolute positioning ;G91 ; relative mode
    M557 X0:150 Y13:180 S30     ; Define mesh grid
    G1 Z4 F200 ; move Z 4mm for clearance
    G90 ;absolute mode
    ;M280 p3 S160 I1 ; Clear any alarms ;M401 ; In lieu of macro - call GCode for deploy probe
    G29 S0; run auto bed mesh level
    M374 	; Save Mesh Data
    ;M402 ; In lieu of macro - call GCode to retract probe
    
    

    My Home Z file

    [[language]]
    T0 ; select first hot end
    G91 ; Relative coordinates
    G1 Z5 F200 ; Lower bed.
    G4 P500 ; Dwell for 500ms - to ensure bed is down
    G90 ; Absolute positioning
    G1 X10 Y15 F300 ; Go to first bed probe point and home the Z axis
    ;M401; M280 P3 S10 I1 ; Lower Z probe (BLTouch)
    G30; Calibrate Z-axis
    ;M402; M280 P3 S10 I1; Retract Probe
    ;G92 Z2.5; PLA. higher g92 means that 0 is lower down on the z axis
    G92 Z1.55; ABS. higher g92 means that 0 is lower down on the z axis
    
    

    My Heightmap

    please help

    Excuse the Bltouch comments I removed it from my printer since it was always giving me inconsistent z heights and massive variations in the heightmap.

    With the bltouch i had to continues change the G92 height. With the new sensor I barely touch this code.

    Please Help



  • I have successfully soldered and added the new sensor to my printer, looking forward to better consistency, how ever this is connected through the endstop connector rather than the probe connector.

    What is the difference between the probe connector and the axis endstop connectors

    this time i am looking to post more heightmaps.


  • administrators

    @npm1 said in Inductive sensor:

    I have successfully soldered and added the new sensor to my printer, looking forward to better consistency, how ever this is connected through the endstop connector rather than the probe connector.

    What is the difference between the probe connector and the axis endstop connectors

    this time i am looking to post more heightmaps.

    An NPN output sensor can be connected to either an endstop connector or the z probe connector. It doesn't matter which as long as you tell that firmware in the M558 command how you have connected it.



  • At the moment when i get the sensor connected to the probe pins, the z probe trigger value is alway 1000, when the sensor is touching the aluminium, the reading is still 1000.
    The firmware is set as follow:

    ; Endstops
    M574 X1 Y1 S1 ; Set active low endstops
    M574 Z1 S0 ;(S1)
    M558 P5 X0 Y0 Z1 H10 F80 I1 T6000 ; for inductive sensor, Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    M557 X0:170 Y13:180 S25; Define mesh grid
    G31 P500 X0 Y0 Z0; Set Z probe trigger

    m119 is not reporting the probe at its minimum point

    please help


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.