In this tutorial we will check if the PS4 controller is charging or not, using the ESP32 and the Arduino core.
You can check a written tutorial with full source code here: https://techtutorialsx.com/2020/04/04...
Introductory tutorial explaining how to obtain the Bluetooth MAC address stored in the controller: • ESP32: Connecting a PS4 controller
How to detect a controller connection with a callback function: • ESP32: PS4 controller connection event
ESP32 FireBeetle board: https://www.dfrobot.com/product-1590....
Arduino library: https://github.com/NURobotics/PS4-esp32