Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: keywiz and optical switch  (Read 1872 times)

0 Members and 1 Guest are viewing this topic.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
keywiz and optical switch
« on: November 15, 2003, 11:24:48 pm »
Do you have an idea of how I can interface an optical switch (and LED/phototransistor pair) to a keywiz input?
My homemade mechanical coin/token switch broke and I'd like replace it with an optical sensor.
« Last Edit: November 23, 2003, 07:21:26 pm by papaschtroumpf »

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:keywiz adn optical switch
« Reply #1 on: November 16, 2003, 10:56:46 am »
If its 5 volt you can get the poewr from the i-pac.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:keywiz adn optical switch
« Reply #2 on: November 16, 2003, 01:18:52 pm »
you mean the keywiz? Yes, I got email from RandyT telling me it was OK to power it from  the keywiz 5V.
I guess what I'm really asking is how do I hook the phototransistor to get the desired effect. I mostly posted here because I thought RandyT was unavailable but he has since anwered my direct email.
I'll post back here if I get it working, but it's probably going to be a few ays until I get to it...

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:keywiz adn optical switch
« Reply #3 on: November 16, 2003, 10:58:01 pm »
Isn't it just like a regular swith except it has a 3rd wire to connect to power? Same way you hook up a p360 joystick. I don't really know what switch you have so I'm just guessing here.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

OSCAR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1770
  • Last login:September 06, 2018, 11:31:53 pm
  • I think Bigfoot is blurry, that's the problem...
    • Oscar Controls
Re:keywiz adn optical switch
« Reply #4 on: November 17, 2003, 12:20:56 am »
You should be able to do this.  I've used optical switches with an I-PAC and it works just fine.

Wire the anode of the LED in series with a current limiting resistor to +5V and the cathode to GND.  Then connect one side of the phototransistor to GND, and the other to the button input.  Just be aware that an optical switch will be 'always on' when you don't have anything blocking the transistor from picking up the LED.   I suppose you could use some type of inverter circuit to make the output 'always off' when the transistor isn't blocked, but I haven't experimented with that.




papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:keywiz and optical switch
« Reply #5 on: November 23, 2003, 07:26:46 pm »
I've found the perfect solution: Optek OPB 490 series "11"  (about $1.25 a piece at my local electronic store).
Those are "all in one" light switches with a slot in the middle. Anything that breaks the beam causes the "switch" to appear closed, so the inverting problem Oscar mentions is not an issue.
The switch includes its own built-in pull-up and amplification circuit for the output, so all you have to provide is a single resistor to limit the current in the LED.
Works great with my keywiz...