Few robots are more recognisable than WALL·E; his cute appearance and distinctive personality make him instantly endearing to anyone who sees him! In this project, I designed a WALL·E replica with the aim to allow each of the robot’s joints to be moveable by hand or using servo motors.
Loosely based on the dimensions and design of ChaosCoreTech’s Wall-E replica, this version was designed from scratch in Solidworks and allows 7 of the joints to be actuated, including the arms, neck, head and eyes. The robot design has the following features:
- Each eye can be raised and lowered independently with servo motors.
- There is room in each eye to add a small camera.
- The head can look left and right using a servo motor.
- The neck is actuated at two joints, allowing the head to look up/down and to be raised/lowered.
- Each arm has a motor at the shoulder to move it up/down.
- The arms consist of pressure fit joints, hands and fingers, which can be manually posed.
- The tank treads (skid steering) are fully 3D printed and can be powered using two 12V DC geared motors.
This is an ambitious project, aimed at people who want to build a fully animatronic WALL·E robot with servo controlled joints. It took me about 3 months to design and assemble the robot, with more than a month spent on just 3D printing all of the parts. In total, there are 310 parts (although 210 of those are very small and make up the tank treads).
1. List of 3D Printed Parts
The robot comprises of 310 individual parts, so this definitely is not an easy project suitable for people who don’t have much experience with 3D printing! Personally, I spent more than a month printing all the parts, with the printer running almost every day. The largest components (the main body parts) took up to 14 hours of print time each, while the smaller parts took 5-6 hours. If you are interested in making your own robot, I have uploaded the 3D files for all the components on Thingiverse.
2. List of other Components
A variety of other hardware is used to fasten the 3D printed parts together and bring the robot to life. A list of the hardware and electronic parts that I used is shown below. To make WALL·E look more realistic, I took apart some old binoculars and used the lenses as the eyes. I think that the shine and reflections on the glass adds a lot of soul to the robot, and make him look even cuter.
- M3 Bolt, 10mm length – x14
- M3 Bolt, 20mm length – x12
- M3 Nut – x26
- Paper clip (used for linkages) – x2
- Binocular lenses (for the eyes) – x2
- 9g Micro Servo Motor – x7
- 12V DC Geared Motor (60RPM) – x2
- Arduino Uno (or equivalent) – x1
- Motor Controller Shield – x1
- i2c Servo Controller Board – x1
- 12V DC Battery Pack – x1
Note: Links are for reference only, and are not where I bought my parts. Please shop around to find the best supplier near you!
While it is possible to use a Wifi/bluetooth connected Arduino micro-controller to control the robot, I decided to use a Raspberry Pi instead. Since the Raspberry Pi is essentially a small computer, it can be used to play sound effects, stream the video from a USB camera, and host a web interface through which the robot can be controlled.
3. 3D Design and Printing
I designed all the components in Solidworks, using images and other 3D models as reference. The main aim in the design process was to split the robot into small enough pieces so that they would fit into the 3D printer, and also to integrate all the motors and electronic components. I tried to make the robot as small as possible, while still leaving enough room for the motors.
After 3D printing each of the parts, I spent a lot of time sanding the parts to remove all of the print lines and give them a smooth finish. Two coats of filler-primer were then applied, with more sanding done between each of the coats. Using a primer is important, as it helps the paint to stick to the plastic and not rub off as easily. It is also useful as it makes imperfections and bumps on the part more obvious, showing where further sanding needs to be done.
Each of the parts was then individually painted with lacquer spray paints. I only used yellow, white, light grey, dark grey, black, and red spray paints to paint the whole robot. By splattering light layers of black and red paint onto the parts that were painted grey, it was possible to add texture and make them look a lot more like real metal.
Finally, after fully assembling the robot, I used black and brown acrylic paints to weather the robot. This involves applying the paint liberally onto all the surfaces, and roughly wiping away most of it with a towel. The paint that isn’t wiped away stays in the corners and crevices of the parts, making the overall replica look older and more realistic.
The video below shows how to assemble the robot. Overall, the assembly is not too difficult, but it is important to put the parts together in the right order. While a couple of small parts needs to be glued together, most parts are fastened together using bolts. This makes assembly and disassembly easy if any parts need to be fixed or replaced. The trickiest part was probably the wiring, figuring out how to connect the motors in the eyes of the robot to the controller in the body.
6. Wiring and Electronics
The wiring diagram is shown below, illustrating how each of the electronic components were connected in the robot. The USB port of the Arduino Uno was then connected to the USB port of the Raspberry Pi. If the 12v to 5v DC buck converter is capable of delivering up to 5 amps, then the Raspberry Pi can be directly powered from the converter. Otherwise, it should be connected to a separate 5v battery.
The programming of the robot can be split into two main parts; the code for the Arduino micro-controller, and the web-server on the Raspberry Pi. I’ve uploaded all my code onto GitHub; the link is shown below.
The Arduino controls all of the motors within the robot, determining how they should move. In the code I added a velocity controller, so that the servo motors don’t suddenly jump into life at full speed, but instead start and stop gently.
The Raspberry Pi is connected to the Arduino via a USB cable, and can send user commands to the Arduino to make the robot move in a specific way. The Pi is also connected to a USB webcam and a speaker, and can play sound effects. The code is written in Python, and uses ‘Flask’ to generate a webserver. Any computer on the same local network can then access the page and remote control the robot.
8. Arduino Installation Guide
[a] Basic Installation
- Ensure that the wiring of the electronics matches the circuit diagram.
- Download/clone the folder “wall-e” from the GitHub repository.
- Open wall-e.ino in the Arduino IDE; the files MotorController.hpp and Queue.hpp should automatically open on separate tabs of the IDE as well.
- Install the Adafruit_PWMServoDriver.h library
- Go to Sketch -> Include Library -> Manage Libraries…
- Search for Adafruit Servo.
- Install version 1.0.2 of the library; the newest version has a bug and does not work properly.
- Connect to the computer to the micro-controller with a USB cable. Ensure that the correct Board and Port are selected in the Tools menu.
- Upload the sketch to the micro-controller.
[b] Testing the Main Program
- Once the sketch has been uploaded to the Arduino, power on the 12V battery while the micro-controller is still connected to the computer.
- Open the Serial Monitor (button in top-right of Arduino IDE). Set the baud rate to 115200.
- To control the movement of the robot, send the characters ‘w’, ‘a’, ‘s’ or ‘d’ to move forward, left, back or right respectively. Send ‘q’ to stop all movement.
- To move the head, send the characters ‘j’, ‘l’, ‘i’ or ‘k’ to tilt the head left or right and the eyes upwards or downwards.
- Only move on to using the Raspberry Pi if all these functions are working correctly!
[c] Servo Motor Calibration
9. Raspberry Pi Web Server
[a] Basic Installation
- Setup the Raspberry Pi to run the latest version of Raspbian/NOOBS. The setup instructions can be found on the Raspberry Pi website.
- Open the command line terminal on the Raspberry Pi.
- Ensure that the package list has been updated (this may take some time):
sudo apt-get update
- Install Flask – this is a Python framework used to create webservers:
- Ensure that pip is installed:
sudo apt-get install python-pip
- Install Flask and its dependencies:
sudo pip install flask
- Ensure that pip is installed:
- Clone repository into the home directory of the Raspberry Pi:
cd ~ git clone https://github.com/chillibasket/walle-replica.git
- Connect to the Arduino/micro-controller:
- Plug the Arduino/micro-controller into the USB port of the Raspberry Pi.
- Use the following command to list the connected USB devices. Record the name of the device you want to connect to:
result=$(python <<EOF import serial.tools.list_ports for p in serial.tools.list_ports.comports(): print(p) EOF ) echo $result
- Open app.py:
- Paste the exact name of the micro-controller into line 92, where is says ARDUINO. To jump to a specific line number in the editor, you can press
CTRL + _.
- Set the web server password:
- On line 180 of app.py where is says put_password_here, insert the password you want to use for the web interface.
CTRL + Oto save and
CTRL + Xto exit the nano editor.
[b] Using the Web Server
- To determine the current IP address of the Raspberry Pi on your network, type the command:
- To start the server:
- To access the web interface, open a browser on any computer/device on the same network and type in the IP address of the Raspberry Pi, follow by
:5000. For example
- To stop the server press:
CTRL + C
[c] Adding a Camera Stream
- Install mjpg-streamer – this is used to stream the video to the webserver. A good description of the installation procedure is described here. Complete the Install & Setup steps, as well as creating the Auto Start Manager Script. Stop when you reach the Start on Boot section.
- Make sure that the manager script you created has the correct name and is in the correct directory:
[d] Automatically start Server on Boot
[e] Adding new Sounds
- By default the Raspberry should automatically select whether to output audio to the HDMI port or the headphone jack. However, you can ensure that it always uses the headphone jack with the following command:
amixer cset numid=3 1
- Create the folder in which to store the sounds, using the command:
- Make sure that all the sound files are of type
*.ogg. Most music/sound editors should be able to convert the sound file to this format.
- Change the file name so that it has the following format:
[file name]_[length in milliseconds].ogg. For example:
- Upload the sound file to Raspberry Pi in the following folder:
- All the files should appear in the web interface when you reload the page. If the files do not appear, you may need to change the privileges required to access the folder:
sudo chmod -R 755 ~/walle-replica/web_interface/static/sounds