Closed mbackas closed 2 years ago
Make sure you've previously connected the controller to another device you know the bluetooth mac address of. Use this mac address. It might take a few tries for the ps5 controller to connect. Let me know if it works!
Thanks for the advice. What's weird is I'm able to pair a PS3 controller using the ps3-esp32 library linked in the README.md, but I'm not able to pair a ps5 controller using this library.
To pair, I've first paired both controllers to my phone, and used my phone's bluetooth MAC address as the argument for the begin() function.
I just ordered some new ESP-32S dev boards with the ESP32-WROOM modules and I'll try again and let you know, thanks for your help!
Fixed! Tried again on another board. You're right, controller has to be connected to computer/phone first, then input the computer/phone Bluetooth MAC address into the arduino sketch.
I changed the board to "NodeMCU-32S" instead of "ESP32 Dev Module"
Note I had to change the begin() function to accept uint8_t instead of unsigned char. Then begin() simply passes the uint8_t* to the enclosed bluetooth function.
@mbackas could you share your modified codes? I think I am having the same problem as you did. Thanks!
Hi, having trouble getting ps5Connect example sketch to work. ps5Controller.begin("mac address") doesn't work.