I've been trying to connect a PSX1 dual-shock controller to the Arduino board. The first library that I tried didn't worked (PSXLib), neither the second (GPSX), neither the third (PSXLib_analog), neither the fourth (PS2Lib), ... I have the data wires directly into the arduino pins and the power and ground of the controller into the +5V and GND of the arduino.
After a lot of trying I discovered that if I put 5V and ground from my power supply in the Vin and GND of the arduino, the code works perfect. So i thought it should be a power related issue. I've tried to externally power the arduino at 12V using the DC jack, and it doesn't work, also I've tried to supply the board trough the USB socket using a USB charger (1.5A capable, so it's enough I think) and neither worked.
It seems like the code don't work if the LDO is regulating the voltage... The board is an arduino duemilanove with the atmega328.
¿Any ideas on this? I'm going to try with my arduino duemilanove with atmega168.
Regards.
EDIT: I've tried the same code in another older board with atmega168, exactly the same happens...
Ok... I didn't tried using externall pull-ups. It seems like internal pull-ups are too weak for this application... Everything working with all the libraries...
I've tried to supply the board trough the USB socket using a USB charger (1.5A capable, so it's enough I think)
Keep in mind that there is a PolyFuse on the USB socket which effectively limits the on-board current to about 500mA. (I say about because PolyFuses don't cut out exactly where they are rated.) So even if your external supply is rated at 1.5A when connected through the Arduino's USB port, your current is still limited.
MarkT:
Consider an 8 to 9V supply, I think that's the voltage needed for the Dual Shock rumble motors to work properly, also will feed Vin nicely.
I should have kept my PS1 and controllers instead of donating to a GoodWill. Now I will have to pay to get a controller to try this.
That was before I came to know about arduino.
Playstations and controllers are very cheap at Goodwill (at least those local to me!) - I've picked up numerous PS2s in working condition for under $25.00 each, and the controllers can be had for much less. You should be able to find a ton of other controllers as well (for parts, or direct connect or whatnot) - I've seen plenty of broken MadCat PS2 controllers, N64 controllers, Dreamcast, and of course tons of Sega Genesis and NES controllers. I've also found a ton of old PC controllers (including more than a few that looked like PS2 controllers). Then there are the venerable Atari 2600 controllers (and Wico joysticks). I've even found old Kraft analog joysticks; the "oldest" "controller" I found though was an analog joystick meant for remote control of a quadraphonic stereo (never found the stereo, though!), that probably dated from the early 1970s.
None of these cost more than a few dollars - plus there was the odd assortment of "TV Game" controllers, that could be potentially hacked in some manner.
On a different note - I recently found a Mouse Systems (IIRC) serial optical mouse for the PC XT/AT that dated from the early 1980s! That goes in my old computer collection, though - of course...
cr0sh, you made me jealous. My city/town has like 3 thrift stores and I know there's nothing in one of them. I had to pass up a 386 system because it's in the cities and I don't have enough space to store it.