How to Build a BB-8 Robot

by JFJAVENUE in Circuits > Robots

13008 Views, 160 Favorites, 0 Comments

How to Build a BB-8 Robot

221054xh88eehkhkhbhbj5.jpg

That’s right, the robot I teach you to make this time is the BB-8 in the Star Wars: The Force Awakens. Ever since the first official trailer was released in October, the adorable BB-8 in its peculiar design has attracted a large number of fans and its popularity is comparable to some main characters. Of course, it itself is a leading character who played many parts in the film. At the world premiere in Los Angeles, BB-8 also‘rolled over’red carpet as one of the major characters.

142046erzj2gp6jqnmrg2q.jpg

In the film-making process , BB-8 was controlled like a puppet. Hence, it is not easy to build a BB-8 robot that can walk as free as that in the movie. While people was amazed by its performance, the working principle of BB-8 has sparked heated discussion. Some people think that it is the robot’s two internal gears that provide power to itself while remaining balance by adjusting to the weights. When the head using the magnet unit and ball sensor to conduct interaction, it can sense which direction is going upward and which one is moving forward. For the whole process, BB-8 can automatically adjust to its head so that it will not fall off.

143441nnk9mk9jeknezc7g.gif

You may wonder what the working principle of BB-8 is? The BB-8’s working principle was not unveiled until one Sphero patent was exposed. Unlike the opinion that the two balls of BB-8 worked independently, this patent revealed that they were actually integrated. According to the patent named ‘Magnetically Coupled Accessory for a Self-propelled Device’, there is a gravity device inside the ball which is composed of two shaft wheel motors and a vertical mast. When the shaft wheels are moving, the center of gravity will deviate and will affect the ball’s movement. The working principle is similar to that of a space ball. Like a space-ball, when an object enters in, the ball’s gravity will change by adjusting to its own position, and will finally make ball to spin and move forward.

145036rn4gs6hg7s3g6gu6.jpg
145036ot4mo4zqppy46gzb.jpg

As for the head, many people would think that the head keeps an upward position by constantly moving backward. In fact, it adopts the magnetic suspension technology and installs magnets in the BB-8 body’s interior mast. Hence, it can always remain on the same horizontal line with the ball’s center of gravity. Therefore, we can see that the BB-8 is always tilted in its movement. This is because the center of gravity is always tilted while moving.

150102bpweyh0etaw3hhpt.jpg

The BB-8 I will discuss is a mini version. The main body parts were made by a 3D printer. The control unit uses a Romeo BLE mini (Small Arduino Robot Control Board with Bluetooth 4.0)by DFRobot. While inheriting all the functions of RoMeo BLE, it also integrates Bluetooth 4.0 communications, a 3 pin sensor interface and 2-way motor drive. Hence, if your project has high requirements for space, this mini controller is your absolute choice without doubt. Besides, the control part utilizes mobile GoBLE APP and Romeo BLE mini board to build communications to control BB-8. In terms of power, I have used a 1000mAh3.7v lithium battery as a power source. You also need a 5v boost module, as the working voltage of the Romeo BLE mini control board can be no less than 5v.

153550sk84r4e7qys6n66p.jpg

Now that you know the working principles, let’s start making the robot.

You will need the following components:

Romeo BLE miniX1

Bolts, studs,shims,nuts

Boost Module X1

SwitchX1

AdapterX1

Battery X1

MotorX2

Magnet X1

Optical Axis X1

Wires

154139yran0la71nkneess.jpg

And you need to print the following components

154211mtlfm5uaz5ummus6.jpg

Step One: Make magnetically coupled component for a gravity-driven device

First of all, put two motors in the chassis motor seats separately, fix them with 502 glue, and then solder the motor wires.

154702z8q4dzpqqpdc42qa.jpg
154703fbbbse8bvldksdk1.jpg

Squeeze glass adhesive on the printed BB-8 hubs to make the wheels and reshape the glass adhesive properly. Put the wheels at a ventilated place for one hour to dry the glass adhesive. Of course, if you don’t want to wait you can also use air blower to dry the glass adhesive for ten minutes.

160010qo0u0htw9ddt5d9e.jpg

Stick the main drive gears on the hubs, insert optical axis bonding to prevent shaft holes misalignment.

160409zshut1xtu9xxstxg.jpg
160410ioqhohx4xadag4o3.jpg

Inset the printed pinions on the two motor shaft separately and fix them with glue.

160612dsfu0ajijn0qatft.jpg

Insert the optical axis of 4mm diameter into the center of the chassis, and then insert runner, washer and a chock made of the sheath of a pen.

161109ensxfmxsam3aracf.jpg
161110w3n8tmiijjjcdcdz.jpg

Install the motor cover and run the electrical conductor through the cover. Fix them with screws.

192737sfzto0xmamnxhav5.jpg
161532dykzymvklm1s4lgi.jpg

Install Nylon stud, battery and Romeo BLE mini controller accordingly. Fix the battery by applying small amount of hot glue at its bottom.

193157pa3107r800hz0jdc.jpg
193158dzr8uddr4v0vdhow.jpg
193158ke7zo7jaoeae71o7.jpg

Install synchronous wheel bracket and fix it with 1x10 screws. Insert the synchronous axle with 3x30 screws and fix it with 502 glue. Use USB cable to connect Romeo BLE mini control board and computer, upload BB-8 control program code. 【The code was already put at the end of this article, you can download if you may like】

193520izlcillcc9vvizgc.jpg
193520w45j8uaxiuxj28u3.jpg
193521hqdptm9pcat1m74p.jpg

Connect and weld the wiring of the switch, microUSB and boost module according to the circuit diagram. Install all of them at battery level and fix them with hot glue. Connect the motor leads to MA1、MA2、MB1、MB2 ports on the Romeo BLE mini control board separately. The outlet terminals of the boost module connect to the positive and negative electrodes of the VIN terminal.

195204j9hev7eb4ho9vh1e.jpg
195204q3ogkpo3z2xp3z3x.jpg

Use a neodymium magnet to attach the S-pole and N-pole magnets onto the magnetic receiver with hot glue, install them into the top bracket with 502 glue .

195624pitttmaxe0ifbaxa.jpg
195625rajmryvm1rjuujge.jpg

Step Two: Make the body part of BB-8

Stick the two 3D printed half-balled body parts together. Polish them first with abrasive paper and then with fine sandpaper until the spherical surface becomes smooth.

200415iuej5hc5hwmcjizk.jpg
200415gprx5rbz5b0gr54z.jpg
200416hucf3fzr1cogcrce.jpg

Wrap BB-8’s body and head properly with masking tape. Draw patterns on the BB-8’s body using compasses and pencil. You can draw many irregular geometric figures according to the original edition. Cut the masking tapes of those parts that need silver spray first with knife, and spray them with silver-paints.

201549w8tipzpp2ick1c07.jpg
201549yen4zecsp787oh0f.jpg

Cut off the patterns that need red spray, cover the sprayed silver patterns with masking tape, and spray the rest with red paints. According to the original edition, BB-8 should be sprayed with yellow paints. Then why I have to spray the robot with red paints? Kids may wonder why but of course it’s because that the Chinese people fancy red color!! Wait a minute, I think I might confuse you~actually I have no other colors but yellow paints.

202926di5ei1e1ss06iiwa.jpg
202927iaf5wae9ne6f5eex.jpg

To be more like BB-8 patterns, you also need to draw many small circles in the blank space. Isn’t it a chore? Heart-breaking?

202928vxjsgx8c8geel4lx.jpg

Use electric drill to make two 1mm holes on the head antenna section. To make BB-8 antenna, insert two white leads into the drill and fix them with 502 glue. Cap the long antenna with a section of black hot glue will resemble more like the original one. Also, install the small wheel and magnet on the head (the N-pole and S-pole of the magnet have to pull towards those have different magnet poles in the body), stick head and head bottom cover together with glue.

205153lswzg6t4hsgpwsmh.jpg
205154c98cc8ccm6g6gy6f.jpg

Spray with finishing varnish evenly. Don’t spray too much on one time, wait a few more minutes to have the second spray. Repeat the spray until you are satisfied with the exterior.

205628iq3swsxrxgvenw0p.jpg
221055lscd3eskye4448t5.jpg

Finally, put the magnetically coupled accessory for gravity-driven device into the BB-8’s body. Press the switch and connect to Romeo BLE mini board via mobile bluetooth. Then you can control the BB-8 walk on your mobile phone through GoBLE APP. To this point, a BB-8 robot is born.

220947prtq4nc9n0tm0u7a.jpg
221055ogevgczidnqdnm1v.jpg
221055mq2vs6pks0nohzs1.jpg
221054nfotzt3z3x5ic5iv.jpg
221054xh88eehkhkhbhbj5 (1).jpg

Documents:

3D Model

Code