Open Digital-Rookie4 opened 4 years ago
Отправлено из Mail.ru для Android четверг, 14 мая 2020г., 19:31 +03:00 от Digital-Rookie4 notifications@github.com :
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
Отправлено из Mail.ru для Android четверг, 14 мая 2020г., 23:36 +03:00 от Digital-Rookie4 notifications@github.com :
@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 https://theteamasterix.wordpress.com/robo-sprint-2/robo-sprint/
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.
Отправлено из Mail.ru для Android пятница, 15 мая 2020г., 00:27 +03:00 от Digital-Rookie4 notifications@github.com :
@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 Controller refusing to enter Pressures mode, may not support it. GuitarHero Controller Found
This PS1 controller does have joysticks:
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 orange fret pressed
along with this I also get a message saying wammy bar position:
if I then move the joystick while holding the square button I get the value of the joystick. I also recognise that if you hold the square button you get orange fret pressed
once then you get lots of wammy bar position
due to holding down the button, if I move the joystick along with this the wammy bar position:
changes
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: