brand new out of the box connected Lynxmotion PS2 v4 receiver with pinout adapter to my Arduino Uno at first everything seemed fine my code didn’t function so I tried loading example code and still no luck removed the custom board I made and wired in directly to the Arduino pinout still nothing now I have fixed my problem with the example code and it shows unknown controller but the green light on the receiver will only blink now and the controllers red and green lights are on solid no matter what I do.
what does the red light on the controller indicate and is it possible to reset the controller
any help would be greatly appreciated
@KaleWallingford eWall
Take a look at how the PS2 receiver is wired to the BotBoarduino here:
http://www.lynxmotion.com/images/html/build185.htm
Make sure you have the PS2 library downloaded and properly set up:
http://www.billporter.info/2010/06/05/playstation-2-controller-arduino-library-v1-0/
Make sure the pinout in the sample (DAT / CMD / ATT / CLK) correspond with the pinout from the receiver to your Arduino.
Last, know what the PS2 sample code provides (serial output at a specific baud rate which can be viewed from the Arduino serial terminal)
If not, you’ll need to better describe what’s happening, clearly explain and/or show all connections as well as the sample code etc. The smallest detail will create issues.
Hi again
to Start, I have added 2 images of what I have set up and I will give you an explanation so we can find the problem.
the LED on the receiver is blinking and the controller both the red and green LEDs are solid.
this is run the example code from the library that you linked me and wired to match.
the controller doesn’t change no matter what button I push it doesn’t print anything out on the Serial Monitor.
thank you for the help.
@KaleWallingford Based on the second image, it seems to show that the controller was found (both LEDs are solid, so that’s a good sign), and the last two notifications seems to show the square was released and the X button was pressed. This also means you’ve configured the serial terminal to the correct baud rate (57600). This is the output to expect via the interface. You can take a look at the example to see what each button should output via the serial terminal. Although I forget what it does, can you press the mode button?
There’s this post which is on the same subject:
To confirm, you’ve wired it:
CLK - 13
CMD - 11
ATT - 10
DAT - 12
The last thought is perhaps the pins on the MEGA are not the same as on an Uno and have issues? Perhaps someone else here might have gotten the PS2 library working with a MEGA?
Just tried it on the Arduino Uno and the same thing
I thought on the PS2 v4 the receiver LED was supposed to be solid it is blinking and the Red and Green LEDs on the controller are solid.
the Arduino recognizes that the controller’s receiver is connected but the controller is not connecting to the receiver
I posted here because I purchased is from RobotShop.
what are your recommendations?
Just re-confirmed with a new PS2 and an Arduino Uno. Worked immediately. You are correct that the light on the receiver should stay solid. Let’s proceed with an RMA. I will convert this thread to a ticket for our RMA department. Sorry for any inconvenience.
This topic was transferred to internal RobotShop Support.