circuit_projects

Circuit Projects

Blogger

EEWeb Stats

Circuit's Blog :

Return to Blog

PIC Used to Interface PlayStation 2 Controller

Figure:1

Figure 1 

This project shows how any microcontroller unit can be interfaced with PS2 controller in order to setup various embedded projects that include PS2.

A PIC18F4550 was used in this project with application examples along with complete command listing and explanations. The PS2 Dual Shock Controller or Guitar Hero controller are read using the two programs available. For all the joysticks and button pressures to be read, the first program will configure a controller in analog mode. The left pressure for controlling the left vibration motor can also be set by this program as well as the right button pressure where the smaller right vibration motor is toggled. Two modes are available in the second program which consists of Bulk Capture & Dump and Continuous SPI to Serial.

A minimum of 6 wires are needed out of the 9 wires to be able to communicate with the controller while motor_power is required to operate the vibration motors. These wires would represent the clock, power & ground, attention, data, and command. Through serial communication, a byte is sent by the PlayStation at the same time it receives one which features a full-duplex communication.

Rest of the project

Tags: PIC, controller, PlayStation 2,

Comments on this post:

There are currently no comments.

Login or Register to post comments.
 
Click Here