How To Hook Up an Optek Slotted Switch to a BASIC Stamp 2 setup
Midnighter
Posts: 13
A fellow robotics enthusiast recently gifted me with a handful of these Optek slotted switches that I could use for my machine's 'coin-op' activator, letting a nickel fall through a narrow slot with this switch incorporated into it so that it easily reads a reaction to activate the rest of my machine's sequence.
Problem is, I'm at something of a loss on just how to hook this up. I'm okay with LED switches, servos, and basic pushbuttons (I've been teaching myself gradually using the deluxe "What is a Microcontroller" package), but on this thing I fully confess to being a little stumped.
The switch is one of these series: http://www.optekinc.com/products/opto_slotted_N.asp (Part number listed is KB8190). Could one of you folks be good enough to give me a breakdown on how to hook it up and test it with a Basic Stamp 2 arrangement? Thanks.
Problem is, I'm at something of a loss on just how to hook this up. I'm okay with LED switches, servos, and basic pushbuttons (I've been teaching myself gradually using the deluxe "What is a Microcontroller" package), but on this thing I fully confess to being a little stumped.
The switch is one of these series: http://www.optekinc.com/products/opto_slotted_N.asp (Part number listed is KB8190). Could one of you folks be good enough to give me a breakdown on how to hook it up and test it with a Basic Stamp 2 arrangement? Thanks.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
I need a ten(10) min. delay routine while monitoring a pin for High/Low...I will exit the routine when the pin changes state. I tried a nested for/next loop, but want to know the best way with PBASIC.