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: Optical Buttons?  (Read 12603 times)

0 Members and 1 Guest are viewing this topic.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Optical Buttons?
« Reply #40 on: May 10, 2005, 07:47:36 am »
The way the circuit is wired, it's backwards. So it would work properly if you held all buttons and let go of the one you want pressed.
Wouldn't this mean that it should work fine if you swapped the NC and NO wires?  (Sorry if I misunderstood).
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Optical Buttons?
« Reply #41 on: May 10, 2005, 07:39:58 pm »
Nope, you must respect the polarity of the photo-transistor as well as LED. I can't stress this enough. The proper way to make an optical switch is to buffer the signal and prevent hysterisis. The 74ls14 chip will do it for you. It has 14 pins: 2 for power, 6 for inputs, and 6 outputs. So you can buffer 6 buttons with one chip.

If you look about 8 posts back, you'll find the schematic I posted. And the method to reverse the logic is in that schematic as well. All that needs to be done is to swap the positions of the photo-transistor and it's resistor. So in the schematic, the photo-transistor is between the signal wire and gnd. Well, you put the resistor between those 2 wires instead.
An ounce of image is worth a pound of performance.