The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-25-2006, 01:00 PM   #1
Low Bitrate
 
bl3nd3r's Avatar
 
Join Date: Jun 2006
Location: Pickering, Ontario, Canada
Posts: 104
USB Game Pad Buzzer Program

I have volunteered to help make a family feud type game show for my church's youth group in two weeks. Right now I am trying to make a small program that would allow two USB game pads to be plugged in and used as buzzers. Whoever pushing the button first their side of the screen lights up. It has to be able to have only one side light up at a time and would blink for about 10secs.

I have some experience with Visual Basic and would appreciate any help with coding.

Thanks.
bl3nd3r is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-25-2006, 01:07 PM   #2
MySQL Error
 
scott_fx's Avatar
 
Join Date: Dec 2004
Location: Los Angeles Ca
Posts: 3,675
do you need to have it connected to compuer?
__________________
New System in progress:
M10k
Phaze TD1500 ~> Dynaudio MD130
Phaze TD1500 ~> Seas g18rnx/p
Zapco Ref 500.1 ~ 12" tc-9
Behringer DCX2496 ~ Envision Electronics psu
Transflective Xenarc

My Car Pc Install
scott_fx is offline   Reply With Quote
Old 09-25-2006, 01:09 PM   #3
Low Bitrate
 
bl3nd3r's Avatar
 
Join Date: Jun 2006
Location: Pickering, Ontario, Canada
Posts: 104
I just thought it would be easiest to use a laptop or just have a screen up on the table with the buzzers. I have in the past done this using switches and lightbulbs but thought this would be an easier solution.
bl3nd3r is offline   Reply With Quote
Old 09-25-2006, 01:13 PM   #4
Raw Wave
 
lostreception's Avatar
 
Join Date: Sep 2004
Location: NY
Posts: 1,803
well im not 100% sure but can you do something as simple as have more than one mouse and then get the device ids of the mice and when each is pressed trigger the input? like the left click or any click for that matter
__________________
.______
| '_ |__\___
[(o)|___(o)] XB
._________
| I__I I_I|_\__I
[(o)______(o)]b VanPimpin'

LostReceptions Apps D/L Here

GPSGasoline- Rewriting

Draw- SkribblePad for Touchscreens

iGQwerty-iG3.0 Qwerty Keyboard

CarPCNetwork
lostreception is offline   Reply With Quote
Old 09-25-2006, 01:23 PM   #5
Low Bitrate
 
bl3nd3r's Avatar
 
Join Date: Jun 2006
Location: Pickering, Ontario, Canada
Posts: 104
That sounds like a good idea but don't really know how to impliment that into code. I am able to get both mice and game pads so really whatever is easier.
bl3nd3r is offline   Reply With Quote
Old 09-25-2006, 04:10 PM   #6
FLAC
 
Curiosity's Avatar
 
Join Date: Mar 2004
Location: Florence Yall, BFKY
Posts: 1,722
Download the Microsoft DirectX SDK, look in Samples\VB.Net\DirectInput\Feedback
__________________
XPort 1.26 -GPS port splitter, logger, and USB device resume fix
Curiosity is offline   Reply With Quote
Old 09-25-2006, 04:39 PM   #7
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 10,251
have a loo at this from CDRSkull, it's for RR but you might be able to use it somehow.

http://www.mp3car.com/vbulletin/show...ght=gamepad+RR
Enforcer is online now   Reply With Quote
Old 09-25-2006, 04:46 PM   #8
Calm
Down
Or
Get
A
2
Week
Vacation
-Love
The
Forum
Policeman
 
Wiredwrx's Avatar
 
Join Date: Jan 2003
Posts: 3,604
Why not just get a small button, put a lage "PAD" on top for the push button. Then , using relays, either timed relays or with an R/C circuit, when it is pressed, lock out the other one, and ring the light.

Done, cheap, and easy.

I can draw something up for you if you are interested.

Michael
__________________
...I love the French language...especially to curse with...Nom de Dieu de putain de bordel de merde de saloperies de connards d'enculés de ta mère. You see, it's like wiping your *** with silk, I love it. www.yellinlawoffice.com
Wiredwrx is offline   Reply With Quote
Old 09-27-2006, 08:06 PM   #9
Low Bitrate
 
bl3nd3r's Avatar
 
Join Date: Jun 2006
Location: Pickering, Ontario, Canada
Posts: 104
Quote: Originally Posted by Wiredwrx View Post
Done, cheap, and easy.

I can draw something up for you if you are interested.

Hey Mike,

Yeah that would be awesome if you could do that for me. In terms of cheap do you think I could do the whole thing for under $20? Let me know what you think.
bl3nd3r is offline   Reply With Quote
Old 09-28-2006, 06:13 AM   #10
FreeDrive Creator
 
CdRsKuLL's Avatar
 
Join Date: Feb 2004
Location: Manchester
Posts: 3,197
Its quite easy to do this.. just poll for a button press on the joypad about 100 times a second and jobs a good'un. You could have a couple of lights that let you know both pads are connected.. then you could have like you say a 1 or a 2 appear so you know whos pressed the button, link it to some sound and your away :-)

CdR

although I do like WiredWRX idea better :-) ,.. also why not make em connect croc clips to there *** and if they arnt the first person to buzz they get a buzz themselves.. lol
__________________
www.extremeoc.co.uk me building a murcielago kitcar ! - check it out !
www.cellsecurity.co.uk are my new employer ! - yeah I got a job !
CdRsKuLL is offline   Reply With Quote
Old 09-28-2006, 02:06 PM   #11
Calm
Down
Or
Get
A
2
Week
Vacation
-Love
The
Forum
Policeman
 
Wiredwrx's Avatar
 
Join Date: Jan 2003
Posts: 3,604
Quote: Originally Posted by kmstech View Post
Hey Mike,

Yeah that would be awesome if you could do that for me. In terms of cheap do you think I could do the whole thing for under $20? Let me know what you think.

Quote: Originally Posted by kmstech View Post
Hey Mike,

Yeah that would be awesome if you could do that for me. In terms of cheap do you think I could do the whole thing for under $20? Let me know what you think.

Here you go.

If you have any questions, let me know. The cost will be dependent on what you can get where, and various other factors. Assuming you can get the relays (they are standard automotive relays in my example, but you can use almost any SPDT relay as long as it is capable of handling the power requirements of your light and buzzer (or you can use additional auto relays to avoid that problem) cheap, you should be good to go. I get my stuf cheaply from www.allelectronics.com. Don't bother with Radio Shack, it probably is more expensive.

Let me know if you have questions.

Oh, ya, the Variable resister (that is the squigly line with the arrow thru it) should be between say, 10k and 100K, and the Capacitor (that is the one with the straight line and the curved line next to it) should be say, 100 or 200 uF. Don't go much bigger on the capacitor, since it will increase the time needed to charge, and the contestant will have to hold the button instead of hit it. If you need the light and buzzer and lock out to be longer, increase the size of the resister, decreasing it will of course, reduce the length of the buzzer and light and lock out. I included a variable so you can adjust it on the fly. A 10K resister should give you about 1 or so seconds which might be just enough. (t (in seconds) = r (in ohms) x c (in Farads))

Goodluck,
Michael
__________________
...I love the French language...especially to curse with...Nom de Dieu de putain de bordel de merde de saloperies de connards d'enculés de ta mère. You see, it's like wiping your *** with silk, I love it. www.yellinlawoffice.com
Wiredwrx is offline   Reply With Quote
Old 09-30-2006, 09:07 AM   #12
Low Bitrate
 
bl3nd3r's Avatar
 
Join Date: Jun 2006
Location: Pickering, Ontario, Canada
Posts: 104
Where is the picture you are referring too?
bl3nd3r is offline   Reply With Quote
Old 09-30-2006, 01:27 PM   #13
Calm
Down
Or
Get
A
2
Week
Vacation
-Love
The
Forum
Policeman
 
Wiredwrx's Avatar
 
Join Date: Jan 2003
Posts: 3,604
Quote: Originally Posted by kmstech View Post
Where is the picture you are referring too?

I uploaded a PDF to the site, and attached it here. I am not sure what happened. The file is in my office, and remote access isn't working to day due to a firm wide system power down.

I will upload it when I get in on Monday. Sorry.

Michael
__________________
...I love the French language...especially to curse with...Nom de Dieu de putain de bordel de merde de saloperies de connards d'enculés de ta mère. You see, it's like wiping your *** with silk, I love it. www.yellinlawoffice.com
Wiredwrx is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a USB Hub up-front? Read this... hd54321 General Hardware Discussion 13 02-09-2007 11:49 AM
Slot load, usb sound, fm/tv tuner, wifi, laptop and more dmcdlrn Classified Archive 13 04-25-2006 12:43 PM
FREE: Saitek GamePAD p750 USB and Game Port just pay shiping xdjxklusivex Classified Archive 1 04-14-2005 11:26 PM
Gravis Game Pad Pro Eliminator Markus101 Input Devices 0 10-21-2003 10:38 AM
How bout a game pad?? Alphared Input Devices 1 01-29-2003 06:32 AM


All times are GMT -5. The time now is 09:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics