At the beginning of the program the clam waits to be opened. When it feels someone is trying to open it, the shell starts closing until reaching the initial closed state and then stops moving. Most students will cope with this task very fast and will program the robot to close for seconds. Nevertheless, explain how the rotation sensor can also be used. Tell your students how much energy it takes to use a muscle for a longer time. The program is uploaded here. That is how the final program for the Clam robot should look like:

