PS3 Controller + ESP32 Control any robot, anything

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so in this video i'm gonna show you that how you can control anything with this ps3 controller and esp32 so uh i have uh prepared a system uh with the yeah this ps3 controller and esp32 as you can see that i am controlling this uh car a robot car with ps3 controller using the sp 32 through bluetooth connection so it is very fun and so without any wasting time let's get start and see how we can use this ps3 controller to control almost any hardware and anything and it is very fun [Music] so for this project first of all you will need a playstation 3 controller which look likes uh this and this is a copy of a playstation 3 controller it is probably made in china and uh i think it's a plus copy it's a pretty good build quality is very good and working is also very good so and after that you will need something [Music] this so this is a battery pack this is a hbridge dc motor driver controller and this is esp32 so i made this board myself you can use any esp32 board esp32s esp32d anything will work so basically you will need a robot which you can control by using this controller so this is the hardware which we need to make this kind of setup you can use this controller to control anything any both possibilities are there so it is this setup is just for demonstration so you can get the idea uh what we are going to do with this controller and this esp32 board so let's get to our software part and we'll see how we did all all of this so let's do software part first of all you have to plug in your controller with your laptop or pc or whatever you are using so you will need uh this kind of cable data cable i think it is usb type b mini or whatever you call so plug this into controller and the other side into usb port of your laptop or pc and then after connecting the controller to your system you will need a six access pair tool so six axis pair tool look like this and we need this to find out the mac address of our controller so now after plugging in after plugging in the controller to your pc it will take some time for the first time to detect the mac address of the controller so this is the current mac address to which our controller is connected so what we will do we will copy this mac address uh in our arduino sketch to connect the esp32 to this controller uh this controller to esp32 so you can update the mac address here you can choose whatever you want but make sure that the mac address of of the controller and the esp32 are both are the same so now what we will do we will copy this mac address and close this and after this after this we will open the arduino ide and we will install some libraries so first of all we will install ps3 host controller library so you have to search ps 3 esp32 sorry esp32 and you will see this library ps3 host control controller host library so uh here is the important thing you have to install version 1.0.0 there are updated version like one point 0.1 and 1.1.0 but you have to install 1.0.0 the updated version are broken and do not work with the esp32 i don't know what the problem here but those version do not work so you have to install 1.0.0 as i i already have installed 1.0.0 and then what you have to do you have to install the esp32 boards so to install so install this library and close and then go to arduino and then go to your boards manager so i already have installed esp32 boards but if you have not installed the esp32 board you need to install esp32 boards so just such esp32 board and i have installed esp32 board so uh here is one important thing so you have to install exactly 1.0.2 version of this board the there are updated version but i don't know why the host controller ps3 controller host library does not work with the updated versions um as i already said that there is some break about all these components so i don't know writer does not fix this um broken state so we have to stick with this version 1.0.2 so install this as i already have installed so install this version of esp32 board close this and now go to your tools board and select whatever board you are using so i i have selected a nodemcu 32s as i have esp32s board chip so select this board and the appropriate com port as i have not connected the board so what we will do then we will open a example sketch ps3 host controller ps3 demo so here is the ps3 demo so what you have to do you have to update this demo to connect this to our esp32 here you have to update your and update the mac address of your esp32 so this mac address is the same mac address which we got from uh six axis pair tool so both the mac address should be same so simply copy and paste that mac address here and then build this so it is successfully building so after this connect the esp32 board to your computer and select the appropriate com port as i have connected the board and the com port is com5 so hit upload and it will upload the code to your board so uploading is done now open the serial port and now turn on your controller and yes it is connected successfully so as i i am pressing button and rotating some joysticks you can see that different kinds of number are displaying on serial con serial console and so uh we will use this uh numbers and this data to control any kind of um or report or any kind of hardware what we want to control so that's it this is how we can control any hardware any report with ps3 controller i will attach all the tools and all the software and plus with the code which i used to control my this car board in the description you will find all the related material in the description so that's it if you find the video interesting kindly like the video and subscribe the channel it will be very helpful thanks for watching see you next time
Info
Channel: Parvaiz Ahmad
Views: 593
Rating: undefined out of 5
Keywords: PS3, PS3 controller, ESP32, ESP32 bluetooth, Robot controller, Robot, ESP32 project ideas, DIY project, Arduino, Arduino projects, Projects in 2021, diy arduino, diy electronics, joystick, play station controller, play station, parvaiz ahmad, embedded, best arduino projects, best esp projects, best diy projects, best electronics projects ideas, project ideas, new ideas, amzaing ideas, ps, PS, ps3 controler
Id: 6c8ieMyK2sQ
Channel Id: undefined
Length: 10min 6sec (606 seconds)
Published: Tue Oct 19 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.