Cracking the Code Programming a robot crocodile

Cracking the Code Programming a robot crocodile

A class build a Lego crocodile and use Raspberry Pi computers and the Scratch programming language to make it snap its jaws! Science presenter Minna Kane explains how you can plug your keyboard and monitor into a tiny Raspberry Pi computer and use open source coding software to program it. We see a primary school class build model crocodiles out of Lego, complete with a motorized mouth with a proximity sensor inside it. The sensor is the input and the motor is the output. The children use Scratch, a visual programming language, to create the program that will make the mouth snap shut when something is put inside it. We see their IF/THEN blocks and sensing values using a LESS THAN command that enable the sensor to detect how close the finger is and snap shut. Teacher notes: This could be used as an introduction to designing and writing programs that accomplish specific goals. Could also be used to show various forms of input and output.

  • 2013
  • 00:04:02
  • 9-12
  • Added on: 08/21/2019
Curio.ca users can access content from outside their institution. You must find your access code and then create an account.

Teacher Guide(s)

  • How to Use Video Effectively in the Classroom [.pdf]

    How to Use Video Effectively in the Classroom [.pdf]

Can be found in

The new version of Curio is available!

Access this page through the new version and discover a whole new experience.

Try the new version