The Code

The Dragon
The Crickets

Handyboard Code

The Handyboard on Shenlong controls the two motors, a and b for the two front wheels. Motor c controls the LED dragon eyes while motor d controls the LED that sends the defeat signal to the cricket on top of Shenlong.

There are two sensors to trigger to defeat the dragon: a touch sensor for its heart and a light sensor on its snout. The reflectance sensor is used to sense a white line so it knows when it wins the game.

Cricket Code

This is a combination of programs for the two crickets, the Tower Cricket, and the Dragon Cricket. The cricket atop the Dragon controls the motor for moving the neck and sends the defeat signal. The LED from the Handyboard is wrapped in black cloth along with the Dragon Cricket's light sensor to facilitate communication between the handyboard and the cricket. The Tower cricket controls the descent and ascent of the Tokyo Tower and receives the defeat signal from the Dragon cricket.

 

Back to main