-
Notifications
You must be signed in to change notification settings - Fork 108
PS4 Controller connects and turns off #40
Comments
I had exactly the same symptoms. The script that worked half a month ago has stopped working. |
Did you find a solution yet? Cause I tried so many things and none of them worked. The same script literally stopped working and then started working again on the same day. Now it’s broken again, frustrating |
Not yet. I have no choice but to use wiimote instead. |
Do you mean a Wii remote or is Wiimote a library? |
I use a wii remote controller with library for a while. But I want to use a ps4 controller. |
Hi, there is a fix for this issue. It seems to be caused by the paired devices being stored in flash. You can temporarily fix it by using esptool.py to clear the flash. A permanent fix that i found is to copy the following example code which removes the paired devices, and run it at the start of setup (before initialising the ps4 library). |
Thanks, I‘ll definitely try that! But the code you sent involves also the void setup, so I can’t put the whole code in front of the initialization of the library.. |
Thanks for that. |
Thank you so much and it worked well !! |
Thanks @chrisdoel your solution works! |
I`ve tried it by just copying the part before the void setup in mycode before initialising my ps4 library and copying the part in the void setup into my void setup. Now my controller won't even connect. Do I have the wrong ESP? I got the ESP32 DEVKIT V1. EDIT: Nevermind, I found my issue by just trying: I had to change one variable to 1 and delete the part in my void setup. |
I still have a problem when I use that code snippet. I constantly need to upload the code to the ESP and then reupload the code without the snippet. Only after that will the controller is able to connect. If the ESP happens to be power cycled, then I have to repeat this same process once again. Is there any way to get around this? |
When the PS4 Controller cannot connect to/find the ESP32, it just blinks and eventually turns off. But if it connects, it blinks white, then glows white and then glows PS4 blue. And I already successfully connected the Controller to the ESP32 and controlled it with it. But then the next day, without making any changes in the code, the Controller won't connect. It blinks white, glows white but instead of turning blue and fully connect, it just turns off. I then later tried it with a different controller, and now, again without any changes, it connects. About a week later, I tried to connect the controller that worked the last time, and again, it doesn't connect. I'm completely clueless what could possibly cause this issue, I've tried changing the MAC adress in the code and on the controller, but nothing helps.
Controller.can.t.connect.different.MAC.address.mp4
Controller.connects.and.turns.off.same.MAC.address.mp4
The text was updated successfully, but these errors were encountered: