Use Your PS4 Game Controller with an ESP32 via Bluetooth: The Complete Guide

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

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

  • @ricardoquesada
    @ricardoquesada 2 месяца назад +39

    (Bluepad32 author here)
    What a nice surprise. Thanks for doing this video. I'll add link to it in the BP32 documentation.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад +12

      Thanks for creating such a great library! I've enjoyed using this library and have another video where I control LEDs, servos and motors with the game controller coming out next week.

    • @pierredelport7187
      @pierredelport7187 2 месяца назад

      Hi. Excellent video. Do you maybe know if the library can also report on the battery status of the controller and if it is charging. I cannot find it anywhere on the website documentation. Some of the other PS3 and PS4 libraries do have those functions as part of the library. I like this one as the code for pairing is already there and will save me a lot of time.

    • @daniellehwing4667
      @daniellehwing4667 Месяц назад

      Hi Ricardo!
      Thank you for the Bluepad32!
      I have a ESP32-S3-WROOM-1 board (the normal S3, I think)... does the Bluepad32 works with it?
      All I get in the serial monitor is:
      "02:56:30.561 -> Bluepad32 (C) 2016-2024 Ricardo Quesada and contributors."
      What am I doing wrong?
      Please help me, hehe...

  • @ZenHulk
    @ZenHulk 2 месяца назад +5

    Thank you, i needd this today. Cornea transplant 5 months in and painful and not real clear still have stitches, so i can listen to you and get back to this.

  • @palmira8940
    @palmira8940 2 месяца назад +4

    gosto muito dos seus projetos e estou aprendendo muito com vc. vc explica muito bem e é muito divertida.

  • @paulvernon624
    @paulvernon624 2 месяца назад +3

    Well done Rachel. Your content , presentation and teaching skills are awesome!!! Your step by step approach is easy to follow even for an old guy like me. Keep up the excellent teaching. Your channel is friggin awesome a real great place to start. Thanks

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Glad to help! Hopefully I can help jump start everyone into their next project!

  • @BritishRail60062
    @BritishRail60062 9 дней назад

    I really like the idea of this concept of using an ESP32 with a PS4 controller. Would this work with model trains? I would like to try this with a Bluetooth PS4 controller and use the ESP32 in an O Gauge model train on a 11.4v battery supply with a Zimo DCC sound chip. Never done this before so I am doing my research. My plans here is to have an onboard power pack and use the model train on an O Scale Garden Railway where I can use the left stick for the throttle and the right stick for the brakes. But other plans for functions is to use the four buttons to control the sound functions for the horn/whistle and various sound effects that would be on the DCC sound chip that is commonly used in model trains. I quite like the idea of walking around using my PS4 controller to drive the train and have access to most of the functions. Thanks for the video Rachel. All the best, Peter.

  • @tealknight6665
    @tealknight6665 2 месяца назад

    Thank you so much for this i had just learned about Bluepad and figured it would be good for my first project, but i was having trouble with the syntax. You posting this now is like fate. Thank you

  • @aakburns
    @aakburns 2 месяца назад +2

    Will you be getting into how to get the controller to pair automatically every time?

  • @SerendipityOwens
    @SerendipityOwens 2 месяца назад

    Thank you!
    I have a little robot project and I was wondering how to connect my 8bitDo pro2 game controller and you helped me a lot with you video !

  • @RiddledReality
    @RiddledReality 2 месяца назад

    you do amazing work! you've helped me past certain things that were keeping my project on the self. while messing around with your code provided on your well put together website i noticed if you hit circle and x at the same time it puts out more numbers in the serial monitor. i think it could be a useful addition to the information provided in your video. i don't recall seeing anything about that. it can be useful if you need more button inputs for whatever project one has going. i dont know how requesting videos work on your channel but i would like a tutorial on how to control a brushless motor with an esc, esp32 and a "bluetooth gamepad".

  • @elektron2kim666
    @elektron2kim666 2 месяца назад +1

    That was awesome. I'm a fan of ESP32/M5Stack at the moment.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Me too! I've been incorporating the ESP32 in most of my new projects!

  • @ebrahimajam9299
    @ebrahimajam9299 2 месяца назад

    Must love all the way from Cape Town , wish I had you while I was still at college
    Never looked so forward to receiving new content from you❤

  • @JimSolderitsch
    @JimSolderitsch 2 месяца назад

    Thanks for the video. I have been using bluepad32 for over a year. I can control a DJI/Ryze Tello drone with a variety of gamepads including PS4, Xbox and an Android knockoff. The better controllers have better joystick behavior and accuracy. Just recently started experimenting with controlling a CrazyFlie drone.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад +1

      That sounds like a great project! 🥳

    • @wewe365
      @wewe365 2 месяца назад

      So what brand and model are the better controllers ?

    • @JimSolderitsch
      @JimSolderitsch 2 месяца назад

      @@wewe365 I have used official PS4 and Xbox controllers that are on the more expensive side but the Joystick jitter is less than with cheaper brands. The Android game system controllers tend to work for buttons but joystick readings are less reliable for precise control. The Steel Series Nimbus is also quite good.

    • @wewe365
      @wewe365 2 месяца назад

      @@JimSolderitsch thanks. A lot.

  • @chitobalazo
    @chitobalazo 20 дней назад

    Hi Rachel, Thanks for you very informative videos. However I'm stuck with these tutorial because I can't pair my ps3 controller to the serial monitor of the arduino ide. Which button will I press on the ps3 controller to pair it to arduino IDE. I pressed the middle lower button between select and start and all the 4 led lights flashing up on the front of the controller. Serial monitor displays "BD Addr: 7C:9E:BD:60:CA:7A. I press tried pressing all buttons nothing happens the 4 led lights still flashing. thanks Chito

  • @jackrichards1863
    @jackrichards1863 2 месяца назад +1

    My word you're a lovely person Rachel. I hope you have a superb family life and a heap of prosperity in your life! This may be basic to a lot of our population but it's world changing to some of us.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад +1

      Glad you enjoyed it! It definitely wasn't basic to me when I started so when I figure something out I try to put a video together about it 👍

  • @arliewinters2776
    @arliewinters2776 2 месяца назад +4

    There's an OceanGate joke in here somewhere....

  • @LifeBloom12
    @LifeBloom12 20 дней назад

    I'm trying to do it but my Arduino IDE is similar but bit different, I'm able to follow allow up to where I past your board links but at board manager I'm lost where everything is just to different. please help me

  • @iliyannaydenov4186
    @iliyannaydenov4186 2 месяца назад

    Hello Rachel. Hope to see some IDF tutorials from you.

  • @gustavoapasquel9715
    @gustavoapasquel9715 2 месяца назад +1

    this is awesome uploaded the blue pad and paired my ps3 controller wow wow that was painless Ricardo Quesada thanks you are awesome Rachel this goes for you too your channel is great thanks for your content.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      It's a great library for pairing controllers. Hope this helps jump start your project!

  • @roswillandrescaromartinez1891
    @roswillandrescaromartinez1891 Месяц назад

    Muchas gracias por compartir, excelente video la librería funciona hasta con controles de PS4 genéricos. 👍🏻

  • @kraftaculousgreekgodofcraf1113
    @kraftaculousgreekgodofcraf1113 2 месяца назад

    This was very well explained. Thank you! Also cool shirt!

  • @hafzamhasan8532
    @hafzamhasan8532 2 месяца назад

    can you help on how to make a 4dof arm that can be controlled using ps4 joysticks...

  • @Mr76Pontiac
    @Mr76Pontiac 2 месяца назад +2

    Your code is broken unless the assumption is that you just want to monitor for one single button at a time and do nothing if multiple buttons are pressed. The buttons are bit-masked, so, X and square are going to give 0x0001 and 0x0004, but, when you press X and Y together you're going to get 0x0005 and you're not testing for that, so you're going to get no operation in your test.
    You need to do something like "buttons() and 0x0001 == 0x0001" to do the proper masking.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      I reserved multiple button presses for a future video! This one was geared for the absolute beginner to cover the basics 👍

    • @Mr76Pontiac
      @Mr76Pontiac 2 месяца назад

      @@RachelDeBarrosLive So the assumption in this video IS that you're just looking at one button at a time then. ;)

  • @peliloma-kanava
    @peliloma-kanava 2 месяца назад

    take two of those controllers and use their gyros to make hand move tracker robot arms. that would be awesome🤗thanks for the great content 🤩

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Now you're talking - that's a great project idea! 👍

  • @meiowalot7570
    @meiowalot7570 2 месяца назад +1

    Oooh project! This sounds awesome.

  • @daniellehwing4667
    @daniellehwing4667 Месяц назад

    I have a 8BitDo SN30 pro purple controller and a ESP32-S3.
    Does it work together or is it just the PS4 controller?
    Love ya!

  • @lgallant2486
    @lgallant2486 2 месяца назад

    Just imagine the array of Halloween displays needing this!❤

  • @DarbyJGeorge
    @DarbyJGeorge 2 месяца назад

    So awesome! I've been trying to figure out how to control one of my projects. Thanks!!

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Glad you found it useful! Hopefully this jump starts you in the right direction 🥳

  • @mateszeman1982
    @mateszeman1982 Месяц назад

    Hi
    I was able to connect my ps4 controller but on serial port monitor I got a lot of question mark and so on.
    Do you have any idea ?
    thanks

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  Месяц назад

      Be sure your baud rate in the serial monitor is set to 115200. Also reset the ESP32 by pressing the EN button, then pair your controller.

  • @DarksoldierX2
    @DarksoldierX2 2 месяца назад

    I have an generic wired XBOX controller with no Bluetooth. I also don't have an ESP32 but an Arduino Uno, Nano, and Mega. Is this process similar? Just with USB pinouts?

  • @jasonmushersee
    @jasonmushersee 2 месяца назад

    my $90 walmart stunt drone has a ps4 knock off controller its suppose to hover the drone stable after trim adjustments it does'nt even if batteries are left in every time i start it have to adjust trim again

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Some of the knock-off controllers can be finicky for sure 👍

  • @QuelBelPargolo
    @QuelBelPargolo 27 дней назад

    Does anybody have an idea about this error log?

  • @clifc6351
    @clifc6351 2 месяца назад

    Sahweeet! Thank You for showing us this project.

  • @michaelgarcia5493
    @michaelgarcia5493 2 месяца назад +1

    Cool video girl I made my ps4 controller work on my n64 so ya thank u

  • @gustavoapasquel9715
    @gustavoapasquel9715 2 месяца назад

    Would this work on ps3 controllers also? I have tried for a long time without success using the six axis pair tool very frustrating. Going to try this out want to build a remote controlled tracked lawn mower for mowing ditches and embankments fun project too

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      It should be compatible. Here's a list of compatible controllers from Bluepad32's site: bluepad32.readthedocs.io/en/latest/supported_gamepads/

  • @bektinurwanto
    @bektinurwanto 2 месяца назад

    how to show signal strength rssi from esp32 - controller ps4 ?

  • @hecticaperture
    @hecticaperture 2 месяца назад

    i abandoned BT ps4 controllers with esp32s about a year ago cause no matter what library i would use i would get the problem where the controller would just disconnect from the esp32 after a bit of time. is this suffering from the same problems as well?

  • @jackipiegg
    @jackipiegg 2 месяца назад

    What about the opposite? Can we have esp32 to control our PS4?

  • @GoatZilla
    @GoatZilla 2 месяца назад

    I've always wanted to use that touchpad on there too.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад +1

      Great idea! I'll have to incorporate it into my starter template!

  • @monsvillerailways5736
    @monsvillerailways5736 2 месяца назад

    Is it possible to add Bluetooth to an old USB Logitech RumblePad to do something similar?

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      Perhaps! The Bluepad32 documentation has a list of compatible controllers here: bluepad32.readthedocs.io/en/latest/supported_gamepads/

  • @wildhostage
    @wildhostage 2 месяца назад +1

    How does it pair?

  • @DBB-KE5DUO
    @DBB-KE5DUO 2 месяца назад

    ...and the unigoyal doesn't even have any dragons! 😊😂
    although it does remind me of old fashioned stuff -- like fried chicken leg TV dinners! 🍗🍗🍗

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад +1

      So true! You know we're revisiting those after the unigoyle!

  • @wildhostage
    @wildhostage Месяц назад

    Doesn't work with ESP CAM :(

  • @no-ei4jw
    @no-ei4jw Месяц назад

    Compilation error: Bluepad32.h: No such file or directory you didn't give any library named Bluepad32

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  Месяц назад

      The links you need are in the description. Be sure to add both the ESP32 and Bluepad 32 board managers. Then, after that, add the board packages and you'll have access to the libraries.

  • @war4tek
    @war4tek 2 месяца назад

    Awesome!

  • @banglarif
    @banglarif 2 месяца назад

    Than you for this attractive video. 🌹🌹🌹

  • @شيماءالحربي-س3ت
    @شيماءالحربي-س3ت 2 месяца назад

    Can you please make jarvis system Ai and post a full tutorial? And can you make it answer about anything as if im asking google .

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 месяца назад

      It's funny you mention a Jarvis, system! I'm working on that now and will post a video after I get everything working.

    • @شيماءالحربي-س3ت
      @شيماءالحربي-س3ت 2 месяца назад

      ​@@RachelDeBarrosLive i cant wait to see it

  • @bryanhenderson9637
    @bryanhenderson9637 2 месяца назад

    I want to add that everyone should be careful using bluetooth because the range isn't the greatest and if you are in any sort of con setting, the distance between the controller and your robot/prop can dwindle down to only a few feet or could drop out completely.

  • @louiepauda6275
    @louiepauda6275 2 месяца назад

    You're working? Rather! Unique, jiro!

  • @kevinnelundeniya6489
    @kevinnelundeniya6489 Месяц назад

    I Cant Get Mine To Pair?😥

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  Месяц назад +1

      What game controller are you using?

    • @kevinnelundeniya6489
      @kevinnelundeniya6489 Месяц назад

      @RachelDeBarrosLive Hi Thank You Soo Much For Responding I'm Using A PS4 Controller But All Is Good I Just Had To Hold The Share Button And Then Press The PS Button To Begin Pairing.
      I Recently Discovered Your Channel Love Your Stuff I See My Younger Self In Me Light Up When I Watch Your Content🥹

  • @adriangalindo3802
    @adriangalindo3802 12 дней назад

    Can I use this to control, say, a deep-sea submersible for commercial use? No reason, just asking. Hypothetically.

  • @Ducerobot
    @Ducerobot 2 месяца назад

    😁🤖👍

  • @sampamnl.8964
    @sampamnl.8964 2 месяца назад

    ขอบคุณมากครับกับสาระดีๆเช่นเคยครับ❤❤❤