Hi all. Over in my thread on counting the swings of a clock pendulum:
I mentioned the idea of using a photoelectric sensor and counter kit to do this task. I did have some success as described over there. In the process, I had to learn how to use the sensor and counter kit. I created this thread to pass that info along as some people might be interested in the kit but not necessarily interested in clocks. I'm using this kit from Amazon.
Twidec/6 Digits 0-999999 Customer Traffic Counter 100V-240VAC LED Auto Display Digital People Counter
One big problem is that there are no instructions with the package. There are wiring instructions only, and the sensor says it's an NPN model. But that's all. Further down, I'll link to some instructions from an American automation company that either relate to this sensor or are very similar. There is no housing for the counter and wiring. The wires, including AC power, are just attached to screw terminals. They will most assuredly break, and potentially become dangerous, if you don't add some type of external strain relief or put the whole assembly in an outer box.
The sensor has a green (stability) light, an orange (operation) light, a min / max pot, and a L(ight) / D(ark) pot. Let me see if I can explain how this works.
The green light should be on all the time unless something is wrong. I'm not totally sure what would make it go off.
The orange light should be on whenever the sensor is "triggered". The sensor can be triggered by lightness or darkness. The L / D pot controls this. The orange light comes on when the unit is triggered.
The min / max pot controls sensitivity. See the external links I provide for more detail on how to use that. I have thus far had it on max. Reducing sensitivity may allow operations at closer range when using the reflector panel.
The sensor contains an emitter and a receiver. Presumably, the emitter is always emitting.
The counter module will count UP when the ORANGE light on the sensor comes on.
You can trigger the sensor when something reflective gets near the sensor without the reflector plate, or when something comes between the sensor and the reflector plate. You can trigger the sensor when something enters the beam, or when something leaves the beam. Reflective doesn't have to be a mirror. Any non black object will reflect light. There are 4 permutations.
Trigger upon:
1) Object NEAR sensor, when ENTERING beam - Set sensor for Light mode. Point sensor into empty space. Rotate L / D pot all the way to L. Orange light may start to illuminate. Back off pot until orange light is off. Bring your hand or a non black object near the sensor. It should trigger. The orange light should light up. And the counter should count up.
2) Object NEAR sensor, when LEAVING beam - Set sensor for Dark mode. Point sensor at the reflector panel about 1" away. Rotate L / D pot all the way to D. Orange light may start to illuminate. Back off pot until orange light is off. Remove the reflector panel. Point the sensor into empty space. It should be triggered and the orange light should be on. Bring your hand near the sensor. The trigger should go off and the orange light should go off. When you remove your hand, the sensor should trigger, the orange light should come on, and the counter should count up.
3 Object BETWEEN sensor and reflector plate, when ENTERING beam - Set sensor for Dark mode. Point sensor at the reflector panel about 1" away. Rotate L / D pot all the way to D. Orange light may start to illuminate. Back off pot until orange light is off. Remove the reflector panel. Put the reflector panel about 2' away and point the sensor at it. The orange light should go off. Put your hand between the sensor and the reflector plate NEAR the reflector plate. The sensor should trigger. The orange light should come on and the counter should count up. This will NOT WORK if you hand is too close. Your hand must do more blocking than reflecting. The sensor must see a substantially darker signal with your hand there.
4) Object BETWEEN sensor and reflector plate, when LEAVING beam - Set sensor for Light mode. Point sensor into empty space. Rotate L / D pot all the way to L. Orange light may start to illuminate. Back off pot until orange light is off. Put the reflector panel about 2' away and point the sensor at it. The sensor trigger should go on and the orange light should go on. Put your hand between the sensor and the reflector plate NEAR the reflector plate. The sensor trigger should go off and the orange light should go off. This will NOT WORK if you hand is too close. Your hand must do more blocking than reflecting. The sensor must see a substantially darker signal with your hand there. When you remove your hand from the beam, the sensor should trigger, the orange light should go on, and the counter should count up.
I've found this sensor and counter kit very interesting to play with and it works fine as long as you know how to set it up. Here are the external documents I've found on an American automation site. They are either for this sensor or are very similar.
Hope you find this information useful.
May your bits be stable and your interfaces be fast.
Ron
I mentioned the idea of using a photoelectric sensor and counter kit to do this task. I did have some success as described over there. In the process, I had to learn how to use the sensor and counter kit. I created this thread to pass that info along as some people might be interested in the kit but not necessarily interested in clocks. I'm using this kit from Amazon.
Twidec/6 Digits 0-999999 Customer Traffic Counter 100V-240VAC LED Auto Display Digital People Counter
One big problem is that there are no instructions with the package. There are wiring instructions only, and the sensor says it's an NPN model. But that's all. Further down, I'll link to some instructions from an American automation company that either relate to this sensor or are very similar. There is no housing for the counter and wiring. The wires, including AC power, are just attached to screw terminals. They will most assuredly break, and potentially become dangerous, if you don't add some type of external strain relief or put the whole assembly in an outer box.
The sensor has a green (stability) light, an orange (operation) light, a min / max pot, and a L(ight) / D(ark) pot. Let me see if I can explain how this works.
The green light should be on all the time unless something is wrong. I'm not totally sure what would make it go off.
The orange light should be on whenever the sensor is "triggered". The sensor can be triggered by lightness or darkness. The L / D pot controls this. The orange light comes on when the unit is triggered.
The min / max pot controls sensitivity. See the external links I provide for more detail on how to use that. I have thus far had it on max. Reducing sensitivity may allow operations at closer range when using the reflector panel.
The sensor contains an emitter and a receiver. Presumably, the emitter is always emitting.
The counter module will count UP when the ORANGE light on the sensor comes on.
You can trigger the sensor when something reflective gets near the sensor without the reflector plate, or when something comes between the sensor and the reflector plate. You can trigger the sensor when something enters the beam, or when something leaves the beam. Reflective doesn't have to be a mirror. Any non black object will reflect light. There are 4 permutations.
Trigger upon:
1) Object NEAR sensor, when ENTERING beam - Set sensor for Light mode. Point sensor into empty space. Rotate L / D pot all the way to L. Orange light may start to illuminate. Back off pot until orange light is off. Bring your hand or a non black object near the sensor. It should trigger. The orange light should light up. And the counter should count up.
2) Object NEAR sensor, when LEAVING beam - Set sensor for Dark mode. Point sensor at the reflector panel about 1" away. Rotate L / D pot all the way to D. Orange light may start to illuminate. Back off pot until orange light is off. Remove the reflector panel. Point the sensor into empty space. It should be triggered and the orange light should be on. Bring your hand near the sensor. The trigger should go off and the orange light should go off. When you remove your hand, the sensor should trigger, the orange light should come on, and the counter should count up.
3 Object BETWEEN sensor and reflector plate, when ENTERING beam - Set sensor for Dark mode. Point sensor at the reflector panel about 1" away. Rotate L / D pot all the way to D. Orange light may start to illuminate. Back off pot until orange light is off. Remove the reflector panel. Put the reflector panel about 2' away and point the sensor at it. The orange light should go off. Put your hand between the sensor and the reflector plate NEAR the reflector plate. The sensor should trigger. The orange light should come on and the counter should count up. This will NOT WORK if you hand is too close. Your hand must do more blocking than reflecting. The sensor must see a substantially darker signal with your hand there.
4) Object BETWEEN sensor and reflector plate, when LEAVING beam - Set sensor for Light mode. Point sensor into empty space. Rotate L / D pot all the way to L. Orange light may start to illuminate. Back off pot until orange light is off. Put the reflector panel about 2' away and point the sensor at it. The sensor trigger should go on and the orange light should go on. Put your hand between the sensor and the reflector plate NEAR the reflector plate. The sensor trigger should go off and the orange light should go off. This will NOT WORK if you hand is too close. Your hand must do more blocking than reflecting. The sensor must see a substantially darker signal with your hand there. When you remove your hand from the beam, the sensor should trigger, the orange light should go on, and the counter should count up.
I've found this sensor and counter kit very interesting to play with and it works fine as long as you know how to set it up. Here are the external documents I've found on an American automation site. They are either for this sensor or are very similar.
Hope you find this information useful.
May your bits be stable and your interfaces be fast.
Last edited: