Welcome! Log In Create A New Profile

Advanced

Mini differential IR height sensor board

Posted by dc42 
Re: Mini differential IR height sensor board
April 05, 2018 08:31PM
Here are some more pics...
Attachments:
open | download - Screen Shot 2018-04-05 at 8.30.28 PM.png (234.1 KB)
Re: Mini differential IR height sensor board
April 07, 2018 10:27AM
I can't be completely sure because the focus of the shot from underneath isn't great, but I think that the edge of the fan duct with the cutout in it for the capacitor isn't sufficiently clear of the IR LEDs and phototransistor.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
April 07, 2018 12:31PM
Many thanks...here are some more pics with way better clarity!
Attachments:
open | download - Screen Shot 2018-04-07 at 12.28.49 PM.png (407.7 KB)
Re: Mini differential IR height sensor board
April 08, 2018 06:59AM
Hi everyone !

I'm using the ir probe for a year now, and my delta printer had gorgeous results : perfect first layers all the time.

Yesterday, I changed my hot-end, so I rebuild the effector, and changed some firmware parameters...

But now I'm having a very very strange result : The probe triggers way too high, about 5-6cm above the bed ! It makes the G32 calibration sequence impossible as it is very inaccurate too.

What would be causing this? As anyone ever experienced such thing ?

here is a video of the problem

[youtu.be]

Edited 1 time(s). Last edit at 04/08/2018 09:28AM by Archiclem.
Re: Mini differential IR height sensor board
April 09, 2018 08:54AM
Quote
dc42
I can't be completely sure because the focus of the shot from underneath isn't great, but I think that the edge of the fan duct with the cutout in it for the capacitor isn't sufficiently clear of the IR LEDs and phototransistor.

David, is there a minimum recommended distance that the bottom edge of the sensor should clear any surrounding shrouds?
Re: Mini differential IR height sensor board
April 10, 2018 03:59PM
It's probably sufficient for the shroud to be behind all of the lenses of the IR diodes and the phototransistor.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
April 10, 2018 04:46PM
Many thanks!

I'll adjust the base edges of the surround to be around 1.5mm higher than the bottom edge of the board. Right now they are line-to-line.
Re: Mini differential IR height sensor board
April 30, 2018 10:15PM
Hi guys,

I'm trying to get the IR sensor to work now for a couple of months.
In particular, I'm seeing a high variance (>0.1mm) which makes the bed leveling and G29 operation a nightmare :-(
Initially, I thought the PEI bed I used was the issue (although painted black on the back etc) so I upgraded the bed to a Buildtak Flex system but after installation, I still see a similar behavior, unfortunately.

Buildplate: Buildtak flex (Buildtak on spring steel) - Buildtak flex is mounted on top of the heated glass bed.
Controler: DuetWifi FW 1.21
Trigger height: varies between 2.65 and 2.9mm - note: when G30 probing is used multiple times in a raw the accuracy is there but after a restart of the system it varies (e.g. nozzle is suddenly touching the bed or gap is too large to get the first layer down.

Will take some screenshots of the bed compensation and mesh leveling process and post them here later.

I assume I'm doing something fundamentally wrong or my assumptions that the variance should be much lower are incorrect.
Any advice is highly appreciated.

Thanks !
Re: Mini differential IR height sensor board
May 01, 2018 01:26PM
Variance using PEI (or any other IR-transparent surface) depends on the surface finish. I was getting quite good results with PEI painted block on the underside, but other user found that scuff marks on the PEI caused the trigger height to vary. One user sanded the to surface of the PEI using very fine grit sandpaper, and reported that this gave better results. But I haven't tried that.

Variance using BuildTak or other opaque surfaces should be lower.

Obviously if the sensor isn't securely mounted, it may wobble and give inconsistent results.If the tilt of the print head or the bed varies, that will cause the relative heights of the sensor and the nozzle to change, causing an apparent different in trigger height.

HTH David



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
May 02, 2018 08:56AM
Thanks for the reply David.
The sensor is securely mounted and does not wobble. I will run a few more tests to ensure the issue is not at another place in the setup and report back.
Re: Mini differential IR height sensor board
May 30, 2018 04:40PM
I am having similar experience- sensor trigger heights change and vary between 2.65 and 2.9mm. I got the probe board 3-4 of weeks ago from Filastruder.

I am using a RAMPS board with Marlin 1.1.8_bugfix and have tried both Bilinear and Unified Bed Leveling. My surface is 1/4" glass and I have tried it with and without hairspray. I painted my aluminum build plate with flat black grill paint- though I am tempted to give it another coat to be sure that its opaque enough. The glass sits on silicone heat transfer pads.

Consistently, the bed level mapping results in the same shape for the bed surface- a saddle or Pringles potato chip, 0.8mm high at one corner, 0.4mm high across from it, and 0.2mm on the diagonal across from it. Thing is, when I take my machinist rule and lay it across the glass- there are no gaps or voids under laying it across the same directions.

I just can not seem to get it to be consistent and zero out for the bed.

Any thoughts or ideas or things to check?
Re: Mini differential IR height sensor board
May 31, 2018 04:58AM
Bed mapping isn't only affected by whether the bed is flat. For example, on a traditional Cartesian printer it is also affected by whether the carriage remains at the same height at every position on the X axis, and whether the bed remains level as it moves in the Y axis. It's very common for the X axis to sag a little in the middle due to the weight of the carriage. This gives rise to a bed map that appears to bulge upwards in the middle of the X travel. It's also common for two smooth rods supporting the moving bed to be not quite level with each other so that they have a small amount of relative twist. This gives rise to a bed map that looks as if the bed is twisted.

If the sensor isn't giving the same trigger height at different places, then obviously that will cause issues too - although if the measured trigger height variation is 0.25mm but the height map variation is 0.8mm then it evidently isn't the whole story.

One other issue that can cause height map errors is if the tilt of the print head varies with XY position. This is a common problem on delta printers, but rare on most other sorts of printer. If the tilt of the print head varies with position, so will the relative height of the IR sensor and the nozzle.

HTH David



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
June 13, 2018 03:51PM
I had some trouble with the IR sensor back when i was running plain glass over an aluminum heatbed. Now I am running borosilicate glass 1/4" thick, and i have a proper ramps/marlin board running now..... so i have a question. Would it help or hurt to sand the top surface of that boro glass to make it sort of opaque. would the ir reflect better off it? sanding with something really fine like 220 grit, and an orbital electric sander.
Re: Mini differential IR height sensor board
June 13, 2018 06:38PM
Quote
JKaechler
I had some trouble with the IR sensor back when i was running plain glass over an aluminum heatbed. Now I am running borosilicate glass 1/4" thick, and i have a proper ramps/marlin board running now..... so i have a question. Would it help or hurt to sand the top surface of that boro glass to make it sort of opaque. would the ir reflect better off it? sanding with something really fine like 220 grit, and an orbital electric sander.

I have no experience with sanding glass but when I did the same to PEI I got height variance assuming due to the fact that the reflections are different across the surface depending on the sanding pattern and level.
Re: Mini differential IR height sensor board
June 13, 2018 11:08PM
how can i delete a post entirely?

Edited 1 time(s). Last edit at 06/13/2018 11:09PM by JKaechler.
Re: Mini differential IR height sensor board
January 20, 2019 01:18AM
Hello, and thankyou for building a nice IR end stop soulution.
I just recived my Mini height sensor board ver 1.2
I installed in on my zonestar (RepRap Prusa i3 CLONE) witrh Marlin firmware.

So I powered up the sensor and right away, LED come on and flashes 2 times, just like you said it would.
All wires are correct.
After homing the printer and find that it will not goto Z home. Instead it goes up about 10mm and stops.
I enter the M119 command and find that:
With the sensor a long way above any surface, the LED on the sensor is off, and printer firmware does indicate that the sensor is triggered.
AND
With the sensor closer to a surface LED does illuminate and printer firmware does indicate that the sensor is NOT triggered.

How do I fix this.
Rewriting firmware to my printer is not an easy task, as I do NOT have the source code and would have to do a complete install of Marlin.
Is there a way to change the firmware on the height sensor, and what would I change.
Dave
Re: Mini differential IR height sensor board
January 21, 2019 08:16PM
You might want to move this question the Marlin discussion forum.... it sounds like you need to invert the sensing of the endstop in your Configuration.h file
Re: Mini differential IR height sensor board
January 22, 2019 02:58AM
I replied to a similar question that was posted in the Prusa i3 section of this forum.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
January 22, 2019 08:42AM
Thankyou. my issue has been solved here:
[reprap.org]
Re: Mini differential IR height sensor board
May 08, 2023 08:33AM
David,
I sent this also to contact-us form on your site, but doesn't seem to be working correctly.

But I have a IR board that I have purchased in 2017, and has worked great, but recently I started using this printer again after a year layoff, and I getting in major outliers .75-1mm in the same position. Also strange is I have the firmware(klipper) checking 3 samples per position now, and sometimes I see that it gets a sample and the LED on sensor doesn't turn on, is it possible that a detection is sent without turning on the LED? Any thoughts? Anything that might degrade after 6 years?

Thanks.
Re: Mini differential IR height sensor board
May 08, 2023 11:59AM
If the sensor doesn't detect a pullup resistor to +3.3V or +5V then it operates in pseudo-analog mode, outputting 4 different voltages depending on whether it is a long way from the bed, close to the bed but not quite triggered, close enough to be triggered, or overloaded with ambient light. If the board it is connected to treats the input as digital then it might see the "close to the bed but not quite triggered" as triggered. So maybe you just need to enable the pullup resistor on the input of the board that it is connected to.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
May 08, 2023 03:14PM
Quote
dc42
If the sensor doesn't detect a pullup resistor to +3.3V or +5V then it operates in pseudo-analog mode, outputting 4 different voltages depending on whether it is a long way from the bed, close to the bed but not quite triggered, close enough to be triggered, or overloaded with ambient light. If the board it is connected to treats the input as digital then it might see the "close to the bed but not quite triggered" as triggered. So maybe you just need to enable the pullup resistor on the input of the board that it is connected to.

Thanks that is a good clue. But unfortunately I do have pull-up enabled on that pin. But I have verified that I can put it in a position, where it is far enough that the LED does not light, but still shows up as triggered. I guess I need to verify externally that the pin is being configured correctly for pull-up resistor?
Re: Mini differential IR height sensor board
May 08, 2023 04:03PM
You can tell whether the sensor has started up in analog or digital mode by counting the number of LED flashes after power up. See the instructions at [miscsolutions.wordpress.com].



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
May 08, 2023 07:04PM
Quote
dc42
You can tell whether the sensor has started up in analog or digital mode by counting the number of LED flashes after power up. See the instructions at [miscsolutions.wordpress.com].

Yes 4 flashes, so it is in analog mode, so I guess something is wrong with internal pull-up. I think it may because the way klipper works, it takes a bit for the pin to get configured, so pull-up is not active at start. So can I do manual override pull-up?

Edited 1 time(s). Last edit at 05/08/2023 07:13PM by CptanPanic.
Re: Mini differential IR height sensor board
May 09, 2023 03:28AM
Yes, if you add an external resistor.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Mini differential IR height sensor board
May 09, 2023 07:39AM
Quote
dc42
Yes, if you add an external resistor.

Thanks for help, yes it is working good now with resistor.
Sorry, only registered users may post in this forum.

Click here to login