aed3 / PS4-esp32

Use a ps4 controller with an esp32
341 stars 107 forks source link

I'm having problems connecting to my M5StickC device... #11

Open jeffmikels opened 3 years ago

jeffmikels commented 3 years ago

I'm using the code in the examples, but I can't get it to connect to my device.

Steps:

What am I doing wrong?

Also, the repo: https://github.com/felis/USB_Host_Shield_2.0 seems to be able to automatically connect to PS4 controllers in pairing mode without the mac address workaround. Could this repo implement something similar?

aed3 commented 3 years ago

For what you're doing wrong, I believe it comes down to one of two reasons. My first guess is the controller you're using as after experimenting with controllers made by Sony and those not, the third party ones are very hit-or-miss when connecting to the ESP32 even when they work just fine with the PS4. The other problem might be related to the issue mentioned here (#9), so I'd recommend trying that solution and seeing if connecting works from there.

The reason why pairing works in that repo is because it's for different hardware. The USB host shield supports the pairing protocols needed to connect it to a controller, while ESP32s support for it is finicky at best. I've been looking into getting pairing working, but it's a major headache. If I do solve it, I'll be sure to add it to this library.

HawkCollective2890 commented 3 years ago

Try rolling back ESP32 Board def to 1.0.4 fixed it for me.