Comments (8)
Hi, thanks for your help. Seems like the problem was low voltage. In the manual I got was recommended voltage 3.3V which was not working. I have changed the voltage to 5V now and everything works fine. It looks like I have a new desing of the receiver so maybe they changed the circuit desing to 5V now? I don't know.
Anyway, thank you so much for this library.
Best wishes, L
from psxnewlib.
Maybe to add - the controller disconnets for 1 second and then connects again for the 3-5 seconds. During this connected time it works flawlessly. And it is being recognised as Dual Shock.
from psxnewlib.
First of all make sure that the wiring is solid. Then please try some of the suggestions from this post and thread.
from psxnewlib.
Hi, thank you for your help. I can confirm that the wiring is solid and correct. Although my controller works good with the Psx library as in the post you mentioned, I wasn't able to get it working via editing the parameters as you described.
So it still remains the same:
HW SPI disconnects every 3-5 seconds, recognised as dualshock.
Bitbang nothing, the controller isn't recognised at all. I noticed one thing, on the receiver there are two LEDs, one is PWR LED, this one is simply on. And a second one is RX, this one usually blinks 1 second on, 1 second off - when disconnected from the controller, turned on when connected. But when I upload the bitbang sketch, it somehow blinks completely randomly.
I will try adding the external pullups 1k Ohm resistors on the CMD and DATA lines as you suggested and will let you know.
Thanks for your help.
from psxnewlib.
Are you using 1k pull-ups?
from psxnewlib.
Hi! Yes, I am using 1k pull up resistors on the DATA and ATT line. Is that correct?
I just tried the bitbang example with DUMP_COMMS.
You can see that the controller (probably) gets detected, but cannot enter config mode.
--> FF FF FF
<-- 01 42 00
--> FF 03 5A
<-- 5A 5A 5A 5A 5A 5A
--> FF FF FF FF FF FF
Controller found!
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF 83 B4
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
<-- 01 43 00
--> FF FF FF
Cannot enter config mode
<-- 01 42 00
--> FF FF FF
Controller lost :(
<-- 01 42 00
--> FF FF FF
And HW SPI example code gives this:
--> FF 41 5A
<-- 5A 5A
--> FF FF
Controller found!
<-- 01 43 00
--> FF 41 5A
<-- 01
--> FF
<-- 5A
--> FF
<-- 01 43 00
--> FF F3 5A
<-- 01
--> 00
<-- 5A 5A 5A 5A 5A
--> 00 00 00 00 00
<-- 01 45 00
--> FF F3 5A
<-- 5A 5A 5A 5A 5A 5A
--> 03 02 00 02 01 00
Controller Type is: Dual Shock
<-- 01 44 00
--> FF F3 5A
<-- 01 00
--> 00 00
<-- 5A 5A 5A 5A
--> 00 00 00 00
<-- 01 44 00
--> FF F3 5A
<-- 01 00
--> 00 00
<-- 5A 5A 5A 5A
--> 00 00 00 00
<-- 01 44 00
--> FF F3 5A
<-- 01 00
--> 00 00
<-- 5A 5A 5A 5A
--> 00 00 00 00
<-- 01 4F 00
--> FF F3 5A
<-- FF FF 03 00 00 00
--> 00 00 00 00 00 5A
<-- 01 4F 00
--> FF F3 5A
<-- FF FF 03 00 00 00
--> 00 00 00 00 FF FF
<-- 01 4F 00
--> FF F3 5A
<-- FF FF 03 00 00 00
--> 00 00 00 00 00 5A
<-- 01 43 00
--> FF F3 5A
<-- 00
--> 00
<-- 5A 5A 5A 5A 5A
--> 00 00 00 00 00
<-- 01 43 00
--> FF 79 5A
<-- 00
--> FF
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
Left analog: x = 128, y = 128
Right analog: x = 128, y = 128
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 FF FF FF FF FF FF FF FF
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 FF FF FF FF FF FF FF FF
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00
<-- 01 42 00
--> FF 79 5A
<-- 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A
--> FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Left analog: x = 255, y = 255
Right analog: x = 255, y = 255
<-- 01 42 00
--> FF FF FF
Controller lost :(
<-- 01 42 00
--> FF FF FF
<-- 01 42 00
--> FF FF FF
<-- 01 42 00
--> FF FF FF
<-- 01 42 00
Again, thank you for your help!
from psxnewlib.
I don't think the pull-up on ATT is necessary, but it won't hurt anyway. I'd also add one on CMD. In any case, this also all depends on how you did the 5V <-> 3.3V level-shifting.
from psxnewlib.
That doesn't make much sense, actually. Controllers were designed to work at 3.6V and 3.3V is usually fine. I don't recommend powering them at 5V, despite what maaaaaany crappy tutorials out there say.
from psxnewlib.
Related Issues (20)
- Namco Volume Controller SLPH-00015 and 3.3V Arduinos support HOT 16
- Hardware SPI on Leonardo HOT 16
- Trying for most part of 2 days to get this working HOT 5
- Adding support for the Jogcon's motor HOT 13
- Analog Dualshock controller (SCPH-1200) gives type "Guitar Hero". HOT 4
- Multitap (devel branch) HOT 6
- Support for more boards HOT 16
- Generic controller not working HOT 3
- enableAnalogSticks not working HOT 5
- Library cannot compile for RP2040 devices HOT 3
- SCPH-1150 rumble HOT 4
- Seeking compatibility with Steering Wheel Madcatz Dual Force HOT 7
- Controller features detection HOT 1
- Agetec Bass Landing Fishing Controller SLUH-00063
- Multitap buttonPressed HOT 2
- A0 and A1 as OUTPUT for button press???????? HOT 3
- Joystick_ does note name a type; did you mean 'Joystick'? HOT 3
- Guncon support HOT 47
- PS1 Densha de Go controller one-handle version TCPP-20001 support HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psxnewlib.