How to get teensy controls working with retro pie

Home Forums RetroPie Project Everything else related to the RetroPie Project How to get teensy controls working with retro pie

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 13 replies, has 5 voices, and was last updated by Profile photo of rasmushauschild rasmushauschild 1 year, 10 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #92226
    Profile photo of zombusterftw
    zombusterftw
    Participant

    I coded and set up my teensy to work as a HID device it works in windows but it wont in retro pie, it has 9 buttons and one joystick. How do I get it working?
    Thank You

    #92230
    Profile photo of Roo
    Roo
    Participant

    What have you tried in RetroPie?

    Does it show up when you type lsusb ?

    For example, I get

    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
    Bus 001 Device 004: ID 413c:2107 Dell Computer Corp.
    Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
    Bus 001 Device 006: ID 04d8:f673 Microchip Technology, Inc.
    Bus 001 Device 007: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter

    Device 1, 2 and 3 are the USB controller on the Pi itself. 4 is a keyboard, 5 is a WiFi adapter. 6 is a custom device similar to how a Teensy should show up.

    If you see the Teensy there, you can get further info with sudo lsusb -D /dev/bus/usb/001/006

    If it is recognized by raspbian, it will show up under ls /dev/input as js[x]. If you see it there, try jstest /dev/input/js0, do you see the controls recognized?

    #92286
    Profile photo of zombusterftw
    zombusterftw
    Participant

    When I boot up into emulation station it will let me hold a button to start configuring but after that it wont let me input anything. When I tried the lsusb command the teensy showed up as number 6 and my wifi adapter showrd as number 5. I couldnt get the second command to work it just listed how to type with -d and other letters. The third command ls /dev/input showed a js0 and the last command made numbers and letters move down the screen really fast but whenever I pressed a button they stopped moving for a split second.

    #92291
    Profile photo of Roo
    Roo
    Participant

    are you running jstest /dev/input/js0 from the console (not an ssh session)?

    it should show the recognized axes and buttons for that device and monitor for any joystick movement / button presses until you break out of it (ctrl-c).

    then you can move the sticks and press the buttons to ensure everything is working. Until you can verify the OS can see the Teensy properly with jstest, there’s no sense in going further.

    Attachments:
    #92305
    Profile photo of zombusterftw
    zombusterftw
    Participant

    It was a bad mini usb cable,I now have the controls set for emulation station but do you know how to set them in the games?

    • This reply was modified 2 years, 1 month ago by Profile photo of zombusterftw zombusterftw.
    #92311
    Profile photo of Roo
    Roo
    Participant

    This should get you up and running

    #92320
    Profile photo of zombusterftw
    zombusterftw
    Participant

    Thanks dude you are a life saver!

    #92325
    Profile photo of Roo
    Roo
    Participant

    Happy I could help 🙂

    #96536
    Profile photo of vang1
    vang1
    Participant

    Hello. i just built a gamepad with teensy 2.0. works perfec under windows, but will not be detected under retropi. cant find /dev/input/js0 🙁

    can only find “Standard Microsystems Corp.”
    but not Device 006: ID 04d8:f673 Microchip Technology, Inc.

    have i done anything wrong ? is there a driver i should load ?

    #96545
    Profile photo of vang1
    vang1
    Participant

    got it detected now when i make it as a serial/keyboad/mouse/joystick, but after it got detected and i going to setup the keys it does nothing, cant select the up key or nothing,. but its detecting as a teensy joystick……

    #96810
    Profile photo of zombusterftw
    zombusterftw
    Participant

    Hmm maybe try a fresh install of retro pie? or try a new USB cable? Thats what worked for me also code it as a usb HID device and check your aruduino software settings.

    #98273
    Profile photo of rasmushauschild
    rasmushauschild
    Participant

    Hi I’ve also made a Teensy Gamepad for my portable rpi.
    It has a bunch of tactile switches and one analog joystick.
    It all works perfectly fine on my Mac, but when I try to configure it in Retropie, Left and Up does not work on the analog joystick??
    I have no idea why, the joystick is just a regular X, Y axis one.
    Any help will be greatly appreciated 🙂

    #99111
    Profile photo of deepdivered
    deepdivered
    Participant

    any examples of projects with the teensy working. debating doing this rather then just hooking up to the gpio’s

    #99117
    Profile photo of rasmushauschild
    rasmushauschild
    Participant

    Ben Heck Show did one

Viewing 14 posts - 1 through 14 (of 14 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar