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: Arkanoid + Mouse Hack  (Read 2884 times)

0 Members and 1 Guest are viewing this topic.

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Arkanoid + Mouse Hack
« on: December 28, 2005, 12:17:27 pm »
Hi everyone, I've been searching the forum for about 12 hours nonstop now and haven't found the answer I'm lookin for. whether this is because its not here or I'm just too sleep deprived to see it remains to be seen.

I picked up an old arcade cabinet and an Arkanoid spinner this week while I'm off of work, i want to see how quickly i can put a functional Mame cabinet together.  Due to this time restraint, and my somewhat masochistic nature, i would like to avoid ordering components and having to wait for shipping.  This also wont be a super cabinet like many others, it'll be for pure 80's gaming goodness, with 233-400MHz compy inside.

Anyways, ill be going the dreaded kb hack route, just to say i did, but i cant find a guide on how to hack a mouse so i can hook up my arkanoid spinner. I don't suppose it'd be possible, seeing as they both have 4 wires coming out of them, to just hook them up direct?

Any advice, gestures in the right direction or cautionary tales would be greatly appreciated.

Thanks

-J

Jabba

  • D-Hutt
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1643
  • Last login:November 16, 2020, 02:17:20 pm
  • I find your lack of faith...disturbing...
Re: Arkanoid + Mouse Hack
« Reply #1 on: December 28, 2005, 12:28:54 pm »
Oscar has a tutorial on his Website on how to build a USB mouse hack.

http://www.oscarcontrols.com/DPDTswitch.shtml

I actually have an Arkanoid machine downstais. I'll have a look at the spinner to see how it hooks up to the board later on and post details to see if it could be wired to the mouse hack...

Oh, and welcome to the forum
Vids:  Home built MAME machine, Crystal Castles. Arkanoid
Pins:   Williams Aztec (working). Stern Nugent (not working...yet), Williams Phoenix (major not working, missing parts.... )

Always on the lookout for buying 90's game with Ramps that need work...

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #2 on: December 28, 2005, 12:36:07 pm »
No, the 4 wires are different.

Hacking a mouse is easy, and you only need one axis too.
Here's a quick summary.
The 4 wires for the spinner are power (probably 5v), ground, data+, data-.
Open your mouse up and look at the controller chip (the big chip in it).  I am just going to pick one as I don't have a mouse to take apart right now.
GL600USB
Get the pdf at http://www.datasheetarchive.com/
First, unsolder the IR emmitters (the clear side) from the mouse board, you don't want interference.

The power and ground are easy.  Most likely these will be the red and black wire on the ps/2 or usb cord.  If you have a multimeter you can test that.  The soder point on the mouse board might be labelled too.
Do not unsolder those wires as the mouse board still need power and ground.
Just solder the spinner's black and red wire to the same solder points.
You do not solder to the chip because there may be a reduced voltage going to the chip, it may only require 3.3V.

The next part requires a little trial and error.  You will see on page 6/7 (7/8 of the pdf) that pins 19 and 20 are X1 and X2, infact the diagrams has the pins highlighted in blue.  You need to solder the two remaining wires from the spinner to those pins.  This is the trial and error part, you don't know which way to put the wires.  If you have it right when you plug the mouse in you can move the cursor normally on the X (horizontal) axis.  If you have it wrong it will go in the wrong direction, just swap wires (after unplugging the mouse).

If I have some time I am going to redo the mouse hack to my tball and post pics.

I am assuming your spinner needs 5v.  5v is what comes from the USB and ps/2.

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #3 on: December 28, 2005, 01:49:24 pm »
awesome replies guys! very helpful, just one little question, should i get an optical mouse or the old ball kind?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #4 on: December 28, 2005, 02:49:58 pm »
ball kind

Goto datasheetarchive and look up HT82M22A.  You will see an optical mouse controller chip doesn't have an X or Y axis, it has sensor pins.  In this case an Agilent sensor like ADNS-2030.
« Last Edit: December 28, 2005, 03:21:00 pm by SirPoonga »

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #5 on: December 28, 2005, 04:22:58 pm »
glad i asked that, and even more glad that you answered :)

this is an amazing resource will amazing ppl, thanks so much  ;D

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: Arkanoid + Mouse Hack
« Reply #6 on: December 28, 2005, 04:52:10 pm »
Source for ball mice: Used goods store. Average cost: $1-$2
NO MORE!!

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #7 on: December 29, 2005, 01:18:34 am »
what do i do when i cant find this chip in the database you posted? its a MS Wheel Mouse, picked it up at staples and this one looks like it has 5 wires... not 4... heres a couple pics





feeling a bit lost :P
« Last Edit: December 29, 2005, 01:29:21 am by Svaroh »

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #8 on: December 29, 2005, 01:33:17 am »
i hate you forum.... let me post pictures already

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #9 on: December 29, 2005, 01:49:54 am »
http://members.shaw.ca/j.yaworski/package.jpg

http://members.shaw.ca/j.yaworski/board.jpg


the pics are gigantic, theoreticly so that some helpful person will have all the info they need

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #10 on: December 29, 2005, 02:04:35 am »
It's 5 wires because it is ps/2
Use a continuity tester (multimeters have one) to figure out which is ground and 5v.
http://www.tavi.co.uk/ps2pages/ohland/mouse.html


Wait, here's your mouse taken apart.
http://www.colinfahey.com/2002june5_ps2mouse/
That hack is the other technique, replacing the receiver with wires.  One pin is ground, the other two are the data pins.  You just need one axis, remember.
« Last Edit: December 29, 2005, 02:06:23 am by SirPoonga »

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #11 on: December 29, 2005, 02:15:48 am »
wow, you're fast.
is one method easier/better than the other?

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #12 on: December 29, 2005, 03:23:18 am »
so this is what im thinking...

the spinner has 4 wires, Red, Black, Yellow and Blue. From what i gather from the two tutorials this ought to work...

http://members.shaw.ca/j.yaworski/plans.jpg

of course it is 2:30 am and im a bit green at this :P

is my reasoning incredibly flawed?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #13 on: December 29, 2005, 10:50:49 am »
wow, you're fast.
is one method easier/better than the other?
They are both doing the same thing for the most part.  If you follow the the traces from the IR parts they will, most likely, go directly to the chip.

http://members.shaw.ca/j.yaworski/plans.jpg
Pins 1 and 2 are for the osc crystal, according to the datasheet.  The datasheet for this chip sorta sucks.  If you go by the hand written schematic that dude has then you need pins 11 and 12?
You power and ground might not be right either :(

Hmmm, this chip's datasheet is not that great :(  That hand written schematic is ok but there are some confusing parts.

Can you take a picture of the circuit side of the board?  We'll do a combination of two techniques.  If you trace pin 14 to the ground wire on the ps/2 cable and pin 15, after it goes through a  resistor, to the power on the ps/2 cable.

Same for the x axis receiver.  You can trace the pin form the ir receiver to the chip to determine which pins you need.

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #14 on: December 29, 2005, 11:53:31 am »
heres the pics of the other side (thank goodness i bought my wife a digital camera for christmas) the first pic is as is, and the second pic i flopped in photoshop so it'd be less confusing to me, it's more like an overlay now so it can be compared to the other side without confusing me :P

http://members.shaw.ca/j.yaworski/back.jpg

http://members.shaw.ca/j.yaworski/backfloped.jpg

thanks so much for the help

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #15 on: December 29, 2005, 12:40:41 pm »
ok, i did a test just holding the wires where i think they needed to go, and it worked the way it's supposed to. my ground and power wires were right, and i discovered that the yellow wire from the arkanoid spinner goes to pin 12 and the blue one goes to pin 11  ;D

now time to work on my soldering skills....

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #16 on: December 29, 2005, 01:17:54 pm »
Hurray me!

it worked! just finished the soldering and it works great!

thank you all so much, SirPoonga in particular

i cant wait to harrass you all when i manage to bork my keyboard hack :P

-J

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #17 on: December 29, 2005, 01:32:17 pm »
mame doesnt recognise the mouse as a form of input... what'm i missin?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #18 on: December 29, 2005, 02:05:13 pm »
mame doesnt recognise the mouse as a form of input... what'm i missin?

mouse 1 in mame.ini file

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #19 on: December 29, 2005, 02:22:59 pm »
would that me the mame32ui.ini file?

### MAME32ui.ini ###

### interface ###

default_game arkanoid
default_folder_id 1
show_image_section 1
current_tab flyer
show_tool_bar 1
show_status_bar 1
show_folder_section 1
hide_folders ""
show_tabs 1
hide_tabs "marquee, title, cpanel, history"
history_tab 6
check_game 1
joystick_in_interface 0
mouse 1                *** i added this line***
keyboard_in_interface 0
broadcast_game_name 0
random_background 0
sort_column 0
sort_reversed 0
window_x 0
window_y 0
window_width 640
window_height 428
window_state 1
custom_color 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
list_mode Grouped
splitters 152,362
list_font "-8,0,0,0,400,0,0,0,0,0,0,0,0,MS Sans Serif"
column_widths 185,68,84,84,64,88,74,108,60,144,84,60
column_order 0,2,3,4,5,6,7,8,9,1,10,11
column_shown 1,0,1,1,1,1,1,1,1,1,0,0
ui_key_up KEYCODE_UP
ui_key_down KEYCODE_DOWN
ui_key_left KEYCODE_LEFT
ui_key_right KEYCODE_RIGHT
ui_key_start "KEYCODE_ENTER NOT KEYCODE_LALT"
ui_key_pgup KEYCODE_PGUP
ui_key_pgdwn KEYCODE_PGDN
ui_key_home KEYCODE_HOME
ui_key_end KEYCODE_END
ui_key_ss_change KEYCODE_INSERT
ui_key_history_up KEYCODE_DEL
ui_key_history_down "KEYCODE_LALT KEYCODE_0"
ui_key_context_filters "KEYCODE_LCONTROL KEYCODE_F"
ui_key_select_random "KEYCODE_LCONTROL KEYCODE_R"
ui_key_game_audit "KEYCODE_LALT KEYCODE_A"
ui_key_game_properties "KEYCODE_LALT KEYCODE_ENTER"
ui_key_help_contents KEYCODE_F1
ui_key_update_gamelist KEYCODE_F5
ui_key_view_folders "KEYCODE_LALT KEYCODE_D"
ui_key_view_fullscreen KEYCODE_F11
ui_key_view_pagetab "KEYCODE_LALT KEYCODE_B"
ui_key_view_picture_area "KEYCODE_LALT KEYCODE_P"
ui_key_view_status "KEYCODE_LALT KEYCODE_S"
ui_key_view_toolbars "KEYCODE_LALT KEYCODE_T"
ui_key_view_tab_cabinet "KEYCODE_LALT KEYCODE_3"
ui_key_view_tab_cpanel "KEYCODE_LALT KEYCODE_6"
ui_key_view_tab_flyer "KEYCODE_LALT KEYCODE_2"
ui_key_view_tab_history "KEYCODE_LALT KEYCODE_7"
ui_key_view_tab_marquee "KEYCODE_LALT KEYCODE_4"
ui_key_view_tab_screenshot "KEYCODE_LALT KEYCODE_1"
ui_key_view_tab_title "KEYCODE_LALT KEYCODE_5"
ui_key_quit "KEYCODE_LALT KEYCODE_Q"
ui_joy_up 1,1,2,1
ui_joy_down 1,1,2,2
ui_joy_left 1,1,1,1
ui_joy_right 1,1,1,2
ui_joy_start 1,0,1,0
ui_joy_pgup 2,1,2,1
ui_joy_pgdwn 2,1,2,2
ui_joy_home 0,0,0,0
ui_joy_end 0,0,0,0
ui_joy_ss_change 2,0,3,0
ui_joy_history_up 2,0,4,0
ui_joy_history_down 2,0,1,0
ui_joy_exec 0,0,0,0
exec_wait 0
hide_mouse 0
full_screen 0
cycle_screenshot 0
stretch_screenshot_larger 0
screenshot_bordersize 11
inherit_filter 0
offset_clones 0
game_caption 1
language english
flyer_directory flyers
cabinet_directory cabinets
marquee_directory marquees
title_directory titles
cpanel_directory cpanel
background_directory bkground
folder_directory folders
icons_directory icons

### folder filters ###


### game variables ###
>
>
>


i boot up the game and it doesnt work, then i go back to look at the file and my added line is absent. and i did remember to save :P   any theories?


SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Arkanoid + Mouse Hack
« Reply #20 on: December 29, 2005, 02:30:56 pm »
mame32 is different.

First, can you play the game with a normal mouse?
If not then you need to enable mouse for all games.  It's in a menu somewhere.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Arkanoid + Mouse Hack
« Reply #21 on: December 29, 2005, 02:38:57 pm »
For Mame32

Options
Default Game Options
Controllers
Enable Mouse Input

Svaroh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:May 21, 2007, 01:44:32 pm
  • I want to build my own arcade controls!
Re: Arkanoid + Mouse Hack
« Reply #22 on: December 29, 2005, 05:34:21 pm »
perfect, thanks everyone, ive run leads off the buttons too, get an extra 3 inputs :P