Hi, I am trying to create a break beam sensor using infrared.
I want to mount the detector 30cm away from the emitter. When an object passes through the beam I should be able to read this with my arduino.
I tried with this to begin with: https://www.sparkfun.com/products/241
this was successful when transmitting the beam over about 4cm. It read 39 over analog when there was a beam and 999 ish when the beam was interrupted.
When I tried this over greater distances the performance worsened the further I moved them apart. At 30cm it is really unpredictable and its performance is affected greatly by the level of ambient light in the room.
So I am looking at other solutions. I saw this article/ project: https://www.sparkfun.com/tutorials/282
They have created a successful break beam over what looks about 6ft of distance. They said they used this receiver:https://www.sparkfun.com/products/10266
I am just wondering what emitter they paired it with. He states that he got the emitter emitting at 38Khz using code.
I was wondering if you can ready buy emitters that emit at 38khz?
Either way can anyone suggest a good emitter to pair it with. I am looking at this:https://www.sparkfun.com/products/10732
Would it be easy to drive this at 38khz using pwm or something?
Thanks for any help you can offer, Will offer much karma in return !