You can also use a hall effect IC and a small magnet. The hall effect ic's come in a 3 pin TO-92 package and are easy to interface to your micro.
For example
...
ARGH! That's what they're called. :D I knew these existed, I just didn't know their names.
Demon Yesterday, 22:53Search optical interrupter. These are used often for homing.
...
There will be minimal light leakage. These will be on either side of a disk, as close as I can get them.
I plan on putting black heatshrink over the LEDs as close as I can to the rotating disk.
...
if there is any ambient light leakage a ir sensor like SEN-19018 would be better than a photo diode, with the bonus of making
led modulation unnecessary too.
if the distance between led and...
Using this 940nm LED set on Amazon: https://www.amazon.ca/dp/B01HGIQ8NG
Can I have the transmitter LED on without any pulsing? (resistor values are temporary, did not do any calculations yet)
...
Re: InfraRed ramblings
Thanks Mark!
Demon Today, 03:24I was considering laying a limit switch flat along the outer edge of the disk, and use a notch to catch the limit switch roller. But I'm liking the hall sensor even more:
- no...