Let's build an ant colony!
First we need to build a single ant. Let's start with a simple design and focus on the programming of the ant.
Goal: Build a robot which can mimic basic ant walking & running behavior.
Specifications: Your robot is allowed to "see" using an ultrasonic sensor. It should follow these rules (rough guide):
- If object < 7 inches, then move backwards fast (50% power)
- If object < 12 inches, then move backwards slow (30% power)
- if object is within 12-15 inches, then freeze
- if object is > 15 inches, then move forwards slow (30% power)
- if objects > 30 inches, then move forwards fast (50% power)
5 minute construction
Feel free to follow this easy 5 minute construction to get your robots running as fast as possible. Or, make your own! You can always build off this design later.
Step 1: Insert beams as follows (to support motor)
Step 2: Attach motors.
Step 3: Add support using 11 hole beam and 2 pegs.
Step 4: Attach wheels (simple using 5.5 stopper axle).
Step 5: Add 3x3 joiner (or wheel) to raise back (so sensor is looking flat ahead) and attach ultrasonic sensor
The next video will show the final steps as well as a completed robot.
To build ant bot you will need to be familiar with:
- Nested switch statements
- Move blocks
You can review these concepts below. After watching these videos you should be ready to solve this problem.
First you should draw your solution on paper as it will involved nested switch blocks.