May 13, 2024
Description
Remote compatible with BRICK Duplo Train
This project is an adaptation of the work by James Clarke, as showcased on Instructables: https://www.instructables.com/
I appreciate and thank him for the great idea that inspired this project.
The BRICK Duplo Train Remote is a fantastic way to engage with and enjoy the BRICK Duplo Train.
Step 1:
1x ESP32 with 18650 Battery holder (ESP-Wroom-ESP32 NOT ESPWROOM-02) https://www.walmart.com/ip/ESP32-WiFi-Bluetooth-Development-Board-Small-IoT-Device-Compatible-With-18650-Battery-For-Programming-Projects-Wireless-Communication-Module/5627060020
4x Tactile Push Buttons 12x12x7.3mm
https://www.amazon.com/TWTADE-Momentary-Tactile-Button-12x12x12mm/dp/B07CG7VTGD/ref=sr_1_5
1x Potentiometer 10k Ohm
https://www.amazon.com/HiLetgo-Single-Joint-Potentiometer-Variable-Resistors/dp/B00MCK7JMS/ref=sr_1_1_sspa
Set of Electric wires
https://www.amazon.com/StrivedayTM-Flexible-Silicone-electronic-electrics/dp/B01LH1FYR4/ref=sr_1_1_sspa
18x melting Nuts m2 3.5mm in diameter (3.2 might also work)
https://www.amazon.com/WALENI-Knurled-Injection-Embedment-Insertion/dp/B0CC8BZHZL/ref=sr_1_5?th=1
18 m2 x 6mm countersunk head screws
https://www.amazon.com/Hilitchi-210-Piece-Metric-Countersunk-Assortment/dp/B06Y3M62Z8/ref=sr_1_6
1 Power Switch
https://www.amazon.de/dp/B08CY41YT5?ref=ppx_yo2ov_dt_b_product_details&th=1
the size of power switches varies ... so you might need to update the body STL for the right size. I ordered these in Germany the hole in the body STL is 12 * 19 mm.
Other:
Some glue for the throttle stick (optional)
Small piece of perfboard (optional)
Some shrink tubing (recommended)
Filament:
I used PLA in 8 different colors:
Step 2:
Print all the parts in the color of your choice.
Please note that the throttle stick needs to be printed twice, while all other parts only need to be printed once.
All Parts
Step 3:
You will need 5 ground connections: 4 for the buttons and 1 for the potentiometer. Locate the ground pin on your ESP32 board and solder a small cable, around 5-10 cm in length, to it. Connect the other end of this cable to a piece of perfboard where you will solder an additional 5 cables, each around 10-20 cm in length.
(Another solution would be to daisy chain the ground cable: ESP32 GND -> potentiometer GND -> Button 1 GND -> Button 2 GND, and so on.)
PICTURE SOLDER Power Switch
GND cable harness
GND to ESP32
Solder 6 cables, each approximately 15-25 cm in length, to the following ESP32 pins:
Pin 25: Button 1 (Yellow)
Pin 26: Button 2 (White)
Pin 27: Button 3 (Blue)
Pin 14: Button 4 (Red)
Pin 15: Potentiometer Data (Green)
VCC: Potentiometer + (Red)
… and connect them
*I have matched the colors of the buttons for a clear view, but you can use any colors you prefer.
Buttons & Poti
GPIO soldering
Before soldering, it is important to either attach the power switch directly to the 3D printed body or use ferrules that fit the power switch.
Power Switch: On the side of the ESP32 board, there is a power switch attached. To bypass it, you need solder the new Power Switch to the left pin (ON) and the middle pin. Make sure to leave the switch on the board in the off position. A cable length of approximately 25 cm will be sufficient.
power switch
Power Switch soldering
Step 4:
To assemble the body, you will need to fuse in a total of 10 melting nuts. Six of these nuts are used to connect the top plate, while the remaining four are for attaching the ESP32. Additionally, the button holder requires four melting nuts to be attached to the top plate as well as the Throttle sick holder.
Melt Nuts
Melt Nuts
Screw the ESP32 onto the body.
Optional: Attach 18650 battery to ESP32 board.
Poti
Throttle Stick #1
Throttle Stick #2
Throttle Stick #3
Buttons
Buttons
Hardware Finished
Step 5:
To flash the software onto the ESP32, follow these steps:
Step 6:
License:
BY-NC-SA