Nimer
Posts: 4
Joined: Thu Jan 17, 2013 11:12 pm

Raspberry Pi as PS3 controller

Thu Jan 17, 2013 11:21 pm

Hi ladies and gentlemen.

I'm checking possibilities of using Raspberry Pi as a PS3/XBOX/PC controller... as result I have a few questions to you:

1. Can raspberry pi be powered only be usb cable?
2. How long does it take to boot linux (console mode) on raspberry pi?
Optional (if you know the answer):
3. Is there any software that allows to connect raspberry pi to ps3 and make it act like a controller? There is no sense in re-inventing wheel...

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Raspberry Pi as PS3 controller

Thu Jan 17, 2013 11:40 pm

You need the PS3 to be the USB master. However the Raspberry Pi model B cannot act as a USB slave device. The model A may or may not have that ability, but is almost certainly not programmed to do so. If it does have the ability, you would have to write the USB driver yourself. I'm not sure if there is sufficient information available to do that and it is a complex job.

There are probably microcontrollers better suited to the job.

1. Yes, if the host can supply more power than it is supposed to. (Many do.)
2. About as long as it takes a PS3 controller to sync to the PS3.

Nimer
Posts: 4
Joined: Thu Jan 17, 2013 11:12 pm

Re: Raspberry Pi as PS3 controller

Thu Jan 17, 2013 11:47 pm

Thank you very much for fast answer ;).

Thats certainly a big issue ;/. Writing my own driver for usb would be a pain... Maybe someone of the raspberry pi community tried to do something similar?

My idea was to build PS3 arcade stick with bunch of extra features like visualizing "inputs" on external screen, configuring dead zones, etc.

Nimer
Posts: 4
Joined: Thu Jan 17, 2013 11:12 pm

Re: Raspberry Pi as PS3 controller

Fri Jan 18, 2013 12:52 am

Hmmm... I'm not really accustomed to FTDI solutions, but maybe someone tried Raspberry Pi Cable, TTL-232R-RPI (http://www.ftdichip.com/Products/Cables/RPi.htm)? This most likely would require writing my own driver, but at least it makes it possible on any raspberry pi device...

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Raspberry Pi as PS3 controller

Fri Jan 18, 2013 7:32 am

I don't think that the PS3 controller is a USB Serial device.
So that cable won't help.



ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Raspberry Pi as PS3 controller

Fri Jan 18, 2013 7:43 am

I am sure the PS3 is a USB HID device, not a USB Serial device. That FTDI board only gives you an RS232 serial link accessed via USB.

Nimer
Posts: 4
Joined: Thu Jan 17, 2013 11:12 pm

Re: Raspberry Pi as PS3 controller

Fri Jan 18, 2013 12:17 pm

So only way to do this would be to buy raspberry pi compatible bluetooth dongle and do pairing in same way as Blueputdroid (android app that makes your rooted android phone act as ps3 keyboard/mouse/gamepad)?

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Raspberry Pi as PS3 controller

Fri Jan 18, 2013 1:01 pm

Maybe. Personally I'd find a microcontroller that had a USB port with software available to implement USB HID. (For example see here.) Then I'd use it as a front-end for the RaspPi, if indeed I bothered with the RaspPi at all.

I'm interested in this from the other direction -- using PS3 controllers on the RaspPi. Stuff I read today suggested that the PS3 Bluetooth implementation was non-standard in some ill-defined way. The Linux kernel was said to include support for it, but of course you'll be implementing it in the other direction. I have no idea how difficult that will be.

Teclis01
Posts: 10
Joined: Tue Jan 22, 2013 2:02 pm

Re: Raspberry Pi as PS3 controller

Wed Jan 23, 2013 7:44 am

I m looking for something similar and i found that:
http://blog.gimx.fr/

i wish that it ll help you

Return to “General programming discussion”