Hi,
As this relates to Dave’s excellent firmware I am tagging him, but if the sensor is usable it might be of interest to others (as it is a very precise sensor, can handle the full color range, can be found for a decent price, and might be a fairly easy drop in mod - main downside is that it has a max working temp of 65ºC. It’s mostly polycarbonate, but I think the lense is acrylic)
@dc42
I believe this is my first time posting (might be second), but have been using this resource for quite some time now.
Currently I have a RailCore & have been using the various Duet accessory sensors quite happily (Duet IR sensor & magnetic filament sensor), but have been passively looking for a possible replacement sensor. The Duet IR sensor has been working quite well for me, but as I have a few different build plate/plate materials & my favorite are white/other colors/transparencies that the IR sensor may not work quite so well with + given the nature of my printer hardware/type of printing I (attempt) to do I have been plagued by extremely slight dimples in the build surface that normally aren’t an issue, but when dealing with very low layer heights or sensitive filament types can cause annoying problems.
Recently I came across an Omron sensor that is normally about $80, but is/was for sale on a couple sites for about $24 so I jumped on it. The sensor I’m referring to (Z4D-C01) is extremely accurate (it’s meant to be used for things such as detecting if 2 sheets of paper, rather than 1, is pulled by a printer. So it has a very high resolution and linearity). In addition while there is a difference in when the sensor would be triggered via white vs black surfaces, that difference is consistent. So it seems as though it would be usable with any color surfaces (transparent ones are probably an issue, thus depending on the color under the transparent surface). Ditto with temperature.
I did my research and it seems as though it should work with the duet hardware/firmware just fine - I think. The sensor is activated by sending a PWM signal and when it detects proximity it sends out a signal ranging from 2-3 volts, I believe. The closer the item is the higher the voltage output.
From what I’ve read this should work fine with what the duet fw expects from those z-probe types (I did the test with a 50hz pwm signal & it can operate with a faster one. I’ll have to circle back to this assuming the rest is OK to move forward with). The main question that I have is regarding the output from the sensor before it detects proximity - while when detecting proximity it outputs a steady signal, when not triggered (but still ‘searching’ w/ the pwm signal enabled) it seems to output a bunch of ‘noise’. The noise being sporadic voltage output from 0 to the signal level V.
I have included a link to a video showing the output from an oscilloscope attached to the output pin on the sensor. You can see me raise/lower the sensor and the corresponding readout from the scope.
Hopefully this is enough information to be able to determine if this ‘noise’ would be an issue or not (I’m guessing that if the noise is an issue a capacitor/resistor/food could be used to clean things up, but I’m not very well versed in these things).
Link:
https://www.dropbox.com/s/wlouww8ljnulmqb/Omron Proximity Sensor.mov?dl=0
Duet board version:
- Duet WiFi (about 2 years old)
- Using the latest few
If any other info is needed I am sure I can fill in any blanks.
Many thanks in advanced for any help that you can provide!