Overblog Suivre ce blog
Editer la page Administration Créer mon blog
Xtase & Androids

Arduino LEGO Truck (w/ PS4 controller)

last (not final) version of my LEGO Truck
last (not final) version of my LEGO Truck

A few month ago, I decided to create an Arduino driven LEGO Truck which could be controlled via a wireless gamepad...

LEGO TRUCK 42041
LEGO TRUCK 42041

I choosed the LEGO model #42041 because it was cheap enought for me (59euros), and it's a medium size model (not too little to be motorized but not too big for my desk ;) )

Arduino MEGA + USB Shield
Arduino MEGA + USB Shield

I used an Arduino MEGA 2560 with an USB Host Shield and a Bluetooth dongle for the control

ClicBoard driver & it's home made enclosure
ClicBoard driver & it's home made enclosure

... and a clickboard motor driver for motor managing (I used a LEGO POWER FUNCTION Medium Motor w/ a special wire) then a casual servomotor for the steering

The Truck with its electronic parts
The Truck with its electronic parts

The whole system is power-supplied with a casual 5v 1A USB PowerBank (one of the same you may use to charge your phone during the day...)

Truck & PS4 controller
Truck & PS4 controller

and finally it's beautifull (but expensive) PS4 DualShock Wireless Controller

If that project interested you, I may be pleased to share my code...

But if you want to find by yourself : it uses

  • USB_Host_Shield_2.0\examples\Bluetooth\PS4BT
  • Servo.h
  • And a little code that I write to manage the ClickBoard module (it's behaviour is written on the contoller documentation, so it is not very hard...)
Some pictures of my workSome pictures of my workSome pictures of my work

Some pictures of my work

Partager cette page

Repost 0