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: Game counters on mame cabinet?  (Read 4911 times)

0 Members and 1 Guest are viewing this topic.

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Game counters on mame cabinet?
« on: June 24, 2021, 03:10:54 pm »
My cabinet came equipped with a Magnetic pulse counter that would increase at each games.

It was a bit over 40000. I don't know if it played for dollars or quarters, but even then that's about 10000$!


Anyone uses these electromechanical counters in their cabs?
-Mars

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #1 on: June 24, 2021, 03:43:33 pm »
Mine looks a lot like this one, with values in the 0 to 999999 range and no reset or settings.

I am currently having it run on an arduino, to have it rollover back to zero. Only 820000 clicks left to go!

I'll have my button interface click it once for every coin entered.
-Mars

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #2 on: June 24, 2021, 07:30:38 pm »
Look at the unit digit turning!
-Mars

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #3 on: June 26, 2021, 11:10:29 pm »
Slowly getting there.
-Mars

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3431
  • Last login:Today at 10:41:12 am
Re: Game counters on mame cabinet?
« Reply #4 on: June 27, 2021, 02:33:41 am »
Coin counters are common on commercially operated cabs. They keep everyone honest. The operator and the site owner, and any other players involved, know exactly how many coins have passed through the cab and therefore what payments are due. You reconcile between what the coin counters say and how much money is in the coin box.
Check out my completed projects!


Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #5 on: June 27, 2021, 07:55:38 am »
Exactly @Zebidee

The machine I got had seen a bit over 40000 coins!
That's much more than the machine's worth!

I'm wanting to have a reset counter in the cab mainly to figure out the machine usage. How many games was played on it since I converted it in 2010?

I have no clue.


I'll install this counter with my upgrades, so I can keep track.
-Mars

mikew72

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:July 21, 2023, 04:55:55 pm
  • I want to build my own arcade controls!
Re: Game counters on mame cabinet?
« Reply #6 on: June 27, 2021, 08:06:59 am »
My cab was made in 1995 for a 4 slot NeoGeo.  It was set to 50p per play and the counter shows 0237542.  That means it's taken around £120000  in its lifetime... It's a shame the coin box has been emptied  :(

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3431
  • Last login:Today at 10:41:12 am
Re: Game counters on mame cabinet?
« Reply #7 on: June 27, 2021, 11:58:47 am »
I'm wanting to have a reset counter in the cab mainly to figure out the machine usage. How many games was played on it since I converted it in 2010?

I have no clue.

I'll install this counter with my upgrades, so I can keep track.

I appreciate your effort - most people just write the numbers in a log book, then do the math :D
Check out my completed projects!


Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #8 on: June 27, 2021, 12:07:48 pm »
Yeah it is taking much longer than I originally thought.
Not that it's a bigger effort...

But to have a reliable click to count, I need about 50ms power followed by about 50ms rest.

I tried shorter and it would sometimes get in a state where it doesn't increment unless we release it for a short while.



Right now it makes 1 unit every 100ms - or 10 units per seconds if nothing glitches.

I had 860000 units to click trough, so 86000 seconds. Or 1434 minutes. Which is near a full 24 hours.


Being that I don't really want to leave it unattended, I do it by batches of about 100000 to 200000... I'll bring it to 999900 to run installation test with the coin door and bring it to 000000 when everything is finalized and the cabinet update finished. Like a new cab!!


Not as easy as using a logbook, but much more fun.

In the meantime, we hear "click click click click" cobstently.
-Mars

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:Yesterday at 12:46:10 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Game counters on mame cabinet?
« Reply #9 on: June 27, 2021, 12:18:20 pm »
just a quick question.

How are you going to connect it to your Mame Running Cab ?
What encoder are you using ?

Cause my counter was 5vdc (lots of counters are 5,6,12,24 some DC some AC) and I can/could not hook it directly to my IPAC.
If I did, I probably fried my IPAC.

What I end up was creating an OPTO-SWITCH to trigger the counter when coin was inserted (later on I ditch connecting it entirely cause it's just for home).


Just make sure, you won't fry anything when your adventure resetting it to 00000 is done.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #10 on: June 27, 2021, 12:29:51 pm »
The pin from a microcontroller such as an ipac can't properly power the counter. But with small added circuitry (a simple transistor) and a power source (mine is meant for 6volts, I power it from the raw 5v from usb and it works) you can trigger it reliably without putting undue stress to your controller.

On my end I want to implement the control buttons, coins slot and start buttons on an arduino pro micro - separate from the control panel.

So, in my arduino-built keyboard encoder, whenever I will have a coin entered, I'll also flicker an output pin connected to said transistor, which will click the counter.

The circuit is simple. One transistor between power and counter to ground.

If there's interest I could properly document the whole thing. It really isn't much complex, and rather cheap.


Edit: having issues posting my prototype build
« Last Edit: June 27, 2021, 12:35:29 pm by Marsupial »
-Mars

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #11 on: June 27, 2021, 12:36:59 pm »
In the meanwhile, less than 300000 clicks to go
-Mars

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #12 on: June 28, 2021, 09:47:22 pm »
I figured out that the hickups were vibration related.

Somehow the powerline on the circuit wasn't always reliable, because when it failed to click, what would bring it back was to hold the circuitry in place.

So I built my board instead of experimenting on breadboard.

Now I can increment units every 25 ms very reliably with zero skips. Makes things much faster.

I am also finishing the prototype code for the keyboard encoder that'll go in there. With similar denouncing to other encoders such as ipac.
-Mars

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1381
  • Last login:February 15, 2025, 12:57:26 pm
  • Bitches love Centipede
Re: Game counters on mame cabinet?
« Reply #13 on: June 29, 2021, 08:42:38 pm »
What do you count as a "game"?

Is this going to count an "insert coin to continue" scenario as a new "game" or is a continue part of the last "game"? Multiplayer games count as one?

I guess, what exactly in MAME are you using to send a signal to this to roll over one click?
%Bartop

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #14 on: June 30, 2021, 06:00:45 pm »
What do you count as a "game"?

Is this going to count an "insert coin to continue" scenario as a new "game" or is a continue part of the last "game"? Multiplayer games count as one?

I guess, what exactly in MAME are you using to send a signal to this to roll over one click?
Same as what old arcade did, it mainly count inserted coins.

It isn't linked to mame per say, but counts the number of inputs on the coin related buttons.

So, yeah, insert game to continue will count.

There is no perfect solution, but it will give an overall sense of usage.
-Mars

meyer980

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 387
  • Last login:July 06, 2025, 01:18:25 pm
  • Building fun things for fun
    • sergiostuff.com/2020/04/15/felix-son-arcade-game/
    • Sergio Stuff
Re: Game counters on mame cabinet?
« Reply #15 on: July 01, 2021, 03:42:13 pm »
Marsupial is right that there isn't a perfect solution...for example, many games have a service switch that would insert a credit but NOT trigger the coin counter (make sense). Games in MAME don't always have that service switch button as an input option.

From what I understand, coin counters weren't always one-to-one with the credit switches themselves either. They were a separate line that the game had to account for and trigger (at least it's this way in Nintendo Vs. machines)

Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: Game counters on mame cabinet?
« Reply #16 on: July 01, 2021, 03:54:35 pm »


From what I understand, coin counters weren't always one-to-one with the credit switches themselves either. They were a separate line that the game had to account for and trigger (at least it's this way in Nintendo Vs. machines)

Having interfaced the counter on my arduino-based button encoder, I had to supply 5v and interface trough a transistor. Therefore, I'd think the game pcb would indeed have to trigger the counter, not simply the coin switch.

Now, how it was interfaced (at coin insertion, at game start, whatever) I guess it depended on the game or manufacturer...

That said, I mainly click for each coin inserted on mine, so to count an approximate number of games. It's more precise than having no counter for sure.
-Mars

Nephasth

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1381
  • Last login:February 15, 2025, 12:57:26 pm
  • Bitches love Centipede
Re: Game counters on mame cabinet?
« Reply #17 on: July 02, 2021, 10:23:43 pm »
Marsupial is right that there isn't a perfect solution...for example, many games have a service switch that would insert a credit but NOT trigger the coin counter (make sense). Games in MAME don't always have that service switch button as an input option.

From what I understand, coin counters weren't always one-to-one with the credit switches themselves either. They were a separate line that the game had to account for and trigger (at least it's this way in Nintendo Vs. machines)

Yep. This topic is labelled "game" counter. Only reason I had questions. Counting coins is what these are for. I was excited... for one second.
%Bartop