How to connect directly to a PS4 gamepad with LEGO MINDSTORMS Robot Inventor @AntonsMindstorms
How to connect directly to a PS4 gamepad with LEGO MINDSTORMS Robot Inventor  @AntonsMindstorms
Uploaded April 2022 | Updated September 2026, 1 day ago
In this video, I'm showing how to connect a PS4 gamepad to a MINDSTORMS Robot Inventor robot. It also works with LEGO SPIKE Prime. Out of the box, the Robot Inventor kit can connect to a gamepad. But only in the laggy streaming mode and only with a desktop or laptop computer in between. Also the official LEGO setup does not support Python! This setup fixes all that by using a small LMS-ESP32 board in between. That board pairs with any Bluetooth Classic gamepad - like the PS4, Microsoft Xbox One, Nintendo Switch, and most of their clones. The LMS-ESP32 board then sends the results over UART to your MINDSTORMS robot. You can pick and process about 30 gamepad inputs per second. This makes for mighty snappy remote control!

💬 Please like and ask any questions you have in the comments!

--- Chapters ---
00:00:00 PS4 gamepad to Robot Inventor direct Connection
00:00:28 Introduction of the hardware setup: LMS-ESP32
00:02:20 Pairing the PS4 gamepad with the MINDSTORMS Robot Inventor model
00:02:49 Lagless connection of the gamepad to the 51515 Robot
00:04:33 Demo of PS4 direct connection to Mecanum Wheel Robot Inventor Car

--- Links ---
Blog post with the step-by-step tutorial
👉 antonsmindstorms.com/2022/03/22/python-ps4-gamepad-connection-robot-inventor-and-spike-prime-hub

Get the LMS-ESP32 board here:
👉 antonsmindstorms.com/product/wifi-python-esp32-board-for-mindstorms

Code repository and example projects:
👉 github.com/antonvh/mpy-robot-tools

Get the T-Shirt 👕 here:
👉 https://shop.spreadshirt.nl/antons-mindstorms/

Support 🙏 my work:
👉 patreon.com/antonsmindstorms

For complete building instructions 📄 and in-depth articles go to:
👉 antonsmindstorms.com
How to connect directly to a PS4 gamepad with LEGO MINDSTORMS Robot InventorHow to make a Robot sumo table in 90 minutes!Remote controlled lego mindstorms NXT robot using gamepad and bluetoothMaking building instructions with EV3 cables in studio tutorialCatfish made from LEGO Mindstorms and Technic Hovercraft.A remote controlled EV3 Forest Mechsuit from just two setsHow to solder the LMS-ESP-wifi-i2c board for connecting third party electronics to MINDSTORMSCan this LEGO lizard run as fast as a real one?Forest Mechsuit building instructions!I connected a PS4 gamepad to  LEGO mindstorms spider robot, then I animated the legs in proportion.
Antons Mindstorms |

How to connect directly to a PS4 gamepad with LEGO MINDSTORMS Robot Inventor

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER