This project was designed & built by my good friend Thomas in Denmark.
Both Thomas & myself are new to programming but that hasn't stopped us, and it shouldn't stop you either, whether you are new or experienced it's always fun to try building a robot, plus we even give you the code so you have no excuse. Once you can understand how this or any of our projects work then you will be better prepared for making or even designing your own.
Both Thomas & myself are new to programming but that hasn't stopped us, and it shouldn't stop you either, whether you are new or experienced it's always fun to try building a robot, plus we even give you the code so you have no excuse. Once you can understand how this or any of our projects work then you will be better prepared for making or even designing your own.
Thomas tells me the motors are from a robot vacuum cleaner.
The L293D is a common inexpensive 16 pin chip to drive the motors, costing around a $1 each USD or NZD.
The LDRs (Light Dependent Resistors) are common & very cheap, less than a $1 for all 4.
The Arduino Uno is again very common & very cheap, costing around $30 NZD.
As for the motors, we need to sacrifice speed for torque so use a motor that is geared down.
So if you can use some old motors & a chassis from somewhere such as an old remote control car then the project is very cheap & lots of fun, why not give it a go. Plus Thomas has made a good job making the truck by using Lego so it couldn't be easier.
The L293D is a common inexpensive 16 pin chip to drive the motors, costing around a $1 each USD or NZD.
The LDRs (Light Dependent Resistors) are common & very cheap, less than a $1 for all 4.
The Arduino Uno is again very common & very cheap, costing around $30 NZD.
As for the motors, we need to sacrifice speed for torque so use a motor that is geared down.
So if you can use some old motors & a chassis from somewhere such as an old remote control car then the project is very cheap & lots of fun, why not give it a go. Plus Thomas has made a good job making the truck by using Lego so it couldn't be easier.
legotruckcodever_4.ino | |
File Size: | 8 kb |
File Type: | ino |
Above is the code for the Arduino Uno for the Lego Truck.
Below is the wiring for the Lego Truck.
Below is the wiring for the Lego Truck.
wiring_the_legotruck.xlsx | |
File Size: | 13 kb |
File Type: | xlsx |
Here is the same project, again made by Thomas, but now he puts an old mouse to good use. I really like the idea of using a computer mouse to run around like a real mouse. No idea how he crammed all the parts inside, but I do know that he used an Arduino Nano which is much smaller than the Uno, same code though. I'm fairly certain that the wiring & code is the same as for the Lego Truck above but Thomas has given me separate files so I've added them below just to be sure. |
mouserunnercodever_4.ino | |
File Size: | 8 kb |
File Type: | ino |
wiring_the_mouse_runner.xlsx | |
File Size: | 13 kb |
File Type: | xlsx |
If you like our site then please click on the Facebook icon at the top right of this page, thank you.
For more information you can email us via our Contact Us page.