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: Newbie needing help, please. How to make a basic USB input button  (Read 8675 times)

0 Members and 1 Guest are viewing this topic.

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Hi,

I hope that this is the correct place to make this post.

I would like to build a simple one button USB input for my computer.

I would like it to function as follows:
1. when the button is pressed it sends the computer a continuous/repeating signal (like holding down a button on the keyboard).
2. when the button is not pressed there is no signal at all.

I am completely new to this field.

I am hoping someone can provide me with a laundry list of all of the hardware components that I would need, as well as some basic instructions on how to accomplish my goal.

I would also like to know what software, if any, I will need to make windows xp recognize and interface with the button.

I appreciate any help that I can get.

Thanks!
Juggernaut

HaRuMaN

  • Supreme Solder King
  • Global Moderator
  • Trade Count: (+45)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 10328
  • Last login:Yesterday at 05:20:15 pm
  • boom
    • Arcade Madness
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #1 on: June 13, 2005, 08:50:13 pm »
What will this button do?  Knowing that might make it easier to help you.

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #2 on: June 13, 2005, 10:14:27 pm »
You could take apart a USB keyboard (the one I'm typing on right now was $2) and do a simple 1-button keyboard hack.  It sounds like that would provide the exact signal you are looking for, unless you need something that is not an actual keyboard key.

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #4 on: June 14, 2005, 03:34:50 pm »
maybe hack a sewing machine switch?
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=41248&item=8198926774

you could hack one of the buttons on a USB mouse's board to it i guess
« Last Edit: June 14, 2005, 03:36:55 pm by IntruderAlert »

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #5 on: June 14, 2005, 03:42:21 pm »
maybe hack a sewing machine switch?
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=41248&item=8198926774

you could hack one of the buttons on a USB mouse's board to it i guess

Hi,

That is an interesting idea, but I do want it to be more like a traditional arcade button, just big enough to use comfortably with the foot if desired.

Anyway, the exact button is not so important, what is more important is that I learn how to connect it to a USB connector to do the function I want.  Do you know how I can learn to do this?  I need to know all the parts I would need and some basic instructions on how to assemble it.

Thanks!
Juggernaut

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #6 on: June 14, 2005, 03:46:37 pm »
if you only need one button the smallest/cheapest thing I can think of is a mouse circuit board hack
You'd just take the Mouse apart and solder two wires onto the two contacts for one of the Mouse buttons and connect the other end of the 2 wires to the switch

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:July 02, 2025, 05:49:26 pm
  • The Bears Still Suck!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #7 on: June 14, 2005, 03:55:41 pm »
hack a cheap usb gamepad.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:July 02, 2025, 05:49:26 pm
  • The Bears Still Suck!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #8 on: June 14, 2005, 04:04:59 pm »
maybe hack a sewing machine switch?
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=41248&item=8198926774

you could hack one of the buttons on a USB mouse's board to it i guess
Sewing machines use pots, but not like you couldn't put a switch in it.
Also, you can find used sustain pedals for electric keyboards (musical).  Those are foot pedals that plug into the back of a keyboard.

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #9 on: June 14, 2005, 04:06:28 pm »
or if he wants it more arcadey looking maybe one of those giant pushbuttons
« Last Edit: June 14, 2005, 04:14:47 pm by IntruderAlert »

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
« Last Edit: June 14, 2005, 04:22:32 pm by IntruderAlert »

NY_in_TX

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 345
  • Last login:February 25, 2017, 11:19:54 am
  • First play's free...next one will cost ya
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #11 on: June 14, 2005, 04:38:38 pm »
http://www.stealthswitch.com/index.asp


they just had these on woot.com for $25. says it'll launch any app you want and is customizable.


maybe it'll work for what you need.  not sure what your trying to do, but good luck.

ny


IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #12 on: June 14, 2005, 04:46:32 pm »

NY_in_TX

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 345
  • Last login:February 25, 2017, 11:19:54 am
  • First play's free...next one will cost ya
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #13 on: June 14, 2005, 05:06:59 pm »
it's funny though! 

their motto should be "for the alt-tab challenged"


that's just not right
http://www.stealthswitch.com/demo.asp

88mph

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:July 30, 2018, 12:17:48 pm
  • I need fuel!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #14 on: June 14, 2005, 05:08:12 pm »
Neato!  Reminds me of the 'Boss Key' that they used to have on the old Sierra games like Space Quest and King's Quest.. If you hit the boss key, a generic monochrome spreadsheet or graph would come up on the screen.  Great for gaming at work without getting busted. 

Of course, I was about 10 when I was playing those games, so I didn't have a boss back then..

-88mph
 

IntruderAlert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 873
  • Last login:May 02, 2007, 09:10:59 am
  • Chicken.. Fight Like A Robot
    • Intruder Alert
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #15 on: June 14, 2005, 05:13:53 pm »
i'm guessing you won't have a boss for long if you use one of those

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #16 on: June 14, 2005, 09:48:55 pm »
http://www.stealthswitch.com/index.asp


they just had these on woot.com for $25. says it'll launch any app you want and is customizable.


maybe it'll work for what you need.

richms

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:January 07, 2025, 06:42:57 pm
  • s92a sucks
    • richms.com
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #17 on: June 15, 2005, 01:21:29 am »
I would prefer that it was not just a gutted keyboard (as my wife will get upset if it does not have pretty clean look to it), but rather be a larger button that is more the size of something like what a dentist uses when he uses his foot operated drill, but could just be the standard size of an arcade-type button(hehe...what an example!).

The circuitboard in most keyboards is very small, and just under where the LEDs are located, the rest of the keyboard is a flexable membrane you can throw away (once you have traced it out)

Put that in a nice box with a 6.5mm headphone plug on it, and you can get a pedel from a music shop that would normally connect to a synth for reverb or whatever (Check it is just a contact closure in it)

If you want multiple keys to be pressed, then put more then one socket on the pretty box you put the keyboard guts in, with each one wired across different pins which the membrane connected to


Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #18 on: June 26, 2005, 09:31:15 am »
Hi,

It would most likely work for my needs, but I am trying to learn how to make one for myself.

Is there any place I can go to learn what parts I need to build one myself?
Is there any place that could give me step by step directions on how to put it together and how to get the computer to recognize it?

I don't mean to be a nudge, but this is a project I am trying to work on.  If this is not the appropriate place to get the info, please let me know.

Thanks!
Juggernaut

forbiddenlyrics

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 139
  • Last login:July 10, 2010, 03:19:34 pm
  • I'm Bart Simpson Who The Hell Are You?
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #19 on: June 26, 2005, 10:13:55 pm »
It seems to me like you are making this project too complicated. If you want to make a new USB device you will have to get a USB controller chip and then develop some custom circuity. Although the extra circuity won't be that complicated you will be able to get the same exact result for waay less money and waay less hassle if you just hack an exsisting USB device. I guess if you are hell bent on doing it the hard way you might want to check out the book "USB complete".

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #20 on: June 26, 2005, 10:28:33 pm »
Hi,

Well, if it works out, I would like to be able to sell what I make to other people, so I was trying to avoid selling someone else's stuff to them.

Don't they make simplified boards what have a pre-programmed USB controller built right on them?  All I think I would need is one with a USB output and a place to wire some inputs from the button.
If it could be as simple as wiring the 3 components together then that would not be too diffucult and would be worth my effort.
If it were much more complicated than that, then I would agree that it is probably not worth the hassle.  I suppose that is why I am trying to figure out exactly what would need to be done - so I can figure out if it is worth it or not.

I'll see if I can find the book you recommend, but I was hoping for an "abridged" set of directions.

Thanks!
Juggernaut

forbiddenlyrics

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 139
  • Last login:July 10, 2010, 03:19:34 pm
  • I'm Bart Simpson Who The Hell Are You?
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #21 on: June 26, 2005, 11:54:02 pm »
Quote
Don't they make simplified boards what have a pre-programmed USB controller built right on them?

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #22 on: July 02, 2005, 11:01:48 pm »
Hi,

Do you have any good sites to recommend for buying an inexpensive USB keyboard controller?

Thanks,
Juggernaut

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #23 on: July 03, 2005, 03:58:03 am »
Here's an inexensive toggle on/toggle off foot switch you could easily hack to a keyboard (or keyboard encoder).

http://mcm.newark.com/NewarkWebCommerce/mcm/en_US/endecaSearch/partDetail.jsp?SKU=555-3105&N=4
[edit] oh... right :P
« Last Edit: July 03, 2005, 03:13:29 pm by SpamMe »

Juggernaut1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:July 03, 2005, 09:03:05 am
  • I want to build my own arcade controls!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #24 on: July 03, 2005, 09:03:26 am »
Hi,

I think you forgot the link?

Could you please provide the url?

Thanks!
Juggernaut

MinerAl

  • Wiki Contributor
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 762
  • Last login:January 27, 2025, 07:02:58 pm
  • duck
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #25 on: July 03, 2005, 10:05:01 am »
Go find an original iMac one button mouse and take out the ball. 

pointdablame

  • I think Drew is behind this conspiracy...
  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5034
  • Last login:May 19, 2025, 06:36:30 pm
  • Saint and Woogie let me back in!
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #26 on: July 03, 2005, 10:56:20 am »
The easiest way to accomplish this has already been stated.  Disassemble a mouse, run 2 wires from a button contact, and run it to a switch.  You are done.

If you are looking to sell it, you will need to do as stated and create your own USB device... which is way too much work for a one button interface IMHO.  If you are looking to sell these to people, you had better be able to sell them for under $5 or $10 or so because beyond that, it is not worth it.  A person can but an interface from GGG for $20, and have 32 possible inputs instead of just one and have exactly what you want to accomplish... as well as a lot more versatility.

You can find keyboard encoders at http://www.ultimarc.com or http://www.groovygamegear.com
first off your and idiot

Man I love the internet, haha.

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #27 on: July 04, 2005, 12:21:00 am »
Isn't someone selling a device now that is basically a pre-made USB controller hack?  I think that would be more in line with what this guy is looking for instead of a keyboard encoder.  Well, except for the repeating input part, but I think that can be accomplished with a 555 timer or something.

Granted, this would be overkill because there'd be tons of unused inputs.
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: Newbie needing help, please. How to make a basic USB input button
« Reply #28 on: July 04, 2005, 12:56:22 am »
A single switch would work with a TOKN16, they may not be the best for MAME, but for a single switch they'd be fine, and they sell on ebay dirt cheap.

But I get the feeling this guy wants to build his own USB section, not buy or hack an interface.  I don't think he cares about the button so much, or about getting it working, as learning how to build a USB interface from the ground up.  Sorry, guy, I can't help you with how to do it, but at least I know what you want.