A small company for plastic injection molding has produced over 6000 articles for a refrigerator branding. It was then necessary to find out whether the entire batch could be handed over to the customer, or whether there were articles which did not comply with the specifications, and were to be sorted out.
For this purpose, favorable employees had been hired: they took the articles individually into their hands and assessed the standard with analog measurement methods.
When my friend told me, the idea of a light barrier was born: with the help of a laser beam the specification could be checked. Articles that do not interrupt the laser beam are in the standard. Articles which slightly touch the laser beam are within the tolerance limit and articles interrupting the laser beam are sorted out as rejects.
A photocell can also be used in the area of censuses and alarm systems.
ImplementationHere is the implementation in detail: the laser beam is switched permanently and hits a photo-resistor. The values read by the photoresistor can be evaluated and corresponding triggers for the switching of LEDs and buzzer can be used.
If you play with the construction, you can also try a marble to break the photo-resistors. You can also use a mirror to direct the laser beam around the corner. Here, many applications are conceivable.
int threshold = 170; // if direct Laser Light on photo-resistor we got values between 156-169 bei 10k Resistor without a marble
int threshold_border = 180; // slight deviation / geringe Abweichung - falls Laser nur geringfügig gestreift wird
int count_yellow = 0; // Counter for the Thresholds
int count_red = 0; // Counter for the Thresholds
pinMode(7,OUTPUT); // yellow control LED
pinMode(8,OUTPUT); // green control LED
pinMode(9,OUTPUT); // Laser
pinMode(10,OUTPUT); // red control LED
pinMode(11,OUTPUT); // Buzzer
pinMode(A0,INPUT); // 10k Photo-Resistor
You can use the serial monitor to check the determined values and adjust the two threshold values according to your requirements. A counter is also carried along: after all, the number of the committee at the end of the quality inspection (or the number of visitors to an event or the crossing of bees before a beehive) is of interest.
ResultsThe influence of ambient light on the photoresistor could not be ascertained in the experimental setup: it constantly measured values whether in a bright or darkened room. A check, whether a short distance, also many meters with the laser beam could be bridged did not take place: presumably stands nothing in the way. The shining of neighbor's plot several meters away in the night on his white wall worked well. Note that you will not perceive the transmitted light from the laser on the track to the photo-resist as such.
I am very glad that my first test with a laser (here I had annoyed my cat, check point F.) has now led to a meaningful purpose.
ConclusionsLike my description? You will find more under my account. Follow me to be notified when I publish new projects! Here is my Paypal link. You can also send me sensors, which I like to look at sometimes.
Comments