My friend Steven, who is a Secondary School Teacher, asked me to design a lovely bionic animal as a training aid which could help make their study more interesting.
So I made the Crazy Caterpillar for her. The small worm has two heads. They can be controlled by two different IR remote controllers. They can crawl step by step.
Therefore, every two students can make and play with the caterpillar together. In one class, many caterpillars can be used. After class, they even cａｎ play an interesting game named A MAZING CATERPILLAR RACE with their own caterpillars. The fastest caterpillar will win and the team will get the reward.
Two player: Coordinate with partner, go go go...
Multiplayer: Coordinate with partner, to make the caterpillar move up and down effectively, go go go...
We use a tiny Arduino compatible board - Grove Joint as the controller here, which include 2 Grove connector.
And we have 2 Grove - Mini I2C Motor Driver to drive the 4 motors. Each Grove - Mini I2C Motor Drive can drive 2 motors, as there're 4 motors.
First of all, let'a make a different address of the Grove - Mini I2C Motor Driver, please refer to wiki of the driver.
As there's only one I2C connector on Joint, so a Grove - I2C Hub is needed.
About the Grove - IR Receiver, we connect it to the rest of Grove connector, which is D3 and D5.
Grove - Joint is an Arduino compatible board.
Let's download the code here.
Open the code IRecive, upload the Grove - Joint, and open the Serial monitor @115200 baud rate.
Try to press a button in the remote, see if you can get a number printed at the monitor.
If no, maybe your remote is not supported, try another remote.
The number is the key of a button, you need to know the key of the button that used.
Connect the 2 Grove - Mini I2C Motor Driver to Grove - Joint(with a Grove - I2C hub), and the whole 4 motors to the driver.
Open the code MotorTest, which is a simple code to test the motor. You will find thr 4 motors move forward for 100ms and then backward for 100ms, and loop.
If the motors don't move, please double check your hardware.
Open the demo example, this is the code of the final project.
Upload the code to Grove - Joint.
Laser Cut the board using the Design Drawing.
There are three parts of the caterpillar: Head-1、Body、Head-2、
There are six faces of the Head: Top、Bottom、Front、Back、Lift、Right
Make the Top face：Follow the third picture (PS: the small “ bone ” is used for fixing other boards, so you need to turn it 90 degrees )
Make the Front face：Repeat the steps of Top face
There are two steps of the Bottom face:
1. Assemble the universal wheel
2. Fix the hinge
As illustrated in FIG.1, there are two parts of the electronic modules. One part needs to be put in the Head1, the other part needs to be put in Head2.
1. Put one part of the electronic modules in Head 1 and fix it as illustrated in FIG.2-3.
2. Fix the Touch latches as illustrated in FIG.3
Repeat the steps to make Head 2 and fix the other part of electronic modules in it.
Follow the picture to fold the paper.
Follow the picture to assemble all of the part.