ODROID XU4 Connecting DIY Arcade Controller to USB Port

Very powerful gaming console solution based on Debian
Post Reply
lukethor
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by lukethor »

Is there a way to connect two sets of a DIY Arcade replacement controller” known on the net as a “Zero delay USB Joystick Encoder.” or a “DIY Joystick control board to two USB ports and make it functional ?

I am seeing that the traditional connections is through the 40 GPIO ports expansion. I am more interested in connecting this units to two of the USB ports in the ODROID XU4, if possible.
Attachments
Schematics for DIY Arcade replacement controller
Schematics for DIY Arcade replacement controller
Screen Shot 2017-12-23 at 8.51.19 AM.png (159.56 KiB) Viewed 1640 times
Schematics for DIY Arcade replacement controller
Schematics for DIY Arcade replacement controller
Screen Shot 2017-12-23 at 8.50.54 AM.png (421.91 KiB) Viewed 1640 times

lukethor
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by lukethor »

forgot to mention I installed the ODroird Game Station Turbo


viewtopic.php?f=98&t=7322

So the Odroid XU4 is runing Debian Jessie Version shown here:

http://oph.mdrjr.net/meveric/images/OGS ... sie.img.xz

User avatar
odroid
Site Admin
Posts: 34903
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 953 times
Been thanked: 768 times
Contact:

Re: ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by odroid »

If it is fully compatible with standard HID protocol, you can use two devices at the same time.
Can you give me a link of the joystick encoder board?

lukethor
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by lukethor »

Thank you for your prompt reply.

Using libusb command in the Debian gamestation-turbo I get hardware ID's for both joysticks as 0079:006. See images for additonal info



Using evtest command to detect axis movement of the dual joystick using the Linux Xin-Mo Driver , I get X and Y responses for both axes for devices. They both seem to be responding to X and Y events. Attaching input_events only for js1

Code: Select all

/dev/input/js0
/dev/input/js1

odroid@gamestation-turbo:~$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0:      Dell Dell USB Entry Keyboard
/dev/input/event1:      DragonRise Inc.   Generic   USB  Joystick
/dev/input/event2:      gpio_keys.7
/dev/input/event3:      DragonRise Inc.   Generic   USB  Joystick
/dev/input/event4:      uinput-gpio_keyd
Select the device event number [0-4]: 3
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x79 product 0x6 version 0x110
Input device name: "DragonRise Inc.   Generic   USB  Joystick  "
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 288 (BTN_TRIGGER)
    Event code 289 (BTN_THUMB)
    Event code 290 (BTN_THUMB2)
    Event code 291 (BTN_TOP)
    Event code 292 (BTN_TOP2)
    Event code 293 (BTN_PINKIE)
    Event code 294 (BTN_BASE)
    Event code 295 (BTN_BASE2)
    Event code 296 (BTN_BASE3)
    Event code 297 (BTN_BASE4)
    Event code 298 (BTN_BASE5)
    Event code 299 (BTN_BASE6)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 1 (ABS_Y)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 2 (ABS_Z)
      Value    131
      Min        0
      Max      255
      Flat      15
    Event code 3 (ABS_RX)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 5 (ABS_RZ)

  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 288 (BTN_TRIGGER)
    Event code 289 (BTN_THUMB)
    Event code 290 (BTN_THUMB2)
    Event code 291 (BTN_TOP)
    Event code 292 (BTN_TOP2)
    Event code 293 (BTN_PINKIE)
    Event code 294 (BTN_BASE)
    Event code 295 (BTN_BASE2)
    Event code 296 (BTN_BASE3)
    Event code 297 (BTN_BASE4)
    Event code 298 (BTN_BASE5)
    Event code 299 (BTN_BASE6)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 1 (ABS_Y)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 2 (ABS_Z)
      Value    131
      Min        0
      Max      255
      Flat      15
    Event code 3 (ABS_RX)
      Value    128
      Min        0
      Max      255
      Flat      15
    Event code 5 (ABS_RZ)
Altarums-MacBook-Pro:Downloads eecheverri$ cat input_event_joystick1 | awk -F"(" '{print $2}' | awk -F')' '{print $1}' | sort | uniq

ABS_HAT0X
ABS_HAT0Y
ABS_RX
ABS_RZ
ABS_X
ABS_Y
ABS_Z
BTN_BASE
BTN_BASE2
BTN_BASE3
BTN_BASE4
BTN_BASE5
BTN_BASE6
BTN_PINKIE
BTN_THUMB
BTN_THUMB2
BTN_TOP
BTN_TOP2
BTN_TRIGGER
EV_ABS
EV_FF
EV_KEY
EV_MSC
EV_SYN
FF_GAIN
FF_PERIODIC
FF_RUMBLE
FF_SINE
FF_SQUARE
FF_TRIANGLE
MSC_SCAN
interrupt to exit
Altarums-MacBook-Pro:Downloads eecheverri$ cat input_event_joystick2 | awk -F"(" '{print $2}' | awk -F')' '{print $1}' | sort | uniq

ABS_HAT0X
ABS_HAT0Y
ABS_RX
ABS_RZ
ABS_X
ABS_Y
ABS_Z
BTN_BASE
BTN_BASE2
BTN_BASE3
BTN_BASE4
BTN_BASE5
BTN_BASE6
BTN_PINKIE
BTN_THUMB
BTN_THUMB2
BTN_TOP
BTN_TOP2
BTN_TRIGGER
EV_ABS
EV_FF
EV_KEY
EV_MSC
EV_SYN
FF_GAIN
FF_PERIODIC
FF_RUMBLE
FF_SINE
FF_SQUARE
FF_TRIANGLE
MSC_SCAN
interrupt to exit
https://wiki.ubuntu.com/DebuggingTouchp ... ion/evtest


The other verification I did was to see if the Debian kernel has this patch applied for the Linux Xin-Mo Driver

https://github.com/oscherler/linux-xin ... age_id=34


https://patchwork.kernel.org/patch/7480801/
Attachments
Screenshot-root@gamestation-turbo_ -dev-input(1).png
Screenshot-root@gamestation-turbo_ -dev-input(1).png (141.1 KiB) Viewed 1610 times
Screenshot-root@gamestation-turbo_ -dev-input-2.png
Screenshot-root@gamestation-turbo_ -dev-input-2.png (166.24 KiB) Viewed 1610 times
Screenshot-root@gamestation-turbo_ -dev-input-1.png
Screenshot-root@gamestation-turbo_ -dev-input-1.png (146.55 KiB) Viewed 1610 times
Screen Shot 2017-12-24 at 6.19.39 AM.png
Screen Shot 2017-12-24 at 6.19.39 AM.png (199.71 KiB) Viewed 1610 times
Screenshot-root@gamestation-turbo_ -dev-input-2.png
Screenshot-root@gamestation-turbo_ -dev-input-2.png (166.24 KiB) Viewed 1610 times

lukethor
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by lukethor »

Thi schematic may help also
Attachments
Screen Shot 2017-12-24 at 9.22.46 AM.png
Screen Shot 2017-12-24 at 9.22.46 AM.png (562.07 KiB) Viewed 1605 times

Serjelhumano
Posts: 1
Joined: Thu Dec 20, 2018 8:55 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Connecting DIY Arcade Controller to USB Port

Post by Serjelhumano »

lukethor wrote:Thi schematic may help also
Have you made them work connecting by usb?

Post Reply

Return to “OGST-XU4”

Who is online

Users browsing this forum: No registered users and 1 guest