Free home use
Get a free copy of Yenka to use at home.
Free school trial
Try all our Yenka products free for 15 days in school.
What does the model show?
A programmable control system, which automatically puts house lights on when it is dark and when someone approaches is shown. This demonstrates the use of flowchart components including decision-making and the use of target inputs and outputs as part of a house context.
Figure 1
Demonstration Instructions
Circuit notes:
- This circuit demonstrates how a context can be used to create a more realistic control sequence.
- The 'Write: pins' symbol addresses all 8 output pins at once; in this flowchart it is used to switch them all off.
- Click on the 'Toggle whiteboard mode' button on the Yenka toolbar to go to full-screen mode. And use the sliders on the bottom and right of the screen to centre the circuit on screen.
- Click the green button on the 'Start' symbol to run the simulation.
- Click the pressure sensor to simulate someone approaching the house. This will switch all the lights on.
- Click it a second time and they will go out.
- Click the light sensor and drag the slider down to simulate it becoming dark.
- This will cause the house lights to come on. Take the slider back up to simulate it becoming light and they will go out.