Hello,
I recently purchased a Lynxmotion PS2 v4 controller (http://www.lynxmotion.com/p-1096-ps2-robot-controller-v4.aspx). I’m using an Arduino Mega 2560, and have done research using the RobotShop forums about how to wire it properly. I am attempting to run the example code for Arduino Mega from the Lynxmotion version of the PS2X library (https://github.com/Lynxmotion/Arduino-PS2X) but I receive the following error:
No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips
Unknown Controller type
I uncommented the debug lines from the .h file and received (excluding all of the OUT:IN Configure lines):
Controller mode not matched or no controller found
Expected 0x41 or 0x73, got FF
No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips
Unknown Controller type
I have pictures of my most current set-up attached.
My pin out is as follows:
DAT to digital pin 12
CMD to digital pin 11
ATT to digital pin 10
CLK to digital pin 13
GND to GND and 5V to 5V
I’ve tried using both 3.3V power and 5V power with no change. When the receiver and the controller both have power, the LED on the receiver and the controller light up solid green. Based on this forum - Is my lynxmotion PS2 wireless controller defective? - that means the receiver and controller are connected to each other. The two AAA batteries in the controller are fresh out of the packaging.
Originally I was using this set up with a Mega that had a LSS adapter board connected to it. To try to eliminate possible variables I tried using a second Mega without the adapter board attached (the adapter boards are extremely hard to remove so it was easier for me to simply use a second one). Both Megas have been used successfully in the past to run other scripts so I don’t believe it’s an issue with the Mega.
I’ve read through forum posts with similar topics, but have not been able to figure out the issue. Any help would be greatly appreciated!