-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino PS2X module not working with PS1 controller #26
Comments
Hi
As per Bill Porter' troubleshooting guide, try adding a 10k resistor between DATA (brown wire, or pin 1 on the controller port) and VCC (try both 3.3V and 5V in that order) on the Arduino
That helped me.
--
Отправлено из Mail.ru для Android четверг, 14 мая 2020г., 19:31 +03:00 от Digital-Rookie4 [email protected] :
…I have been trying to use the PS2X module to try to use my PS1 remote with my arduino (I am guessing that PS1 controllers will work because they are virtually the same ). The problem is that I don't want to download the module from the original website because it is not secure (it had HTTP instead of HTTPS) and the download file could contain viruses. Instead I got it off the arduino website. I have wired my controller correctly and have triple checked that all the wires are in the right positions and they seem to be. I then used the arduino example program given by the safely downloaded file. I complied it onto my arduino and I got the following message in the serial No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips Unknown Controller type. I then looked into the text file to debug it and it told me to uncomment 2 of the lines which is what I did. I then ran the example program file again like how the readme file told me to, and I still get the same errors.
How its supposed to be wired:
How I have wired it:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
@maxbambucha no luck :( |
@maxbambucha could it be because I am using a PS1 controller and not a PS2 controller |
For me it worked ok with original PS1 controller as well as Chinese wireless Dualshock 2.
--
Отправлено из Mail.ru для Android четверг, 14 мая 2020г., 23:36 +03:00 от Digital-Rookie4 [email protected] :
…
@maxbambucha could it be because I am using a PS1 controller and not a PS2 controller
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
@madsci1016 Do you know at all possibly why the debugger is not working? |
@maxbambucha Do you know at all possibly why the debugger is not working? |
@maxbambucha Right ok firstly I read something wrong that you wrote you said put a 10K resistor through the data wire and the VOLTAGE SUPPLY. Ok, I never did that, I only did the first part. Can you potentially show me how you would wire this. |
I think that the PS1 controller will give a different ID when the program checks what type controller it is. You may still get data out if you remove the type check. I also had a similar problem when using a wireless PS2 controller and I added a call to reconfigure the controller 500ms after the initialisation. |
@SerEpicPanda I have tried removing the checker before, when I did this and pressed on a button it referred to a different button on the controller or even 2 buttons. |
So the controller is working but you will have to get the raw data from it to find out which data bits are for each button. PS2 controllers have analog sticks and analog buttons so they give more data to the arduino than a PS1 controller will. It's likely that the data bits are just different to what the library is expecting. |
I also found this link It's made by someone who got the PS1 controller working with this library but they say it came up as a guitar hero controller |
This is what I ment by adding 10K resistor between data pin and vcc.
![collegamenti-590x257](https://user-images.githubusercontent.com/60151874/82010089-c6476b80-9679-11ea-994c-fd13ec7dfc61.png)
Also I agree that sometimes controller needs to be initialized more than once, so i added a loop of 10 appempts until the answer is recieved or maximum attempts reached.
--
Отправлено из Mail.ru для Android пятница, 15 мая 2020г., 00:27 +03:00 от Digital-Rookie4 [email protected] :
…
@maxbambucha Right ok firstly I read something wrong that you wrote you said put a 10K resistor through the data wire and the VOLTAGE SUPPLY . Ok, I never did that, I only did the first part. Can you potentially show me how you would wire this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
@SerEpicPanda I tired that but it did not work, I still got the same error as before. This is how I wired it: Would you possibly suggest to just edit the library so that it works with each button If thats the case, I have a problem, how am I going to reprogram the joysticks if there is only 2 and if they are already connected up to another button in the library |
@maxbambucha How would I exactly initialise it 10 times |
@SerEpicPanda @maxbambucha is L1 or R1 the joysticks? |
I think the circuit looks fine. It may be that the power supply isn't good enough but I doubt it. To initialise it multiple times you can just call the initialise line multiple times or call the reconfig line several times. Sometimes the controller just needs time to startup which is why there is a delay at the beginning. I'm also not sure what you mean by 'is R1 or L1 the joysticks' as they are both shoulder buttons. The original PS1 controller didn't have joysticks but then they released the Dualshock 1 which had two. The click button of each joystick is R3 and L3. |
@SerEpicPanda Right, I have tried using 5V instead of 3.3V and the arduino now thinks it is a guitar hero controller. This message came up One thing Bill Porter's troubleshooting guide says is to possibly added resistors inbetween the controller’s pins and the Arduino. I am certain that my remote is the dualshock (1 not dualshock 2) Additionally, the analogue button is now always stuck on and cannot be turned off |
The dualshock 1 does not support pressures so that error is correct. Are you able to get the joystick values out when it thinks it's a guitar hero Contoller. Also, since controllers are fine with 5v but some can only handle 3.3v for prolonged periods which may be why the analog button won't work for you. |
@SerEpicPanda One thing I did recognise is that if I click the square button I get |
Hello this is a guide with diff variables I used from lynmotion . I hope this helps http://www.lynxmotion.com/images/jpg/PS2-V1-Transmitter.png |
@SdWydler its a picture though. |
lol |
@SdWydler One thing though. I am using a PS1 controller and not PS2 |
I have been trying to use the PS2X module to try to use my PS1 remote with my arduino (I am guessing that PS1 controllers will work because they are virtually the same ). The problem is that I don't want to download the module from the original website because it is not secure (it had HTTP instead of HTTPS) and the download file could contain viruses. Instead I got it off the arduino website. I have wired my controller correctly and have triple checked that all the wires are in the right positions and they seem to be. I then used the arduino example program given by the safely downloaded file. I complied it onto my arduino and I got the following message in the serial
No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips Unknown Controller type.
I then looked into the text file to debug it and it told me to uncomment 2 of the lines which is what I did. I then ran the example program file again like how the readme file told me to, and I still get the same errors.How its supposed to be wired:
How I have wired it:
The text was updated successfully, but these errors were encountered: