Hi I'm still having some issues with properly setting up the 3DTouch probe on RADDS (similar to duet) using DC42 fork of reprap firmware.
I connected the control pin of the probe to PWM1 and the probe pin to the ADC-channel.
The probe reads analog signal from the PWM channel to do stuff.
M280 P60 S10 lowers the probe,
M280 P60 S90 retracts the probe
M280 P60 S120 lets the probe goes into test mode, and
M280 P60 S160 reset any 'alarm' (if it detected that it couldn't move the probe up or down properly
the control signal seems to work, at least when I set the probe type to analog (which it isn't)
As far as I could measure, the probe generates a digital high signal when triggered.
The strange thing is, when I select the correct probe type (according to dc42), type 5:
M558 P5 F200 T5000 H3
I lose control over the probe, it doesn't retract or deploy anymore. it does seem to generate a trigger signal, but only once because it doesn't properly retract and deploys after a trigger (it does that automatically normally)
Also when I put the probe in test mode (it retracts and deploys over and over again), it stops doing that when I set the probe type to 5.
I'm really confused about why that is.
I've looked at the code and this is what happens when you specifiy probe type 1 or probe type 5:
pinMode(zProbeModulationPin, OUTPUT_HIGH); // enable the IR LED
pinMode(zProbeModulationPin, OUTPUT_LOW); // we now set the modulation output high during probing only when using probe types 4 and higher
there seem to be 3 pins referred: zProbeAdcChannel, zProbePin, and zProbeModulationPin.
so zProbePin and zProbeAdcChannel seem to refer to the same pin, which is the ADC pin, and the modulation pin is pin 34. This is not related to the PWM signal right.. or is it? I'm confused about all the different pin numberings that are used.
Anyone has any idea what is going on? Or what i could try?