Forum: General Jailbreak Discussion - The General Jailbreak Discussion forum is your place to discuss everything related to the PS3 jailbreak. You can discuss QA Flags, CFW, kmeaw or find information about many general jailbreak methods.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree2Likes
  • 2 Post By i3urn

Thread: PS3 Controller Automation with Teensy 2.0++
  

Results 1 to 8 of 8
  1. #1 PS3 Controller Automation with Teensy 2.0++ 
    i3urn is offline Registered User
    Join Date
    Apr 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    I have recently been able to use my Teensy 2.0++ as a macro controller for my PS3. I have used it to automatically start a B-Spec race, wait for the race to finish (~9 mins), then press the correct keys to get the race started again. [And repeat].


    This project is made possible by Mathieu Laurendeau's source code for his diyps3controller project on google code:
    diyps3controller - DIY PS3 Controllers - Google Project Hosting

    You may download and setup your development environment by following his instructions here: GettingStarted - diyps3controller - This wiki explains a simple way to install developpement tools for the diyps3controller v1. - DIY PS3 Controllers - Google Project Hosting


    After getting everything setup you may take a look at my PS3Controller.c file [Attached below] to get a feel for how to send buttons to the PS3. If you would like to learn more about sending different buttons/moving axis take a look in his usb_joystick.c file.

    The zip file below will also contain TWO hex files for Teensy 2.0++ other devices will need to compile their own, one will press the X button every 11 seconds (useful in GT5 where you need your driver to maintain pace for the entirety of a race) and the other will initiate, wait, and restart the Lamborghini Exclusive race (the first lambo race) in GT5. The second hex assumes a race time of ~9mins.


    AFTER YOU'VE INSTALLED THE HEX TO YOUR DEVICE:
    First make sure you have turned off your other PS3 controllers or set them to controller other than 1.
    Next just plug in your device and it will be recognized as Controller 1 and begin automation

    I'm publishing my findings so that others can build macros and publish/share them with the community and am not looking for credit ( frankly I didn't do to much to put it together anyway ).

    I'm a student so I will try to find time to answer questions and develop more macros!

    UPDATE 4/17/2011:
    Matlo mentioned his bluetooth PS3 controller emulator which has macro support built-in! link (PS3 Controller Automation with Teensy 2.0++)

    Check out his blog post here: diy open-source ps3 controllers: New English tutorial

    And there is a group of german GT5 players that have compiled a list of macros for races to use with the bluetooth PS3 controller emulator here: B-Spec PC-Emulatur Makro Thread (Bitte nur Macros mit php-Code)
    Attached Files
    Last edited by i3urn; 04-17-2011 at 07:13 PM.
    tthousand and master737373 like this.
    Reply With Quote  

  2. #2  
    Join Date
    Jan 2011
    Location
    Year 1
    Posts
    1,583
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    105
    Likes Received
    224
    Sweet, thanks. I might try this out tomorrow. midnight here
    Don't Feed The Trolls Past Midnight

    Reply With Quote  

  3. #3  
    tthousand's Avatar
    tthousand is online now Paradigm/Paragon/Prototype Robo Model #I
    Join Date
    Sep 2010
    Location
    The Future
    Posts
    6,737
    Downloads
    33
    Uploads
    143
    Mentioned
    188 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    2745
    Likes Received
    2597
    I wonder if this is x3max compatible? or what about maximus avr usb 1.2 16kb with the Atmel chip, NOT THE PIC.

    BTW, WELCOME!, amd thanks alot i3urn. This is good start to a great future.


    FacebookTwitterYouTubeCFW/JBDowngradingCheatPKGs
    PS3BrewPS3Brew v2PSVitaBrewWallOfFamePS3DevWikiRebugGitbrew
    Reply With Quote  

  4. #4  
    Matlo is offline Registered User
    Join Date
    Apr 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I'm happy to see someone hacking this stuff

    People may also be interested into my newer ps3 controller which runs over bluetooth: link

    It has a built-in macro functionality. Although the macros have to be defined with a text editor, it is much more user-friendly than the teensy version.

    Many users (German thread) are using it to play B-Spec.

    Some macros are available there: link
    Reply With Quote  

  5. #5  
    SenorClean is offline Member
    Join Date
    Oct 2010
    Posts
    23
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I could see this being handy to make your PS3 login and launch playtv on boot
    Reply With Quote  

  6. #6  
    i3urn is offline Registered User
    Join Date
    Apr 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    Thank you matlo! I saw the bluetooth utility but don't have a pc that I can idle while im in class lol. that is definitely more user friendly for anyone wanting to give macroing a shot
    Reply With Quote  

  7. #7  
    i3urn is offline Registered User
    Join Date
    Apr 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    Quote Originally Posted by tthousand View Post
    I wonder if this is x3max compatible? or what about maximus avr usb 1.2 16kb with the Atmel chip, NOT THE PIC.

    BTW, WELCOME!, amd thanks alot i3urn. This is good start to a great future.
    Thanks! It should be compatible with the x3max as long as you are able to flash non proprietary binaries to it, you will just need to have it compiled for that specific chip
    Reply With Quote  

  8. #8  
    Veil is offline Registered User
    Join Date
    Oct 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I downloaded the sample code and managed to edit the ps3controller file to get it to press x and start with different delays on my PS3, but substituting RIGHT_BUTTON or other directional buttons for CROSS_BUTTON didn't work. How can this code be used to input right, left, up, and down?
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •