I’ve been building the Lynxmotion A-Pod over the last few days. I’m up to the point where I’m hooking up the PS2 controller using this tutorial (I’ve got the BotBoarduino):
The code then successfully compiled and uploaded. I can confirm that the code itself is running. I modified several sections of PS2_Controller.cpp to see if the code could recognize the PS2 controller. All tests came back negative.
I then tried the library’s example code (making sure that the pins were modified to suit the board). I kept getting this output:
[code]No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips
Unknown Controller type found[/code]
Whilst the receiver is powered it has one red light which is on solidly, and another which blinks. Then when I power on the PS2 controller the flashing light becomes solid (showing that it is successfully connected?).
I’ve also double checked the wiring several times. It’s correct.
Is there anything I’m missing? Are there any suggestions on what to try now?
Bill Porters code works great, but I found at times it had some issues with the Lynxmotion controllers, so I forked my own copy of his library as did Lynxmotion. When Lynxmotion came out with Rev C? of the controller there was an issue with timings and the like, which I made some miner changes for. I believe that Lynxmotion has picked these changes up.
Yes, the Lynxmotion version has the new changes. It is now identical to your version – I just did a detailed comparison --, except yours has also support for SAM3X8E.
@boar401s2, If you haven’t already done this, you also have to remove the JA, JB, and JC jumpers from the board. They’re identified by number 5 in this manual:
Thanks for all the help! I tried both the lynxmotion and Kurt’s forks - and neither of them worked. I replaced the PS2X library folder under ~/My Documents/Arduino/libraries with the PS2X_lib from both of the forks. I then tried the example code with each, making sure the pins were correct:
error = ps2x.config_gamepad(9,7,8,6, true, true); //setup pins and settings: GamePad(clock, command, attention, data, Pressures?, Rumble?) check for error
I also removed JA, JB, and JC, whilst leaving JPU in place. I kept getting this output:
No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips
Unknown Controller type
Picture of wiring would help. This helps to verify that the right wires are going to the right pins. Also that you are passing +5v to the board and not VS. Are the leds on the receiver on? One steady one blinking? Does it pair with remote. When this happens usually both leds go solid on.
There are several threads up on the forums that talk about debugging PS2s.
The situation is this. The BotBoarduino has some kind of problem. I’ve tried the controller successfully with other Arduino boards with no problems.
However, when I wire the reciever into the BotBoarduino, there’s problems. I’ve tried both wiring it into the the servo headers (as the guides suggests)
and wiring it into the shield sockets. Below are two pictures of the original (as the manual asks for) wiring: