Shop OBEX P1 Docs P2 Docs Learn Events
Playstation Controller/Guitar Hero? — Parallax Forums

Playstation Controller/Guitar Hero?

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2008-06-14 16:18 in Propeller 1
Has anyone tried/used Playstation (original) controllers with the Playstation2 controller
object with success? I'm attempting to get a Guitar Hero (wireless) working, but haven't
had much luck, yet. I'm going after a real PSX controller to test..

Anyone else been down this road yet? Different object required?

Thanks
OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange

Comments

  • SpinHeadSpinHead Posts: 28
    edited 2008-06-08 02:16
    Original PSX code works fine on ps2, I did have to change some value to get it to work, iirc it was a timing thing, I will have to find the code, I used it to play some fighting game perfectly when i started a combo, LOL
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-08 02:35
    Actually what I'm trying for is the other way around..

    I'm using the PS2 object from obex with a PSX controller.
    Looks like 1K resistors between three data lines, and a 10K resistor on the DAT line.
    IIUC, 5v is also applied to the DAT(1) line.

    Can someone confirm the connections?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-08 03:01
    This is the configuration I'm playing with at the moment,
    I'm pretty sure it isn't quite correct. IIUC, I also need to
    connect 5v to PIN 1 of the playstation connector.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • BradCBradC Posts: 2,601
    edited 2008-06-08 03:43
    That pinout matches one I'm using at the moment to get a PS2 DualShock controller to talk to the prop.

    <EDIT> Oh, you need a pull up on the DATA line (pin1). The controller output is open collector
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-08 03:48
    Like this?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • SpinHeadSpinHead Posts: 28
    edited 2008-06-08 05:08
    Oops, didnt understand the original question, but you could see how haveing a guitar playing prop would be nice [noparse]:)[/noparse], the pinout you have is the same as what I am using, so it should work, I had problems with not enough current on pin 5 to correctly drive rf based controllers, you may be having a similar problem.
  • BradCBradC Posts: 2,601
    edited 2008-06-08 05:42
    Oldbitcollector said...
    Like this?

    No. Use a 1k from Pin1 to the Prop and a 10k from Pin1 to +5v

    You need a pull up directly to Pin1 on the PS controller, the 1k to the prop is just protection.
    When the controller sends a "0" it just pulls the pin low.. otherwise it lets it float.

    Are you using the PS2 object from the obex or something home cooked?
    I thought I'd have a crack at trying to talk to the PS2 controller using SPIN rather than spawning another cog, but I'm not so sure it will be fast enough.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-08 17:41
    Always double check a Wiki for accuracy! nono.gif

    The pinout for the PS2 port I was using was backward!!

    I now have a real controller (wired) working with the object from obex,
    but I don't have data from the Guitar (wireless) yet.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • ColeyColey Posts: 1,110
    edited 2008-06-08 18:33
    OBC

    I don't know if this is relevant but I remember reading on this forum somewhere that wireless PS2 controllers won't work.

    At least I think that's what I read lol

    Coley tongue.gif

    EDIT:

    It seems as though all wireless controllers are not the same, some will work and others won't.

    Here's what I found that might point you in the right direction

    http://forums.parallax.com/showthread.php?p=573796
    http://forums.parallax.com/showthread.php?p=668706

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX Forums - The home of the Hybrid Development System and PropGFX Lite

    Post Edited (Coley) : 6/8/2008 6:44:01 PM GMT
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-09 02:57
    After a long day of testing, modifying timing, and cross checking, it
    doesn't look like the wireless Guitar hero controller is a winner here.

    Wired controller on order... [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • BaggersBaggers Posts: 3,019
    edited 2008-06-09 10:06
    didn't know you could get wired guitars, spose I should look on net some more lol

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2008-06-09 14:29
    In May 2008's Circuit Cellar, Jeff Bachinochi "show{s} how to investigate the Sony Playstation 2's controller interface and replace·a controller all·wtiht the same circuitry." (page 70) Unfortunately this article is not online, but you can get a pdf of the issue.

    He does recommend http://www.hardwarebook.info as a one-stop site for specifications and so on.



    Post Edited (Fred Hawkins) : 6/9/2008 2:38:12 PM GMT

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-10 03:48
    Thanks, I'm reading that article right now..

    I've also added a page to the Cookbook which hopefully will save others
    from having to duplicate my frustration with this project. [noparse]:)[/noparse]

    My wired controller should arrive Friday.. Of course Propeller Guitar Hero would
    be interesting, but I thought it might also be cool to use Rayman's wav player to
    create my own Guitar Hero instrument using pre-recorded wav samples. [noparse]:)[/noparse]

    Too many cool projects... Too little time..

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • ColeyColey Posts: 1,110
    edited 2008-06-10 08:03
    OBC,
    did you know Baggers has already done a version of Guitar Hero for the Hybrid called Joypad Hero??
    There is a small clip of it in action here:-

    www.youtube.com/watch?v=ZBjtsCkS_MA

    It's just after Dragons Lair game smile.gif

    Of course it's for PropGFX Lite but that should be no problem for you..... smilewinkgrin.gif

    Regards,

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX Forums - The home of the Hybrid Development System and PropGFX Lite
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-10 18:31
    Yes, I'm all over that!

    Just trying to twist Baggers arm into releasing his source to that program.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-06-13 21:23
    My "wired" controller arrived today... I looks like there may be enough
    difference between a standard Playstation controller and the Guitar Hero
    controller to require the creation of an object for Guitar Hero.

    Has anyone else tried this yet, or am I blazing new ground again?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • BaggersBaggers Posts: 3,019
    edited 2008-06-14 16:18
    Looks like you're blazing new ground again matey [noparse];)[/noparse]
    keep it up lol

    Baggers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
Sign In or Register to comment.