Arduino-PS2X icon indicating copy to clipboard operation
Arduino-PS2X copied to clipboard

Controller works only with slow speed

Open luxarts opened this issue 5 years ago • 1 comments

Hello! I tried this library several times. The wiring was perfect. I'm using an Arduino Mega, tested the pins with a simple sketch to check if the Arduino was fault and everything worked fine. Tried 2 different PS2 controllers (a Sony's original and a clone) and both failed. I enabled the debug and the serial port throw "Expected 0x41 or 0x73, got 1". I disabled the internal pull-up and attached an external one (10k to 3.3v) without luck. But when I changed the speed (CTRL_CLK in PS2X_lib.h) from 4 to 20 it worked perfectly. I tried higher speeds (lower numbers) but doesn't work.

Probably this is not a bug from the library but wanted to share with you and other people with the same problem. Will be nice if you change the default value to a higher number and then the users lower it so the library will work for all without modification.

Regards, Lucas

luxarts avatar Mar 05 '19 04:03 luxarts

Duplicate of #15

leesei avatar Jul 10 '19 06:07 leesei