Welcome! Log In Create A New Profile

Advanced

Probe triggered and don't stop

Posted by DeathmannX 
Probe triggered and don't stop
April 27, 2017 08:12AM
Hi Guys,

i've bought a few Days ago a Duet Wifi Board and got everything to work except 1 Thing.
I connected my Z Probe (capacitve) like this and try to get a Signal from it.



The Probe lights up if it is close enough to my Buildplate but the Software don't get that.

I already tryed to understand how to change the config but i cann't get it to work. sad smiley
Already tryed a few things from here: [duet3d.com]

My config:
; Think3DPrint3D configuration file for Mini Kossel for testing Duet WiFi

; Communication and general
M111 S0                             	; Debug off
M550 D-BOT		; Machine name and Netbios name (can be anything you like)
M551 reprap                        	; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED 	; MAC Address
;*** Wifi Networking
M552 S1					; Enable WiFi. Disabled for setup and testing. Enable once set up on your network.

M555 P2                           	; Set output to look like Marlin
M575 P1 B57600 S1			; Comms parameters for PanelDue

G21                                 	; Work in millimetres
G90                                	; Send absolute coordinates...
M83                                 	; ...but relative extruder moves

M667 S1 ; Select CoreXY mode
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X320 Y205 Z330 S0 ; Set axis maxima

; Endstops
M574 X1 Y2 Z0 S0 ; Define active low and unused microswitches
M558 P1 X0 Y0 Z1 H1 F120 T6000 I1 ; Set Z probe type to unmodulated, the axes for which it is used and the probe + travel speeds //I1 = reverse trigger mode
G31 P600 X64 Y30 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X60:260 Y30:175 S20 ; Define mesh grid

; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X78.43 Y78.43 Z398 E467 ; Set steps per mm
M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z300 E1200 ; Set maximum speeds (mm/min)
M201 X500 Y500 Z250 E250 ; Set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout

; Heaters
M143 S300 ; Set maximum heater temperature to 300C
M305 P0 T100000 B3990 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
; Fans
M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

; Tools
M563 P0 D0 H1 ; Define tool 0
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

; Z probe and compensation definition
;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 command
M558 P5 X0 Y0 Z1			; Z probe is an IR probe and is not used for homing any axes
G31 X0 Y0 Z4.80 P500			; Set the zprobe height and threshold (put your own values here)

;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0                   	; Axis compensation here

M208 S1 Z-0.2				; set minimum Z
;
T0					; select first hot end

The Sensor opens if the Buildplate is close enough to it. (PNP NO)

Edited 1 time(s). Last edit at 04/27/2017 10:08AM by DeathmannX.
Re: Probe triggered and don't stop
April 27, 2017 09:19AM
One problem I see right off is you are applying 5v to a 3.3v input. The Duet is a 3.3v logic board, not 5v like the 8 bit Arduino ones.

Also, when posting your configuration file, it is a good idea to blank out the password.
Re: Probe triggered and don't stop
April 27, 2017 09:22AM
On your G31 line, you should lower the P value. When the probe is away from the bed, check the probe value in the web interface. Set the P value about 10 over that.
Re: Probe triggered and don't stop
April 27, 2017 10:26AM
I changed the Mode to P5 and set the H Value to 5 and 10.
It never triggers...
If i remove the I1 the Probe is always triggered.
In the Webinterface i can see that to.

But what can i try now?

EDITE:

I measured with my Multimeter that the Probe send in to the in pin 5,48V on not triggered and
on triggered 7,83V.

Is this the Problem?

Edited 1 time(s). Last edit at 04/27/2017 10:42AM by DeathmannX.
Re: Probe triggered and don't stop
April 27, 2017 11:08AM
Putting that much voltage in to a 3.3v input could burn out the input. But with it being an analog input in this case, you might be okay.

When the probe is triggered, the output voltage should be 3.3v. When not triggered, it should be close to 0v. You need to correct those voltages.
Re: Probe triggered and don't stop
April 27, 2017 12:17PM
Quote
ElmoC
Putting that much voltage in to a 3.3v input could burn out the input. But with it being an analog input in this case, you might be okay.

When the probe is triggered, the output voltage should be 3.3v. When not triggered, it should be close to 0v. You need to correct those voltages.

Thx do you know how to do that?
I got only 5x 150k Ohm and 5x 100k Ohm.

I tryed to calculated that, but it looks like that i got not a talent for that. grinning smiley *sry*
Re: Probe triggered and don't stop
April 27, 2017 12:35PM
Personally, I use a mosfet instead of a voltage divider. Gate of the fet goes to the output of the sensor. Drain goes to 3.3v. Source goes to the Z probe input. A 2N7000 works for this.

Edited 1 time(s). Last edit at 04/27/2017 12:36PM by ElmoC.
Sorry, only registered users may post in this forum.

Click here to login