The code for the wand simply sets up a loop to send out an infrared signal. View of hat with rabbit in it from top. Rabbit pops up when wand is waved at the cricket wired to the mechanism inside. Click on the image to view its gear mechanism. Front view of pinwheel.
Cricket is hidden behind head of flower, and waving wand at cricket can start and stop rotation.
Click on image for more details of mechanism. Exterior view of the black box. Small object can be placed on a platform through the doorway. For more details, click on image.