I need to order and hookup a slotted optical switch to a Propeller, but before I place my order, I would like some feedback as to my selection, and any advice on properly hooking this switch to a Propeller.
First off, please allow me to describe the scenario. My project is utilizing two different size enclosures, the bottom enclosure houses the electronics, as well as having a machine attached to it, and the top enclosure simply acts as a lid and shield against rays from a UV laser. I want to put a slotted optical switch on the bottom enclosure and a blocking vane on the top enclosure, so that when the lid is lifted, output to the UV laser is disabled.
Out of the wide array of choices, I have narrowed my selection down to this part: OPB980T55Z Datasheet: https://ttelectronics.com/TTElectronics/media/ProductFiles/Optoelectronics/Datasheets/OPB960-990.pdf
Unless I am mistaken, it seems to me that the selection process has become more difficult, because I don't remember there being four choices in the past. These four choices are, as numbered in the datasheet: 0) Buffer Totem-Pole 1) Buffer Open-Collector 2) Inverter Totem-Pole 3) Inverter Open-Collector.
The device I selected, is the 0) Buffer Totem-Pole type. So question number one is, can I accomplish the desired task with the OPB980T55Z device?
Providing that this device will work and considering this device has a minimum supply voltage of 4.5V, my intent is to simply supply it with a regulated 5V, which I would then assume that I would need a 1K ~ 10K series resistor on the output of this device and going to a Propeller pin. I am fairly certain that this assumption is correct, if my memory serves me correctly.
Furthermore, I believe, if I am interpreting everything correctly, although not 100% certain, that I will also need a 100 Ohm series resistor going to the anode of this device.
Any guidance on this issue will be sincerely appreciated.