Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › How to get teensy controls working with retro pie
Tagged: controller, help, HID, how, joypad, raspberrypi, retropie, teensy
- This topic has 13 replies, 5 voices, and was last updated 9 years, 6 months ago by rasmushauschild.
-
AuthorPosts
-
03/22/2015 at 02:43 #92226zombusterftwParticipant
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 You03/22/2015 at 03:48 #92230RooParticipantWhat 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, tryjstest /dev/input/js0
, do you see the controls recognized?03/22/2015 at 17:29 #92286zombusterftwParticipantWhen 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.
03/22/2015 at 18:37 #92291RooParticipantare 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.
03/22/2015 at 20:27 #92305zombusterftwParticipantIt 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?
03/22/2015 at 21:30 #92311RooParticipantThis should get you up and running
03/22/2015 at 22:41 #92320zombusterftwParticipantThanks dude you are a life saver!
03/22/2015 at 23:13 #92325RooParticipantHappy I could help :)
05/01/2015 at 00:59 #96536vang1ParticipantHello. 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 ?
05/01/2015 at 02:30 #96545vang1Participantgot 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……
05/02/2015 at 20:46 #96810zombusterftwParticipantHmm 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.
05/24/2015 at 00:39 #98273rasmushauschildParticipantHi 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 :)06/05/2015 at 13:20 #99111deepdiveredParticipantany examples of projects with the teensy working. debating doing this rather then just hooking up to the gpio’s
06/05/2015 at 16:28 #99117rasmushauschildParticipantBen Heck Show did one
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.