This activity was created by Tom Simpson at Heathwood Hall Episcopal School.
This robot changes its appearance as the temperature changes:
- At room temperature, the beak is green and doesn't blink.
- If the temperature drops, its beak turns blue and blinks slowly. The robot also makes a low beeping sound.
- If the temperature rises, its beak turns red and blinks quickly. The robot also makes a high beeping sound.
First, find out the current room temperature. Next, you just need to tell the Finch what to do for 3 possible situations: near room temperature, a degree below room temperature, and a degree above room temperature. Like most programs that use sensors, this program should contain a forever loop so that the robot can continually monitor the value of the temperature sensor. Inside this loop, set the robot’s beak to green (the default value).
Next, you will need to include a block that decides if the temperature is less than 2-3 degrees below room temperature. What should happen then? You also need a block that decides if the temperature is more than 2-3 degrees above room temperature. What should happen then?
Note: You can test your program with a bottle of ice and a small portable heater (or your hand).