Using PicoCrickets to Teach Debugging
We ran into trouble yesterday trying to make a cat meow when left in the dark. The cat was a PicoCricket, a programmable kit for making creations that move, make sounds, and light up based on inputs like touch, sound, and light. We were trying to make a cat that purrs when it’s dark, but the thing purred no matter the light conditions. I did not plan it, but it turned into a good debugging exercise for my daughters (ages 10 and 12). The image on the left shows the program with which we began, which was running in concert with a similar program (stack of blocks) to make the cat’s collar light up. (This is one of the sample projects sent with the kit.) The program on the left basically instructs as follows: "Keep doing the following: if the sensor is picking up light at a brightness of less than 20, then play the sound of a kitten." ("20" what, I am not sure.)


