PS5 Controller Pad (DualSense) connected to ESP32 (PS5パッドをESP32に接続しました)

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 31

  • @MadBunnyLabs
    @MadBunnyLabs Год назад +1

    Thank you very much for putting the installation instructions together. I've been trying to get this to work for the last few hours with pretty much no success. I followed the instructions in the description. I'm using ESP32 version 1.0.6. I went into device manager, and under Bluetooth I selected dualsense controller on my pc and got this address. "d0:bc:c1:f1:f7:01" (tried it in upper and lower case)
    From here I uploaded the ps5ReceiveData example sketch from the PS5 library and tried uploading it to a m5 pico stamp and an esp-wroom-32.
    Can you think of anything I might be missing? I know the stamp has bluetooth 5.0 which should be compatible.
    In the serial monitor I get this. E (85016) ps5_L2CAP: L2CA_CONNECT_REQ ret=64 (counts up to 72 then restarts)

    • @AR-dk4dh
      @AR-dk4dh  Год назад

      I can't find what is wrong. My proposal is to try Bluetooth pairing with other devices (PS5 console, Android, iPhone...etc) to read-out BT MAC instead of your PC to judge if correct BT MAC was read.

    • @MadBunnyLabs
      @MadBunnyLabs Год назад

      @@AR-dk4dh Thanks for getting back to me. I have a feeling I'm using the wrong mac address, I've tried so many. On one of the other comments, you said the mac address can be found on an iphone by going to Configure=> General =>Information. On my iphone, I can go to Settings=>General=>About. From here I see a address for Wifi and an address for bluetooth. Is the one for Bluetooth the one I want or am I looking in the wrong spot?

    • @AR-dk4dh
      @AR-dk4dh  Год назад +1

      @@MadBunnyLabs Yes, I assume you found correct BT MAC address on your iPhone.

  • @gamestest1996
    @gamestest1996 Год назад +1

    Hello, what happens to me is that it connects well, it gives the information of the buttons pressed and such, but it disconnects quickly, like in 1 or 2 seconds

    • @drumbum7999
      @drumbum7999 Год назад

      your loop() function is repeating too quickly. add a delay at the bottom of your loop to fix this issue. I found that a loop time >= 15 ms should be fine

    • @sumynona.01
      @sumynona.01 Год назад

      it might be that your controller turns off automatically. try againg whilst charging the controller

  • @StrongFood5503
    @StrongFood5503 2 года назад +1

    Hello, when i compile example in ps5_esp32 library, i get this error: “ESP_BT_SCAN_MODE_CONNECTABLE' undeclared”. Can you help me?

    • @amylifely
      @amylifely 2 года назад +1

      Have you been able to solve it?

    • @StrongFood5503
      @StrongFood5503 2 года назад +1

      @@amylifely hi, I fixed this error in the ps5_spp.c file

    • @amylifely
      @amylifely 2 года назад +1

      @@StrongFood5503 me too, replacing 89 with 87 line

  • @正义丁真
    @正义丁真 8 месяцев назад

    could you tell me your board model ?is that C3 or S3 or another? plz help me

    • @AR-dk4dh
      @AR-dk4dh  8 месяцев назад

      I used legacy ESP32 board. Because Bluetooth Classic is needed to connect PS5 pad. Both C3 & S3 do not support Bluetooth Classic, therefore cannot be used.

    • @正义丁真
      @正义丁真 7 месяцев назад

      @@AR-dk4dh Bro,how did you got the BLE MAC address?I'm gald to see your answer. It helped me a lot

    • @AR-dk4dh
      @AR-dk4dh  7 месяцев назад

      @@正义丁真 Did you read my explanation about "Procedure for set-up:"?
      Once you should do pairing between Dualsense and something (PS5, iphone, PC...) and confirm the MAC on the device.

  • @carloseduardoaquinojuarez8428
    @carloseduardoaquinojuarez8428 Год назад

    hola donde puedo ver el procedimiento para conectar el control a la esp 32

  • @aaronbreitegger5853
    @aaronbreitegger5853 2 года назад +2

    where do you find the library

    • @AR-dk4dh
      @AR-dk4dh  2 года назад

      I found it in GitHub. Please seearch "ps5-esp32" in GitHub.

    • @aaronbreitegger5853
      @aaronbreitegger5853 2 года назад

      @@AR-dk4dh thx

  • @meteor7553
    @meteor7553 2 года назад +1

    I can't get the correct MAC address, do you have a good suggestion?

    • @AR-dk4dh
      @AR-dk4dh  2 года назад

      As I wrote in the procedure, let's do pairing between PS5 pad and some Bluetooth device. iPhone, Android, PC's Bluetooth, USB Bluetooth dongle...are candidates. On iPhone, BT MAC address can be found in Configure=> General =>Information.

    • @meteor7553
      @meteor7553 2 года назад

      @@AR-dk4dh Thank you very much, I have successfully connected the ESP32

    • @MadBunnyLabs
      @MadBunnyLabs Год назад

      @@meteor7553 Any chance you could share the process you used to find the correct MAC address?

  • @GuilhermeGomes2
    @GuilhermeGomes2 2 года назад

    Any hints if I can get the accelerometer data of the PS5 controller using this library?

    • @AR-dk4dh
      @AR-dk4dh  2 года назад +1

      I haven't tried sensor. Let's refer "ps5.h" in the library.
      X-axis value may be...
      int ACC_X;
      ACC_X = ps5.sensor.accelerometer.x;

    • @GuilhermeGomes2
      @GuilhermeGomes2 2 года назад

      @@AR-dk4dh I will try that! Let me know if you discover something

  • @i3dhub788
    @i3dhub788 2 года назад

    How do you connect PS5 Controller with esp32 built-in Bluetooth? Please Help

    • @AR-dk4dh
      @AR-dk4dh  2 года назад

      Please refer "Procedure for set-up" in my comment.

  • @wissmccoy680
    @wissmccoy680 Год назад

    May I borrow your code? please

  • @nguyenthanhtruong7271
    @nguyenthanhtruong7271 5 месяцев назад

    can i have this source code, ty