Shop OBEX P1 Docs P2 Docs Learn Events
PS2 controller — Parallax Forums

PS2 controller

ArchiverArchiver Posts: 46,084
edited 2003-07-03 19:54 in General Discussion
hi,

I'm trying to read commands from a Playstation2 controller with
the bs2sx, I've connected the data, gnd, +5v, ack, att, command, and
clock pins to the stamp and I'm using the code from an example posted
on the nuts and volts web site. When I display the controller
commands via debug I get all the buttons to be 0 (unpressed) and all
the joystick values to be 255. Occassionally, the button value will
be 11111111111, and the joystick values will all be 0 (everything is
inverted)... Pressing buttons and moving the joysticks shows no
effect on the debuged values... I used to power the controller from
the stamps +5v output but now I'm using a 7805 5V regulator (because
the stamp was heating up a bit). The ground of the controller power
and the stamp power are tied together. Anybody have any suggestions
or see something wrong with the code (for instance, one site says
that the controller will send more than one 'garbage' byte when it is
initiated, and the nuts and volts example code only throws away one
garbage byte). I'm not using an adc on the data line, because the
code assumes digital mode.
When I first tried the controller out I was still using my super
nintendo controller wiring diagram, so I hooked up the pins
incorrectly (put power and ground on the wrong pins too), so it's
possible that the controller is blown, I have another new one that
I'll be able to test out tomorrow. But, other than that, anyone have
any suggestions? Thanks!
Sign In or Register to comment.