Main > Raspberry Pi & Dev Board
Does the Ultrastik 360 work with a Pi?
mahuti:
--- Quote ---Can I use my current 2 player Xin-Mo controller with this?
--- End quote ---
Yes.
--- Quote --- then connect the U360 to 4 direction connecters to the xin-mo using the optional harness.
--- End quote ---
This is "output" mode. If you want to be able to use the maps, then you have to have both the Ultrastik and the Xin-Mo connected via USB. The only advantage of using it this way is that you only have to configure one controller in EmulationStation. The disadvantage to using them separately is that you'd have to configure both in EmulationStation, and you'd have to configure Mame to map to joystick0 and joystick1, which is a bit more setup.
--- Quote ---Or am I going to need to forget about the xin-mo and just use the U360 and its 8 buttons?
--- End quote ---
You could combine them, or use them separately. You'd have to have USB hooked up to both though to make the Ultrastik programmable.
--- Quote ---what changes need to be made in RGBCommander so that it is configured properly and sees that the U360 is player two controller so that it auto switches to the correct maps on a per rom basis?
--- End quote ---
None. It sees the sticks, not the player number. Changing the "way" on a rom, would change it for ALL connected Ultrastiks, not a specific player's mapping.
In my case, I set up each encoder (Ultrastik and Xin-Mo) as separate gamepads in EmulationStation, then I set up the configuration as I want in Mame. The Mame configuration is a bit more time consuming in having to map an additional controller (and if you use AttractMode, you have to configure it how you want too), but overall I like the flexibility of having two discrete controllers for other emulators (like NES). I don't really like EmulationStation's mapping for "alike" controllers (those that have 2 players in one board, or for multiples of the same encoder). I find it limiting.
soonerdoc:
I am utterly confused.
Stick came in today. Hooked it up onto the player two side of the xinmo control board. Connected the pins from the u360 to the pins on the xinmo for up, right, down and left. Only connected those 4 pins and the ground. Connected the USB from the 360 to the pi.
Turned everything on. Went to configure in emulation station and it saw 3 gamepads (I assume the 2 player xinmo and the U360). Said to hold button to configure controller. Held up on the U360 joystick and it went to the page to assign buttons. Assigned up, right, down and left using the 360 and for the buttons used the already connected buttons on the xinmo for player 2. Shutdown the pi and restarted.
Worked perfectly....for about 5 minutes. Qbert worked awesome. Used your method of assigning to keyboard keys and then using that to figure out the direction for the joystick. Literally worked perfectly.
Disconnected everything before disassembling my cabinet for the permanent installation. Connected the U360 to my windows pc and downloaded the software for the pc just to check it out. Confirmed U360 is assigned to ID number one.
Disconnected and connected back to the pi. Nothing. When going to configure controller in emulation station it still says sees 3 game controllers, however the U360 doesn't do anything in the pi. No matter what.
Tried different USB ports on the pi. Nothing. Connected using the pins to the xinmo board for both player one and player two. Nothing. Connected via USB only without using any of the input/output pins. Nothing. LED is flashing when joystick is moved but nothing happens on the pi.
Connected back to windows pc using the USB port and windows sees the controller using the ultramap software and in devices and controller moves the cursor as expected. Back to pi and again emulation station sees it as a third controller, but moving the joystick does nothing on the pi. Also did a fresh install of retropie from a backup I made last night prior to messing with anything. This is the same image of retropie that was used during the original installation of the U360. Still doesn't work.
Any ideas? Did connecting it to the pc somehow mess it up so the pi can't see it? I feel like that has to be the case, because a fresh install of retropie from the previously working backup no longer works. Something has to have changed in the stick. Very frustrated, especially after it was working perfectly 10 minutes after hooking it up.
mahuti:
Sigh... it's always something isn't it? The best advice my dad ever gave me was "son, don't dig too deep". Which.... I've ignored countless times to my constant peril.
Anyway, off the top of my head, I can't think of anything.
That said... do you have any buttons hooked up to the Xin-mo? If I recall, in the past without a button hooked up, I've had trouble configuring gamepads.
The Pi, has a utility (I think it's pre-installed) call jstest.
Look at the list of controllers first. In a console window type:
--- Code: ---ls /dev/input
--- End code ---
The ultrastik may be js0 or js1 or js2 depending on what the Pi sees. There's a method (which I don't remember off the top of my head) that can spit out all the info about configured controls... but the test is fast enough without it to worry about finding the specific designation. You can just test any of the joysticks the Pi sees.
Run a test:
--- Code: ---jstest /dev/input/js0
--- End code ---
Then move the stick around. If you see a bunch of values changing on the Pi, then it sees it. If you don't see any values, you can check the other joysticks listed in the first step (js1, js2, etc). To exit the test, just type ctrl+c which will cancel out of the test. Then you can run it on a different one. Start with that. I'll ponder on anything else I can think of. It's probably something simple. Check the ultimarc installation instructions too.. there might be something in there.
Also, were it me, I'd reduce all the variables to the minimum. I'd hook up the Ultrastik by itself using its own USB connection, and hook up one button to it. That will allow you to check and see that it CAN be configured standalone in EmulationStation.
soonerdoc:
Thanks.
Got to be too late last night to troubleshoot it anymore last night. Will work on it after work today.
Did have the buttons hooked to the xinmo. Did try the ultrastick by itself without the xinmo.
When I get home I am going to try the jstest and see what happens. I think I will also pull the xinmo out of the cab and connect it all to windows to make sure the u360 is working when connected to the xinmo on my PC (I think this will help eliminate any cabling issues that could be causing a problem).
soonerdoc:
Definitely something wrong with the controller. I think there is a short or something in the input/output port. Nothing using the I/O port works in either mode with buttons or directly connected to a controller board on the pi or on windows pc.
USB mode only works on windows (moving the stick registers a movement). When connected to the pi using only the USB port, when using the jstest command the x and y axis values are stuck at 32000 something (forgot the exact number) and don't move with any joystick movement. When testing the jtest command with my xinmo original controllers those values are 0 and change to the 32000 number with joystick movement. Also the LED on the joystick doesn't light at all in the leftward direction.
Think I am gonna have to RMA the controller.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version