- Learn Linux
- Learn Electronics
- Raspberry Pi
- LPI certification
- News & Reviews
Learning electronics and programming is fun, but it's more fun when you have something to play with afterwards. What better way to do that than by creating your own wireless robot vehicle?
Ruby Robot is a project combining the Magician Robot Vehicle Chassis with a Raspberry Pi to allow the robot vehicle to be controlled by a computer, tablet or mobile phone.
Ruby Robot is designed to be fairly cheap and simple to get started, but with built in flexibility to allow the robot to be adapted for multiple purposes. The initial robot has been created and the document is currently in draft.
See the following video for a short introduction to the Ruby Robot
The project is based around the inexpensive and easy-to-make Magician Robot Chassis kit. A Raspberry Pi is used to provide a way to program and connect to the robot with a H-Bridge driver IC to keep the electronics simple. The circuit is assembled on a breadboard so it can be assembled without needing to do any soldering (soldering is required for the optional cobbler board), or can use the Ryanteck Motor Controller board.
The cost of the components is cheap enough to make it suitable for schools, STEM clubs or for home projects. The total cost including camera is less than £100, but if you already have a Raspberry Pi that can be used, then it can cost less than £40 extra for the basic setup without camera. The camera can then be added later by saving up pocket money over a period of time.
The detailed guide is available below:
This was relatively inexpensive considering it is an interactive project and includes the cost of a dedicated computer. The two main costs were the Raspberry Pi and the magician robot chassis. The list below shows approximate costs and suppliers:
Total excluding optional items £65.50
Total including camera £86.50
Prices are approximate and do not include postage and packaging, but does include VAT even where the website displays ex-VAT.
Also used are a keyboard and mouse (existing ones used for PC) and it is recommended that a HDMI monitor / TV is connected to the Pi for the initial configuration. It is also useful to have a USB TTL connector (available from ModMyPi for £7). Rechargeable Ni-Mh batteries are recommended (not included in above costs). I purchased high capacity batteries as they are useful for demonstrations, but standard Ni-Mh batteries can be used.
* The cobbler shown in the photos is the AdaFruit cobbler, which is more expensive than the one listed in the price list
# Items marked with # can be replaced with the Ryanteck motor controller board. I still recommend building the circuit on a breadboard as it is a useful way to learn how the circuit works, but the controller board makes it easier to add additional circuitry.
In the guide the robot is controlled using a command line program run over an ssh session. This provides a simple way to get the robot working whilst keeping the programming simple.
The next stage is to provide a web interface providing an icon based control of the robot. This is currently under way with the code so far available on Github Web Robot project. There is no documentation at the moment, that will follow once the code is ready but the source code has been made available.
WARNING Please read the notes in the github README and WARNING files as the code is designed for educational purposes and has not been designed for use in a production environment.
These links provide information on some of the techniques used to create the Raspberry Pi based robot vehicle.
These guides have been released under a creative commons license, rather than the normal copyright license for this website. This license applies to the guides on this page.
The Ruby Robot guides by Stewart Watkiss (penguintutor) are licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Please view the copyright information regarding use of the circuits.