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: How to ouput signals on mame for a ticket dispencer  (Read 4737 times)

0 Members and 1 Guest are viewing this topic.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
How to ouput signals on mame for a ticket dispencer
« on: February 13, 2011, 10:03:21 pm »
Basically what i want to do, its build a lotto fun dedicated cab and hook a ticket dispenser, but I'm really lost on how to do that, at first i saw mamehooker, but i think that's for leds only, not for tickets.So I'm asking for some help in here to see ii can achieve something, Any help its appreciated, thanks

newmanfamilyvlogs

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1694
  • Last login:June 15, 2022, 05:20:38 pm
    • forum.arcadecontrols.com/index.php/topic,103584.msg1096585.html#msg1096585
    • Newman Family Vlogs
Re: How to ouput signals on mame for a ticket dispencer
« Reply #1 on: February 14, 2011, 08:28:27 am »
As long as your ticket dispenser only expects a 'pulse', then the output of mamehooker should work just fine. Someone is using the same software to drive 'kicker solenoids' over in a Q*Bert thread.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
Re: How to ouput signals on mame for a ticket dispencer
« Reply #2 on: February 14, 2011, 12:24:49 pm »
i still have not look at this , but i wonder, mamehooker outputs only leds on lotto fun , i dont see how to hook mamehooker to output the ticket dispencer...

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to ouput signals on mame for a ticket dispencer
« Reply #3 on: February 14, 2011, 02:57:10 pm »
i still have not look at this , but i wonder, mamehooker outputs only leds on lotto fun , i dont see how to hook mamehooker to output the ticket dispencer...

Mamehooker doesn't output ANYTHING... it interfaces to what MAME outputs.  So if a ticket output isn't found by mamehooker then it doesn't exist in the mame driver. 

Also the whole "mamehooker only works on leds" comment is a little dis-heartening. 

you might want to check the about page.   ;)

http://dragonking.arcadecontrols.com/static.php?page=aboutmamehooker

Kevin Mullins

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4504
  • Last login:February 01, 2021, 01:29:34 pm
    • Me on Myspace
Re: How to ouput signals on mame for a ticket dispencer
« Reply #4 on: February 14, 2011, 04:08:44 pm »
Whaaaaaat ?!? ... Mamehooker doesn't put out ?

 ;)

We actually briefly touched on this subject about Lotto Fun in this thread http://forum.arcadecontrols.com/index.php?topic=100427.0 (somewhere down in there anyways)

Basically MAME has an "LED" output for that game, so that "output" can be used for whatever you want basically, including a ticket dispenser pulse of sorts. Doesn't matter that they call it an LED output.... an output is an output. I hadn't messed it it any myself, but certainly seems feasible with Mamehooker.
Not a technician . . . . just a DIY'er.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to ouput signals on mame for a ticket dispencer
« Reply #5 on: February 15, 2011, 08:00:53 am »
Just tried that game.  Boy whoever hooked it up in the driver sure was sloppy.  Not only is it set to an led, but it's set to "led2" instead of "led0". 

The output macro system in mame is so frikkin easy to set labels (literally one line of code) that this is a little sad.  Looks like it flashes the proper amount of tickets though.  I would say to use the parallel port for somethign this simple, but that whole "active high on boot" deal is going to spit out half a roll of tickets on startup.  The keyboard led might be a good bet if the ticket dispensor is all one wants to hook up.  It'll take a bit of circuitry to ramp up the voltage though. 

Kevin Mullins

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4504
  • Last login:February 01, 2021, 01:29:34 pm
    • Me on Myspace
Re: How to ouput signals on mame for a ticket dispencer
« Reply #6 on: February 15, 2011, 08:32:05 am »
It'll take a bit of circuitry to ramp up the voltage though. 

Why ramp up the voltage ?
Most ticket dispensers have an external power source constantly fed and a pulse triggers the circuitry on the dispenser to kick in the motor.

Or do you think the keyboard led pulse would be too weak even for that?
Not a technician . . . . just a DIY'er.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to ouput signals on mame for a ticket dispencer
« Reply #7 on: February 15, 2011, 09:38:57 am »
It'll take a bit of circuitry to ramp up the voltage though. 

Why ramp up the voltage ?
Most ticket dispensers have an external power source constantly fed and a pulse triggers the circuitry on the dispenser to kick in the motor.

Or do you think the keyboard led pulse would be too weak even for that?

Well I'm not particularly familair with ticket dispensors, but usually arcade tech needs a 5v signal to trigger anything.  Keyboard leds put out around 1.5 volts.  That doesn't mean it won't work though, it just might not.

Kevin Mullins

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4504
  • Last login:February 01, 2021, 01:29:34 pm
    • Me on Myspace
Re: How to ouput signals on mame for a ticket dispencer
« Reply #8 on: February 15, 2011, 08:19:36 pm »
Well I'm not particularly familair with ticket dispensors, but usually arcade tech needs a 5v signal to trigger anything.  Keyboard leds put out around 1.5 volts.  That doesn't mean it won't work though, it just might not.

Ah, good point.
I don't recall off hand what the typical dispenser pulse voltage is really. I'd have to check that out on an original boardset and ticket dispenser I have around here somewhere. (not anytime soon though)
But I see what ya mean.
Not a technician . . . . just a DIY'er.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
Re: How to ouput signals on mame for a ticket dispencer
« Reply #9 on: February 16, 2011, 12:20:32 pm »
thanks guys, anything i can do so we can get this working?
And Howard , what did you mean by   the whole "active high on boot" ?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to ouput signals on mame for a ticket dispencer
« Reply #10 on: February 16, 2011, 01:17:22 pm »
Well modern parallel ports essentially turn all the output pins on during bootup and I think windows does this as well.  They would be stuck in an "on" state for several seconds.  That's ok for lights, but not for motors and especially not for something spitting out tickets. 

You can get it working easily once you figure out the hardware interface you are going to use.  Bind a command to "led2" in mamehooker for that game and it should work just fine. 

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
Re: How to ouput signals on mame for a ticket dispencer
« Reply #11 on: February 16, 2011, 05:53:11 pm »
Well modern parallel ports essentially turn all the output pins on during bootup and I think windows does this as well.  They would be stuck in an "on" state for several seconds.  That's ok for lights, but not for motors and especially not for something spitting out tickets. 

You can get it working easily once you figure out the hardware interface you are going to use.  Bind a command to "led2" in mamehooker for that game and it should work just fine. 
I think im goin to study mamehooker and do a few trys before i start buggin you with some stupid questions, ill post results as soon as i get som, thanks howard.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
Re: How to ouput signals on mame for a ticket dispencer
« Reply #12 on: February 16, 2011, 07:33:03 pm »
Im trying mamehooker on my keyboard with settings:
for lottofun
[General]
MameStart=
MameStop=
StateChange=
[Output]
Orientation(\\.\DISPLAY1)=
led2=kbd 1 1

But i only get the keyboard too light the numlock led but i does not turn the led on and off as its supost to do.
Do i have the right settings or im doing it wrong? thanks

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to ouput signals on mame for a ticket dispencer
« Reply #13 on: February 17, 2011, 09:58:18 am »
You need to read the entire readme. 

Look at your script... it's setting the led to on (1) instead of the current state.  (%s%)

you want

kbd 1 %s%

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 15, 2025, 09:27:36 pm
Re: How to ouput signals on mame for a ticket dispencer
« Reply #14 on: February 17, 2011, 11:22:21 am »
Thanks Casto, i reed the readme file, over and over, but maybe because english its my first lenguage, i dont fully understand'it, i do my best, or maybe this amme hooker its way over of what i can understand. Thanks :cheers: