How to control 360 Continuous Servo with PS/2 Controller?

Hy guys, recently i build a small robot , but i still confused how to control 360 Continuous Servo. what i want is if i press the triangle button the rotation servo is spinning ride and after i release the triangle button the servo is stop to spin. anyone can give me the script?

thanks,
sorry for my bad english.

You might try using the search box in the upper right of this page and search for key words like PS/2.

I'm interested in learning to use a PlayStation 2 controller with an Arduino.

If you run into trouble writing a program to control a servo based on PS2 controller commands, let us know and I'll likely try to help.

Here's a link to a thread where someone wanted to use a Wii Nunchuck with an Arduino. The available code turned out to have severe problems so I wrote a simple demo to illustrate how the controller can be used.

If/when you run into trouble writing your program, post the code you're using. When/if you post code to the forum, make sure to follow the directions in item #7 of the thread "How to use this forum - please read."

Make sure to include links (with URL tags) to any libraries and provide links to the article where you learned about the code/library.

One of the cool things about the PS2 controller is the buttons are pressure sensitive. I've often thought it would be cool to use these buttons for proportional control tasks. So not only should you be able to tell a CR servo to spin when the triangle button is pressed, you could use the pressure on the button to indicate how fast the CR servo should spin.