BB-8 is a fictional droid character in the Star Wars franchise. It has a ball-shaped body and a domed head. BB-8's body rolls independently from the head, which always stays near the vertical axis of the droid.
At RoboCET, we built a BB-8 robot using the Arduino Uno. Our BB-8 is controlled by Bluetooth controller application (like Arduino Bluetooth Controller-All in One App) which can be installed on your phone. Pair the Bluetooth module to your smartphone.
- Arduino Uno
- Bluetooth Module(HC-05)
- Motor Drivers(L298N)
- Johnson Geared Motor
- Neodymium magnets
- Roll-on deodorants
- PVC Pipe
1. Bluetooth module Interface Arduino
HC-05 Bluetooth Module is a Bluetooth system used to wirelessly connect microcontrollers with Bluetooth-enabled devices like smartphones. Its circuit is simple so that the user only needs a few steps to connect the Bluetooth module.
- Connects the Vcc pin to the 5V pin of Arduino.
- Connects the TX pin of the Bluetooth module to RX( Pin 0) of Arduino.
- Connects the RX pin of the Bluetooth module to TX( Pin 1) of Arduino.
- Connects GND to the GND of Arduino.
2. Motor Driver interface with Arduino
Motor drivers serve as an interface between the motors and the control circuits. It allows you to control the working speed and the direction of two motors simultaneously. Motor Driver has 4 input pins, 4 output pins, 2 enable pins, Vcc, Vss, and GND.
- Connects the Vss pin to the positive terminal of the external supply.
- Connects the 4 output pins to two motors.
- Connects the 4 input pins to 4 digital pins of Arduino.
- Connects Vcc(+5V) to Arduino 5V
- Connect one GND pin to the negative terminal of the external supply and the other to the GND pin of Arduino
1. Physics Behind the Body
BB-8’s body is a sphere that can roll. How do you make a sphere roll without pushing it? It requires a mass that can move inside the sphere. We enclosed a small wheeled vehicle inside the sphere.
As the car moves up the wall of the sphere a little, the center of mass of the entire sphere shifts upwards from the vertical axis with respect to the point of contact. When the center of mass shifts upwards, an external torque acts on the sphere. This torque then boosts the angular momentum of the sphere and causes it to roll. As the sphere begins to roll, the centre of mass tends to remain at its lowest point.
1. Physics Behind the Head
The head of BB-8 is not affixed to his body. The head is held in place by magnetic attraction to the body. In order to keep the head upright, the weight of the head must be less than the force of attraction. We used neodymium magnets here.The magnet inside the body is erected using a pipe fixed to the Bluetooth car.To minimise the friction between the body and the head, the rollers from the roll-on deodrants are placed between them.
- Solder each motor with a black and a red wire and attach them to the base.
- Join the wheels to the motors.
- Connects the motors to the motor driver.
- Upload the code to Arduino.
- Connects the motor driver to the Arduino and to an external power supply.
- Link the Bluetooth module to the Arduino.
- Download a Bluetooth controller app.
- Pair your device with the Bluetooth module
- Place a Vertical rod in the center of the base. Fix all the hardware components on the board such as the body have equal weight distribution around the vertical rod.
- Make the Magnetic Head Mechanism inside the body. Place it correctly at the other end of the vertical rod.
- Cut a globe into two equal parts for the BB-8’s body. Place the all hardware mechanism inside the globe and seal it.
- Attach the head to the body.
Project Done by:
- Rohil P Lal
- Sanjith Sreekanth