I have worked out some ways to make super cheap laser-through-beam sensors. I have been using ballpoint pen casings to block out light all around the LDR, and then used translucent material (not opaque, like I originally said!) over the other end of the ballpoint pen casing, to avoid damage to the LDR. I then shine the laser onto the translucent material end.
I know through research that you have to use translucent material, or else it will degrade the LDR head. It is very responsive even with a couple of layers of pouch foam. The foam came with a laser pen I bought (and I should not have bought the laser pen, because the laser heads are dirt cheap!)
Was just wondering if anyone had some advice on the minimum amount, or type of material that should be used? Maybe just translucent plastic? But then again, maybe the pouch foam would be sufficient.
I have found that even shining a high intensity flash light on the translucent end will not be any where near as responsive as the laser head. I can even get a really good response from several meters away, when using precision. I am using an analog pin, and 100k resistor to create a pot divider by the way (although, with different LDRs I need to put this much lower).
I was thinking of maybe trying to set the pot resistor exactly to use a digital Arduino pin, but it still seems analog may be still be a better way to go.
Oh dear, you are absolutely right! I meant translucent. I am going to modify the question right now to avoid problems with understanding. Thank you for pointing that out.
All good XFPD, I have modified all of my main post, and I have also adjusted the question itself. I was indeed even thinking of using tissue paper, but I wasn’t sure it would maybe seem a bit tacky, hence I used the pouch foam. Pouch foam is quite nice and malleable as well.
Oh yes, I did also think of that as well. I thought the idea of using the ballpoint pen casing seemed a nice idea to get rid of interference from other light sources. I have played around with it for a while now.
What it probably comes down to is experimentation. The main reason I posted was to get some heads up advice to avoid damaging anything unnecessarily. The LDRs are also obviously dirt cheap as well. It has been quite a fun project so far!
Your laser and LDR approach is fundamentally sound. LDR damage risk from low power lasers is minimal. Diffusers mainly spread light, not just reduce intensity. Thin frosted plastic is the best long term diffuser. One diffuser layer is usually completely sufficient. Foam works temporarily but ages and absorbs unpredictably. Pen tubes effectively block ambient light when blackened internally. Analog readings are more stable than digital thresholds. Use a comparator with hysteresis for digital outputs. Your observed laser range advantage is entirely expected.
Yes, indeed, the pen casings I used were the opaque type (and I am using the word correctly this time ). They fit almost perfectly over the LDR head as well, which is nice.
What you said about pouch foam degrading over time may indeed be a good consideration. Thank you.
Also, another point. I was also trying to use the digital pin by using a very well defined pot resistor (that involved using a variable pot). If something like a flash light goes really close to the translucent layer, it does have more effect. That is in reference to interfering light sources, which I obviously wish to avoid.
A laser/LDR are the wrong parts for a beambreak setup. Too sensitive to ambient light.
Must use modulated infrared if ambient light is present.
A common 5mm IR LED and 3-pin 38kHz receiver are much easier to set up and can do 50m without any big effort in broad daylight.
A common misunderstanding is that you detect the shadow, not the light, so a flood light and a broad receiver can still have a "beam" of only a few mm in diameter.
Leo..
Maybe it is good for another project at a different time. Also, I am trying to get into the habit of using more baseline components like the, old faithful, 555. IR LEDS, and receivers, seems good options to experiment with 555s.
I know some of the old Arduinos are really cheap these days. A lot of what I do is mainly for fun and experimentation though. I feel sometimes doing stuff with the most basic chips gives a good core knowledge of using the cheapest components to maximum effect. For example, a lot of delays, latches, and timing stuff can be done with core devices like 555 and also basic logic chips (like latches).
Maybe my love of lasers is that I was a cat in a previous life
Some of the more modern chips are also cheap. I recently bought a Pi Pico clone for less than $5. More memory, two ARM M0+ cores, multiple I2C,serial,SPI...
Did that with a beambreak setup that does 50m in broad daylight, no lenses.
Good ol' (smd) 555 to generate 38KHz for the LED driver and a 3-pin receiver with Arduino.
Leo..
Think about what happens to light when it encounters a change in material density: air to surface of material. You get a reflection, so part of the light power is lost. Then after the light passes though the material it encounters another surface on the far side of the translucent material and again is reflected back into the material. So every change in medium means loss of laser light power.