Summary
I made this car and the previous one because at school there was a Lego We-Do tug-of-war competition a few years ago, but the cars only drove backwards and I wanted to make a car that can turn and drive forwards. The new version can also drive backwards. This car is a continuation of my previous car and the base is almost identical to my previous car so if you built that and you still have the base previous car, so if you built that and you still have the base, then you can use it.
Parts
- 1x GlowBit Rainbow (optional, if you want lights)
- 3x Alligator Wires (red, green, and black, for the GlowBit)
- 4x Alligator to Female Jumper Wires
- 2x micro:bits
- 1x LED (For marking holes in cardboard)
- 1x Motor Driver for BBC micro:bit
- 2x TT DC Gearbox Motors
- 2x Spoke Wheels or 2x Rubber Wheels (better traction)
- 1x Ball Caster
- 3x AA batteries
- Cable ties
- A box (Core Electronics delivery boxes work well, better than the previous, bigger box I used for my car)
- Sharp pencil
- Scissors
- Masking tape
- Ruler
- Spare cardboard
- Optional: The driver on top is from the Makerspace at my school. His name is Mr Pink and he used to be a parachute tester.
Step 1: Make the holes to mount everything except the GlowBit
You will need to make some holes to mount components to this car. Use an LED to mark holes and a pencil to make them - LEDs have sharp leads that work well for marking holes.
- Motor Driver Holes: The holes circled in red are 6cm apart and the holes circled in pink are 1.5cm away from the red holes. They are all the width of a cable tie. Use a pencil to make them.
- Motor Holes: Make a big hole using a pencil.
- Place a motor onto the hole with the axle in the hole.
- Poke the LED through all the motor’s holes.
- Make the holes using a pencil, but they must only be the width of a cable tie.
- Once you have a big hole with 3 holes around it, you have almost finished the motor mounting holes. Now make a hole like in the picture below. It doesn’t matter exactly where you put the hole as long as it is close to the circled hole.
- Repeat steps 2 - 6 to make the holes on the other side.
- Back holes: Make holes like in the picture. They are 5mm wide.
- Ball caster holes and mounting: To mount the ball caster, press down on the caster’s screws to make holes, then secure it from the inside.
- Inside holes: Secure the front flap using a cable tie. This stops the box from falling apart.
Step 2: Mounting the motors and the motor driver
- Mounting the motor driver: Put batteries into the motor driver. Using the holes on the top of your car, mount the motor driver inside the box, like in the pictures below. Make sure that the M1 and M2 connections face the GlowBit.
- Mounting the motors First, make a square of cardboard, and put a hole in it, repeat until you have 6 squares.
- Place three cardboard shims on each motor. These will be used to make the motor sit straight. Ensure you put them on the side where the wires are attached.
- Then put the motor’s axle into the hole, with the 3 squares between the box and the motor. Secure it with cable ties.
- Put the jumper wires through the back hole. Repeat everything for the other side. You should end with 2 motors attached and 4 wires inside your car. Then attach the wheels.
Step 3: Wiring and flaps
- Connect the wires onto the motor driver like this (ignore the 3 wires on the side if you are not using a GlowBit) :
- Then connect the Alligator-Female wires, and tape the wires together, otherwise, they slip apart easily.
- Cut out flaps for the motor wires. These will let the box close properly.
Step 4: Code
- Add the Neopixel and the Klip motor extension first.
- The code for the remote is below. Put this code onto a separate micro:bit. I didn’t use A+B click because it would get mixed up between A, B, and A+B. Using the tilt, the car can simultaneously drive forward and turn.
- The code for the car is below. Upload it to another micro:bit, then plug that micro:bit into the motor driver.
- Press button A to go forward. Press button B to go backward. Tilt right to turn right. Tilt left to turn left.
Step 5: GlowBit
- GlowBit holes and mounting: For the GlowBit holes, you will need to hold the GlowBit like in the picture and make the blue holes, then the pink holes, and then the yellow holes. Then take 2 cable ties and attach the GlowBit using the pink and blue holes.
- GlowBit wiring: First, make a flap for the wires. This is at the front of the box. (The back is where the motors are.)
- Attach the Alligator wires to the GlowBit, like in the picture.
- Black to GND, red to 3V, and green to Data.
- GlowBit Code: Add this to your code to use the GlowBit: