Using PS3 Controllers with ESP32 | Build Custom Remote Controls

DroneBot Workshop March 5, 2023
Video Thumbnail
DroneBot Workshop Logo

DroneBot Workshop

@dronebotworkshop

About

Welcome to the Workshop! The DroneBot Workshop is the place where I work with Arduino, Raspberry Pi, ESP32, and lots of other cool microcontrollers, components, and sensors. This is a channel for learning and understanding. While I do build projects, most episodes focus on showing you HOW things work, so you can use the information to bring your own designs to life. Every video has a corresponding article on my website at https://dronebotworkshop.com , along with the diagrams and code samples you’ll need to build your own creations. You can also participate in discussions on my Forum at https://forum.dronebotworkshop.com. Please note that I no longer do any sponsored videos, enquiries for these will be ignored! If you'd like to know more about me or the DroneBot Workshop you can read the FAQ at https://dronebotworkshop.com/about-dronebot-workshop/faq/ And if you have technical questions please ask them on the Forum. Welcome to the Workshop! I hope you enjoy your stay! Bill

Video Description

Control the world (or anything you can hook up to an ESP32) using a PS3 controller! I’ll show you how to control motors, LEDs, and more. Article with code: https://dronebotworkshop.com/ps3-esp32 More articles and tutorials: https://dronebotworkshop.com Join the conversation on the forum: https://forum.dronebotworkshop.com Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/ If you’re looking for an easy to use and yet sophisticated remote control for your next ESP32 project, why not try a PS3 controller? Priced at around 10 dollars on Amazon, these little gems feature many controls and features, including an accelerometer, two joysticks, and a rechargeable battery. I’ll show you how to use the ESP32-PS3 Library to simplify interfacing with the controller. This amazing library covers every controller event and even lets you “rumble” the controllers' motors! I’ll also show you my “robot car experimenters platform,” which is a long-winded way of saying a two-wheeled car base with a power supply, motor driver, and solderless breadboard. I’ll use it to demonstrate control of some LEDs and motors. You'll see how easy it is to adapt the library to your own special needs. When we are done, we’ll have the basis of a robot car controlled by a PS3 remote control! Here is the Table of Contents of today's video: 00:00 - Introduction 01:29 - PS3 Controllers 07:03 - Controller MAC Address 09:02 - ESP32-PS3 Library 10:53 - ESP32-PS3 Library - PS3Demo 16:22 - ESP32-PS3 Library - PS3Accelerrometer 17:46 - ESP32-PS3 Library - PS3Rumble 20:04 - My Robot Car Test Base 26:01 - Controlling LEDs 33:39 - Controlling an RGB LED 40:35 - Controlling a Servo Motor 46:34 - Responding to TOF Sensor 52:52 - Controlling DC Motors 1:02:46 - Final Robot Car Code & Demo 1:06:03 - Conclusion You may have a few of these remote controls kicking around the house, dust them off and use them as unique remote controls! Hope you enjoy the video. Bill

Upgrade Your DIY Remote Setup

AI-recommended products based on this video

Loading...
UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

(86)
$9.74
Prime
Loading...
Syntech USB C to USB Adapter Pack of 2 USB C Male to USB3 Female Adapter Compatible with MacBook Pro 2021 iMac iPad Mini 6/Pro MacBook Air 2020 and Other Type C or Thunderbolt 4/3 Devices Space Grey

Syntech USB C to USB Adapter Pack of 2 USB C Male to USB3 Female Adapter Compatible with MacBook Pro 2021 iMac iPad Mini 6/Pro MacBook Air 2020 and Other Type C or Thunderbolt 4/3 Devices Space Grey

(144,783)
$10.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

(54,858)
$12.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

(11,241)
$13.97$9.43
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
[2025 New Version] CuleedTec Wireless Switch Controller, Switch Pro Controller Compatible with Switch/Lite/OLED, Manette Switch Remote Gamepad with 6-Axis Gyro, Dual Motors, Wake-up and Turbo

[2025 New Version] CuleedTec Wireless Switch Controller, Switch Pro Controller Compatible with Switch/Lite/OLED, Manette Switch Remote Gamepad with 6-Axis Gyro, Dual Motors, Wake-up and Turbo

(8,834)
$25.99
600+ bought in past month
Loading...
Liquid Solder Flux Dropper, Liquid Soldering Flux, No Clean Liquid Flux, Electrical Liquid Rosin Flux Solder, Liquid Flux Soldering Squeeze Bottle (30 mL/1.05Oz.)

Liquid Solder Flux Dropper, Liquid Soldering Flux, No Clean Liquid Flux, Electrical Liquid Rosin Flux Solder, Liquid Flux Soldering Squeeze Bottle (30 mL/1.05Oz.)

(6)
$11.99
FREE delivery Sun, Mar 22 on your first order