R O B O
GB+USA
Part 1
2 2
2 2
S
T A R T E R
Ta s k 2 :
Your door control works great. However, when the first customer caught his leg in the
door because he tried to go through the door right at that time that it was being closed,
you decide to improve the program a little. The door has a light barrier, which is
supposed to prevent the door from closing when someone is going through it. You want
to expand the program so that the
1. door will only be closed when the light barrier is not interrupted;
2. door opens when the light barrier is interrupted when the door is being closed;
3. door opens when it is closed without having to press the button as soon as the
light barrier is interrupted.
P r o g r a m i n g Ti p s :
• First, just as you did before for the handdryer, switch on the light for the light barrier and wait a
second before the sequence goes further.
• Wherever it is necessary, query the phototransistor and open the door when the phototransistor
displays the value 0.
• Completed project, sliding door 2.rpp.
Finished! Your boss is proud of you! The door works perfectly and is absolutely safe.
2 2
2 2
A
B
C T I V I T Y
O O K L E T