And I am getting a warning narrowing conversion of motor 2 from byte ( aka unsigned char ) to 'char ' inside and my controller is not connecting with receiver the green light blips
Are those errors or warnings? If they are warnings it's okay, if they are errors try installing the library correctly. Once you compile the code you should see "Done compiling"... other messages are just warnings.
@@SurtrTech one is an error and the second one is warning , after installing the library it shows done compiling but after uploading it my controller doesn't connect to the receiver
@@abhimanyusinghshekhawat3382 Done compiling means there's nothing wrong with the libray and code. It's better to test with the library example and the serial monitor. Now I recommend you to verify the wiring it's better to take it all off and do it again. Also check if the controller has full power batteries and check if it's ON.
@@abhimanyusinghshekhawat3382 Yes it can because the Data pin is actually MISO and the Command pin is MOSI MISO/MOSI/SCK in Uno are 11/12/13 and on MEGA are 51/50/52 So you have to replace it wires that connects to 11/12/13 to 51/50/52 Don't forget in the code there's pin declaration too you have to modify it.
I made a robot that is controlled by a PS2 controller and Arduino. Arduino receives the signals while it's powered by the pc itself, once it's powered from an external dc supply the controller doesn't send signals or Arduino doesn't recieve any signals. Did anyone else had this issue ?? If you had how did you solve it ?
I have used this module with a robot powered by Li battery (on the channel too), I had no problem. Make sure you don't have any function that's related to the serial communication especially something that requires an input to move on... Of course make sure that the Arduino is not underpowered too.
thanks for this very helpful video. is it possible to use this as a generic controller for games?
Have you used Arduino uno r3 ?
can i get the file library?
drive.google.com/file/d/13t90wROPHBRyZHQy7vMvZV_HSpU-jWUN/view
Sir plz reply i did everything but on serial monitor it says controller not found.......... unknown controller type
How can I deactivate the vibration of the control, to perform a test without the possibility of damaging the PC input?
good contribution!!
You can just remove this line"vibrate = ps2x.Analog(PSAB_BLUE);" and it will not vibrate
And I am getting a warning narrowing conversion of motor 2 from byte ( aka unsigned char ) to 'char ' inside and my controller is not connecting with receiver the green light blips
Are those errors or warnings? If they are warnings it's okay, if they are errors try installing the library correctly.
Once you compile the code you should see "Done compiling"... other messages are just warnings.
@@SurtrTech one is an error and the second one is warning , after installing the library it shows done compiling but after uploading it my controller doesn't connect to the receiver
@@abhimanyusinghshekhawat3382 Done compiling means there's nothing wrong with the libray and code.
It's better to test with the library example and the serial monitor.
Now I recommend you to verify the wiring it's better to take it all off and do it again.
Also check if the controller has full power batteries and check if it's ON.
@@SurtrTech sir iam using an Arduino mega for this thus it can be a problem
@@abhimanyusinghshekhawat3382 Yes it can because the Data pin is actually MISO and the Command pin is MOSI
MISO/MOSI/SCK in Uno are 11/12/13 and on MEGA are 51/50/52
So you have to replace it wires that connects to 11/12/13 to 51/50/52
Don't forget in the code there's pin declaration too you have to modify it.
Dude for goodness sake speak with a higher voice!
I made a robot that is controlled by a PS2 controller and Arduino. Arduino receives the signals while it's powered by the pc itself, once it's powered from an external dc supply the controller doesn't send signals or Arduino doesn't recieve any signals. Did anyone else had this issue ?? If you had how did you solve it ?
I have used this module with a robot powered by Li battery (on the channel too), I had no problem.
Make sure you don't have any function that's related to the serial communication especially something that requires an input to move on... Of course make sure that the Arduino is not underpowered too.
Sir I am getting an error lib.cpp in member function Boolean ps2x read_gamepad (Boolean ,byte )
thank you so much!