Tuesday, February 5, 2013

콘트롤 패널 연결하기 Control panel wiring



mame is basically controlled by pc keyboards, so in order to use standard arcade controls(joysticks and buttons), you need to have a device to convert microswitch(in joysticks and buttons) signal to key stroke.
There are many options to do this. For this cabinet, i chose U-Hid from ultimarc.com.
(I found out later that iPac is cheaper and more popular version, i might try it in the next project.)
마메는 기본적으로 PC의 키보드로 플레이하는 프로그램입니다.  아케이드 조이스틱과 버튼으로 플레이하기 위해서는 스틱과 버튼의 마이크로스위치 신호를 키를 눌렀을 때의 신호로 바꿔주는 장치가 있어야 합니다.  여러 가지 옵션이 있지만 저는 ultimarc.com의 u-hid를 선택했습니다.(같은 사이트에서 판매하는 iPac이라는 장치가 가격이 저렴해서 더 인기가 있는 것 같습니다.)

It is a very small board.  기판은 매우 작습니다.

The chrome finish socket on the right side is where a usb cable is inserted.
you can also download a custom programming software from the u-hid website.
오른쪽에 크롬모양 소켓이 usb단자입니다.  u-hid 웹사이트에서 프로그램하는 소프트웨어를 다운 받을 수 있습니다.

The interface looks like this:  인터페이스는 다음과 같습니다.

It's very easy to setup. pretty much self-explanatory.
프로그램은 굉장히 셋업하기 쉽습니다.

I also bought 32-pin wire harness from ultimarc.com
It is long enough for the 2-player control panel and crimp quick connectors are already built-in.(so you don't have to solder)
같은 사이트에서 32핀 와이어 하네스를 구입했습니다.  2플레이어 컨트롤 패널을 만들기에 충분히 길었고 끝에 퀵 커넥터가 이미 붙어있어서 납땜을 안해도 됩니다.
(images courtesy: www.u-hid.com)

each pin is connected to a microswitch in joysticks or buttons.
it's a good idea to number each pin's positions and write down which pin goes to which switch.
기판의 각 핀들을 조이스틱이나 버튼의 해당 단자에 연결하면 됩니다.
연결하기 전에 미리 핀들에 번호를 붙이고 어떤 스위치로 연결할지 적어놓는 것이 좋습니다.

(image courtesy: Talking octopus' site)

signal wires goes to Normally Open lead in microswitch.
and all the ground(common) leads are chain-connected and goes to one of u-hid ground pin.
Talking octopus' site helped me a lot.
I didn't buy pre-made daisy-chain harness, i bought 22gauge hooking wired, crimp quick connectors and crimp tool from radioshack and did it myself. it took me a long time but wasn't too bad.
스위치 신호 선들은 마이크로스위치의 Normally Open단자에 연결합니다.  그리고 모든 그라운드 선들은 서로 다 고리연결해서 u-hid 기판의 그라운드 핀 중 하나에 연결하면 됩니다.
Talking octopus' site의 사이트에 자세한 설명이 되어 있어서 큰 도움이 되었습니다.
그라운드를 고리 연결하는 데이지 체인 하네스를 구입하지 않았기 때문에 라디오섁에서 22게이지 연결 와이어와 크림프 퀵 커넥터, 크림프 툴을 사서 직접 체인을 만들었습니다.



Once you wired all the Normally Open leads to u-hid wire harness and daisy-chained ground leads from switches(and connect it to the u-hid ground pin), It's time to connect the usb to the pc and test it.
my system has windows 7 on it.  when i connected the usb cable from u-hid, windows automatically detected the device and installed the driver.  then i ran the u-config utility and programmed the pins according to my mame key setup.
다 연결했으면 컴퓨터에 usb케이블을 연결해서 테스트 해 봅니다.  제 시스템은 윈도우 7인데, usb를 꽂자마자 자동으로 기기를 인식하고 드라이버를 설치했습니다.  이후에 u-config utility를 실행시켜서 키들을 마메의 키 설정과 같이 프로그램해 줍니다.

For people who uses old Dell pc(mine was Optiflex gx280), here's a tip.  in BIOS setup, turn OFF fast-boot option.  It was extremely frustating when my dell pc doesnt boot up with u-hid usb device connected.  i tried everything and decided to upgrade the BIOS version(even it was not easy because i can't find floppy disk anywhere), as a completely blind attempt, i turned the fast boot option off and everything worked fine!!
혹시 마메를 오래된 델 컴퓨터에서 돌린다면 바이오스 셋업에서 fast boot 옵션을 꼭 끄세요.
이것 때문에 한참을 고생했습니다.(usb를 꽂은 상태에서 컴퓨터를 키면 부팅이 안되었습니다. 그런데 fast-boot 옵션을 끄니까 해결이 되었습니다.)

slagcoin was also a great resource.

No comments:

Post a Comment