DIY Wireless LEGO ESP32 Spaceship Steering Wheel Game Console
Intro: DIY Wireless LEGO ESP32 Spaceship Steering Wheel Game Console
Here is a self-made LEGO wireless game console that we can use to play games on the computer.
When playing a game programmed by ourselves, we may need to connect the controller to the computer with a USB cable, which is not so comfortable to play with when the cable limits our operation with the handheld. So in this article, we will teach you to make a game console with Lego bricks that communicates wirelessly with the Future board (an ESP32-based mainboard) of the computer, to control the characters in the game.
All the things we used are listed below, and the code for this project is also provided in this article, so let's give it a go!
If you like our projects and tutorials, you can follow us on Twitter, Facebook, and Youtube for more interesting STEM projects and ideas.
STEP 1: Assemble the Game Console
Assemble the game console according to the instruction.
STEP 2: Connect the Circuit
Next, two Future boards will be used in this project and the system can be divided into two parts:
- Sending end (the game console), which is to send the control instructions;
- Receiving end. A Future board is connected to the computer to receive the instructions from the console to control the interaction of characters in the game.
STEP 3: Write the Program of the Sending End
Download the code and open it in Kittenblock (Kittenblock is a Scratch 3.0-based editor, you can download it here). The program needs to be downloaded to the Future board.
If you don't know how to download the program to the board, please refer to theĀ tutorial here.Here is the program file.
STEP 4: Program of the Receiving End
To process the instructions from the console and interact with the sprites in the game.
STEP 5: Test It Out And... Done!
Now you can test out your project!
Enjoy your game ^^
2 Comments
Jacsig 2 years ago
KittenBot 2 years ago