Some code that allows you to interface over serial with the microcontroller onboard a sony ps2 controller, using an arduino. I wrote this as part of a hacked together budget rf controller, but thought other people might find it useful.
See here for some in depth explanation of the packet structure (and a wiring diagram), and here if you're new to SPI.