element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum How would I program a coin acceptor?(raspberry pi)
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 669 subscribers
  • Views 7150 views
  • Users 0 members are here
  • raspberry
  • pi
  • coin
  • slot
  • arcade
  • raspberry_pi
  • acceptor
  • cabinet
Related

How would I program a coin acceptor?(raspberry pi)

barney_bear2002
barney_bear2002 over 10 years ago

I want to make a raspberry pi arcade cabinet but I don't know how you would have it to only allow the user to place their game of choice when they have paid, and to let them play more than once if they pay more than necessary

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 9 years ago

    Guys, can you please help me? I have the same problem as Tony Forbes and none of the answers above really solve it.

     

    I have a working coin acceptor thing (3 of them actually, but one fits where I want it better so I'd prefer to use that if possible) from an old pub gambling machine like Peter Oakes suggested getting.

     

    My problem is that I have no idea how to physically connect it to my raspberry pi and absolutely no idea how to program it to work with the games.

     

    I have got some ROMs where there are 'credits' built in (arcade versions of games basically), but atm I just press 1 or 5 to add credits. How do I make it so that adding coins in the coin slot works with the ROM and is the only to add credits? The fact that you can use the keyboard atm shouldn't be a problem since I'm building an arcade machine and I don't plan on attaching a keyboard (except when modifying it).

     

    I'm really stuck on this at the moment, so any help would be greatly appreciated.

     

    Thanks in advance.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago in reply to Former Member

    This is a purly speculative answer but...

     

    1. For the PI, you can react to a GPIO pin and inject a character (5, or 1) into the keyboard stream, i'm sure there are plenty of examples on how to do this. and it would be easy to test and simply adding a switch with pull up (Pull Up can be programmed) to the gpio would be enough to test

     

    For the coin acceptor, it depends on what it outputs when a coin is accepted and if it is a pulse output you can feed it through an opto isolator to the GPIO pin used in the above test (Switch) and away you go. If it is from an old vending machine I doubt it will be 3V3 compatible, therefor the need for the opto isolator

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago in reply to Former Member

    This is a purly speculative answer but...

     

    1. For the PI, you can react to a GPIO pin and inject a character (5, or 1) into the keyboard stream, i'm sure there are plenty of examples on how to do this. and it would be easy to test and simply adding a switch with pull up (Pull Up can be programmed) to the gpio would be enough to test

     

    For the coin acceptor, it depends on what it outputs when a coin is accepted and if it is a pulse output you can feed it through an opto isolator to the GPIO pin used in the above test (Switch) and away you go. If it is from an old vending machine I doubt it will be 3V3 compatible, therefor the need for the opto isolator

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube