10 years ago.

Using opto reflective sensor output as input to DigitalIn pin

When I try to use mbed DigitalIn to count when an opto reflective sensor passes over a piece of reflective tape, I would like for it to count just a single time. As soon as the opto reflective sensor passes over the tape, DigitalIn has counted numerous times instead of just once as desired. I do not no how to fix this problem by software, but I think there may be a simple solution to my problem.

I would like for the opto reflective sensor output which is being input as a DigitalIn to mbed to only count up 1 time each time the sensor passes over the reflective tape.

I would appreciate any help.

Thanks-

Question relating to:

Be the first to answer this question.