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: Requesting help from you programmery folks  (Read 1542 times)

0 Members and 1 Guest are viewing this topic.

johnnysmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:November 16, 2006, 02:22:05 pm
  • I want you to MAME me as hard as you can
Requesting help from you programmery folks
« on: November 09, 2004, 10:22:17 am »
Hey all - I'm getting very very close to finished [yeah right, like these things are ever really finished...] on my machine [ http://www.arcadecontrols.org/yabbse/index.php?board=10;action=display;threadid=21886;start=80 ], and I've been brainstorming a feature that I'd LOVE to implement if I could get some help on it - I have some side pinball buttons (currently black) that I'd like to switch out with white ones and light up, like my player start buttons.  The catch is, I wanna make them only light up when I'm playing VisualPinmame... and I'm not quite sure how I'd go about this... any help w/this would be awesome

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re:Requesting help from you programmery folks
« Reply #1 on: November 09, 2004, 10:31:19 am »
Hey all - I'm getting very very close to finished [yeah right, like these things are ever really finished...] on my machine [ http://www.arcadecontrols.org/yabbse/index.php?board=10;action=display;threadid=21886;start=80 ], and I've been brainstorming a feature that I'd LOVE to implement if I could get some help on it - I have some side pinball buttons (currently black) that I'd like to switch out with white ones and light up, like my player start buttons.  The catch is, I wanna make them only light up when I'm playing VisualPinmame... and I'm not quite sure how I'd go about this... any help w/this would be awesome

  Didn't you just post something about this in the Project Announcements forum?  I assume you technically know how to hook up the lights, at least with the help of the links posted there.

  You have an IPAC, so wouldn't it be a matter of sending the NUMLOCK sequence when you start up VisualPinmame, maybe from a batch file?

-Steve

johnnysmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:November 16, 2006, 02:22:05 pm
  • I want you to MAME me as hard as you can
Re:Requesting help from you programmery folks
« Reply #2 on: November 09, 2004, 10:50:33 am »

Yes, you are indeed perceptive  ;)  - I've got buttons lit up already (simple to do when you're not stuck at work making it more complex in your head than it really is] I just wanted to try to figure out how to make buttons light up conditionally like this.  I've already thought about doing it with the NUMLOCK signal thru the ipac - just wanted to know if that was the BEST way [I wouldn't really mind if they responded to some of the classics that light up the numlock lights as well - mainly just want them to light for pinmame tho].  Also, I have minimum experience with any kind of programming, so I need help on how to write said batch file and how to set it up with the wrapper/pinmame...
« Last Edit: November 09, 2004, 10:52:37 am by johnnysmitch »

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:Requesting help from you programmery folks
« Reply #3 on: November 09, 2004, 11:05:39 am »
This is the kindof thing which would be ideal for Druins serial-hardware project.  A FE could easily launch Druins program accordingly to do this.

So I would say this is arguably the best way, but almost certainly not the easiest.

johnnysmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:November 16, 2006, 02:22:05 pm
  • I want you to MAME me as hard as you can
Re:Requesting help from you programmery folks
« Reply #4 on: November 09, 2004, 11:12:15 am »
This is the kindof thing which would be ideal for Druins serial-hardware project.  A FE could easily launch Druins program accordingly to do this.

So I would say this is arguably the best way, but almost certainly not the easiest.

not familiar with this project - I have a feeling it's something of an overkill for what I wanna do, but I'd be interested in checking it out none the less... any links?

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:Requesting help from you programmery folks
« Reply #5 on: November 09, 2004, 11:23:12 am »
not familiar with this project - I have a feeling it's something of an overkill for what I wanna do, but I'd be interested in checking it out none the less... any links?

Do a search in this Software forum for 'druin serial hardware' or something...sorry I don't have a link.

It probably would be overkill, but would allow for plenty more interesting projects ;)

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re:Requesting help from you programmery folks
« Reply #6 on: November 09, 2004, 11:28:13 am »
not familiar with this project - I have a feeling it's something of an overkill for what I wanna do, but I'd be interested in checking it out none the less... any links?

  Yeah, it's pretty much overkill for what you want to do but it will work!

http://www.arcadecontrols.org/yabbse/index.php?board=3;action=display;threadid=24824

  This numlock utility will help you turn on and off your numlock status from a batch file and is probably the easiest to set up.  Isn't there a mame config parameter to control whether or not the MAME games play with the keyboard lights?

-Steve

Edit: Dang it, this BBS software doesn't like FTP URLs.  Here is the webpage I got the link off of.
« Last Edit: November 09, 2004, 11:34:17 am by screaming »

johnnysmitch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:November 16, 2006, 02:22:05 pm
  • I want you to MAME me as hard as you can
Re:Requesting help from you programmery folks
« Reply #7 on: November 09, 2004, 11:50:54 am »
ah yes, Druins project looks like it would be a big overkill for this, but the possiblilities available with such a device would be pretty hot - just in lighting alone, it would be sweet to have only the appropriate controls for a game light up when you launch it...

Oh, and thanks for the numlock utility link Screaming - I'll check it out when i get home from work

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Requesting help from you programmery folks
« Reply #8 on: November 10, 2004, 03:43:21 am »
I have an in-between solution that might be more acceptable.  

The parallel port has 8 (optionally 10, but let's not complicate things)  i/o lines that can be easily controlled in vb with the help of a dll.  I've experimented with these ports and have easily wired some leds up.  The best part is the voltage these pins put out is the near exact voltage that standard leds use.  No complex wiring, no nothing!  Straight wire an led to one of the pins and a common ground pin and you are good to go.  

Of course if you need a higher voltage light you would have to instead hook these pins up to a relay which would do the switching, but that would be true for any of these methods.  

It's one of my side projects on the back-burner, but if you'd rather use this method pm me and I can give you the info you need.  I might even be able to whip up a quick command line app to switch the lights.  

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Requesting help from you programmery folks
« Reply #9 on: November 11, 2004, 09:41:57 pm »
For anyone that's interested:

http://www.epanorama.net/circuits/parallel_output.html

For the record.... although this site and many technical docs say that the average voltage output for the i/o lines is 5 volts, I've found when all 8 are used in a full load it's something closer to 3.5-4 volts.  So my advice is to try the resistors and if the leds are too dull remove them.  :)

And contrary to popular belief the parallel port is fully controllable in xp, the only catch is during the bootup all the pins are stuck in the "on" position.  So obvioulsy it's not going to work well for a knocker, but other than that... all is well.  

rockhopper

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 116
  • Last login:December 26, 2015, 05:15:36 pm
  • I love orange soda!
Re:Requesting help from you programmery folks
« Reply #10 on: November 11, 2004, 09:55:16 pm »
Quote
during the bootup all the pins are stuck in the "on" position.  So obvioulsy it's not going to work well for a knocker

in terms of burning out the solenoid you mean?

using some electronic trickery, a circuit could easily be designed to send a short pulse to the knocker when it detects a rising edge. This would solve the problem, but cause a 'knock' every time the machine is booted up. of course you could have a delay so the circuit is disabled for however long to circumvent this further.

in fact, since you would need some form of knocker controller (however simple it may be), the inclusion of these minor features shouldnt add to much effort.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:Requesting help from you programmery folks
« Reply #11 on: November 12, 2004, 06:21:35 pm »
While I'll agree with that, the whole point of using this method is eliminating complicated electronic circuits.  There are methods to use a knocker via the parallel port that are xp friendly, but they are just as complicated as druins interface, in which case you might as well build it as it has more functionality.