Coder Social home page Coder Social logo

Comments (8)

LAKY911 avatar LAKY911 commented on May 31, 2024 1

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.

LAKY911 avatar LAKY911 commented on May 31, 2024

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.

SukkoPera avatar SukkoPera commented on May 31, 2024

First of all make sure that the wiring is solid. Then please try some of the suggestions from this post and thread.

from psxnewlib.

LAKY911 avatar LAKY911 commented on May 31, 2024

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.

SukkoPera avatar SukkoPera commented on May 31, 2024

Are you using 1k pull-ups?

from psxnewlib.

LAKY911 avatar LAKY911 commented on May 31, 2024

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.

SukkoPera avatar SukkoPera commented on May 31, 2024

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.

SukkoPera avatar SukkoPera commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.