Interfacing Arduino Mega 2560 with ps2dualshock cytron shiel

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

Interfacing Arduino Mega 2560 with ps2dualshock cytron shiel

Postby Apoorva jah » Sat Feb 11, 2017 7:20 pm

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?
Apoorva jah
Fledgling
 
Posts: 1
Joined: Sat Feb 11, 2017 6:16 pm

Re: Interfacing Arduino Mega 2560 with ps2dualshock cytron s

Postby Idris » Tue Feb 14, 2017 10:26 am

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.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang


Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 23 guests