NOTE: To make a car this way, you need two Continuous Servomotors, which are different from to normal servo that only can go back and forth. They are available with our Self-Driving Car Kit.
Use anything from a coffee cup to scrap cardboard to design your own car. You can even use the box that the components came in.
- 10 + Straws
- 2 5-legged Strawbees
- 1 Quirkbot & Servo Backpack
- 2 Continous Servo-motors
- Small screwdriver
Outline the rectangular shape where you want to place motors. The best way to make holes for the motors is to use an exacto knife. Try to make it smaller rather than too big - try to make sure that the servo motors are secured nicely. Use tape or rubberbands if you want to!
This is one way of cutting the holes:
Put the servo cables however suits you – inside of the construction or along the sides, but make sure that they don't get tangled up as the car moves.
Connect a 5-legged Strawbee to the arm on the Servo, called the servo horn. Do this before you attach the servo horn to the motor with the little screw.
The servo horn and Strawbee are held in place by a straw overlapping them both together.
This can be a little bit tricky! Try wiggling the Strawbee leg up and down a bit to get the straw over the servo horn. Or make the opening of the straw a little larger with a pencil. Or cut the tip of the straw diagonally making the pointy tip slide over the servo arm more easily.
Program your Self-Driving Car
To make your vehicle move, a simple way to start is by randomizing the movement of the two Continuous Servo Motors.
Drag a Randomizer into your CODE area and connect it to a Continuous Servo Motor. Be sure to set the place where it's connected on the backpack: SERVO_BP1 or SERVO_BP2.
The program you see to here is the example program for a Self-Driving Car that randomly changes direction. Two Randomizer nodes control a Continuous Servo node each. Try changing the values on the Randomizer and see if you can make it crazier or take it more easy!