Wednesday, May 20, 2009

Patrol Robot: Continue Lamp Challenge




This part of the continue phase involved putting a lamp onto the robot and having it flash when the door is open. Also, you had to incorporate a my block into the program in the lamp part. To do this, I had to add a lamp to my robot and set up a new program. My program is shown below for both the my block and the main program. To get the programming right, I used lamp then wait blocks set for 1 second then the lamp would go off then wait for 1 second. All of these lamp and wait blocks were put into a loop and set to stop when the touch sensor is pressed.

No comments:

Post a Comment