Page 1 of 1

Interfacing Arduino Mega 2560 with ps2dualshock cytron shiel

PostPosted: Sat Feb 11, 2017 7:20 pm
by Apoorva jah
Hi, I am trying to interface Arduino mega with ps2 dualshock wired cytron shield.I used the code from examples for read joystick but I am getting only 255 not matter how I move the joystick and for read button it is not reading any input. I used serial.println to show yes when button is pressed (value= o)and no if it is not (value =1 ) but it is printing only no whether I press the button or not.I have set the baud rate at 9600 in the shield and code. the rx pin is at D2 and tx at D3 of shield and same in code.
What should i do?

Re: Interfacing Arduino Mega 2560 with ps2dualshock cytron s

PostPosted: Tue Feb 14, 2017 10:26 am
by Idris
Hi Apoorva jah,

Could you share some information on your project:
1. Few clear photos of your hardware setup.
2. Sample code which you used and the result.
3. Link that you refer.

Thanks.