This is a great project! I got this working today and am very excited to incorporate this into some of my projects. One question though, I ran the demo and noticed that the values for the joystick positions reach their max/min values along time before the full range of motion is reached. Is this typical to what others are seeing?
Again thank you for sharing this excellent work!
I have found it typical that there are a wide range of responses across the video game controller market. I don’t remember if my controller was bad like that as well, but would not be surprised if it was.
Just to let you know that we will again drive our robot thanks to your lib this year!
It was for arduino 022 at the time. We’ll be updating for arduino 1.0 this time, and of course publish everything in due time. The kids are getting better at coding and building robots.
on my Arduino Uno with the library and changing CTRL_CLK to 8 fixed it.
Thanks a ton for the library and all the helpful documentation!
where can i solve this problem or find the stil and set at 41?
Thanks for taking the time to build such a great library for the controller.
Would you say this correct or have I made an error in the wiring?
Couldn’t be sure. The only way to correctly label all the correct wires is to compare the PS2 connector to the wiring diagram on this page. it’s the only true constant. Wire colors can change.
This may help a lot of users hooking up the ps2 to a nano.
When I initially set mine up, I kept getting the controller not found error, yet if I rebooted the nano several times (sometimes 10x) it would “catch” and the controller would work.
This solved my issue, so now the controller loads every single time.
It says”No controller found,… Unknown Controller type”.
(I have an Original Sony Dualshock2 gamepad).
(by adding a 10k pullup R to the Data Pin and only with the 1.4v lirary).
Don’t now how to get it rumble?
to what Pin should I connect the “7.5vdc” (for motors) cable?
Thx a lot for this library!
I think I caused the compile issue. Sorry about that.
That will get it out of that scope.
Will check for more fixes, and work with Bill.
1:FF 43:FF 0:FF 0:FF 5A:…………………………………….
But it works fine with v1.4.
Try using THIS VERSION. It was my last update before Kurt made some big changes to add more compatibility/features/cleanup. Let us know if it works ok so we know where to look to fix it.
I would like to know if a PS3 wireless controller could be used on a PS2, i guess it could be used by the USB port on the PS2 and FMCB loads a USB driver, or by hardware – somehow the PS3 signals get converted to PS2 inputs.
It is within the realm of possibility, but would require an Arduino with HOST side USB at least, and tons of custom code that this library wouldn’t help you with. I’d start by finding the buy that wrote the opposite of my library, and Arduino that pretends to be a controller. I Think one of the trackbacks on my main library page points to a forum post by him.
When I try to get your PS2X_Example sketch to compile, I get the following errors. Am I doing something wrong?
What version of the library are you using? It looks like you may be using an earlier one, before it was made compatible with Arduino 1.0.
Yep, that is a version before he converted the code to b 1.0 compatible. Newer versions are available at his github location.
The library doesn’t seem to work on arduino 1.0.
and when i enable debug, the code doesn’t compile giving a pile of errors. I am using the arduino mega 2560 with the sony SCPH-10010 controller.
Try downloading the library again, replace the old version and re-compile your code. There was some efoort to increase compatibility with other MCUs and I think it’s causing problems.
I will take a look again. Have been using it, mostly on Arduino 1.0 systems.
Yes the later change did make it compatible with Chipkit Pic32 systems (mpide), but that was not the main purpose for the changes.
For those who have problems, would be good to know how you configure your PS2. I normally keep mine without extra data or motors as I don’t use the extended pressures and the like. You might try this and see if that helps. Also I did most of my testing with Lynxmotion wireless PS2’s. Will see if I still have a wired Sony sitting around.
Again will take another look through.
What was the PIN connections from your wireless controller to the MEGA !!
I tried the proper pins on the MEGA & it STILL didn’t work! HELP !!!
Hello, I followed your advice and everything works perfectly.
I will send a very big “thank you” from Pais.
Acknowledge is not connected to anything.
Connected it to an Arduino UNO & it worked !
Tried same setup on Arduino MEGA & did not work. Has anyone gotten this to work with a MEGA with different pins other than 13,11,10,12 ? My Teeces lights use pins 7,8,9,10,11,12. Tried ALL suggestions in guide nothing worked !!
Using PS2 Wireless Controller w/Lynxmotion cable. All pins are correct as I already got this to work on my UNO.
Ok, I would like to say thanks for putting this out there, I just am having some problems getting this up and running.
Are you still having problem Mike? Really everything I can suggest is written in this troubleshooting guide. Make sure you try all the suggestions.