Outdoor System task
For outdoor lamps at a house, a system is desired that can turn the lamp on and off based on the following criteria:
- A photocell should indicate whether it is light or dark.
o (Light - 0 / Dark - 1).
- A clock should indicate the time of day.
o (From 12:00 to 00:00 - 0 / from 00:00 to 12:00 - 1)
- A switch on the garden gate indicates whether the gate to the garden is open or closed.
o (Closed - 0 / Open - 1).
The lamp should only illuminate when it is dark.
The lamp should turn off after 00:00.
The lamp should automatically turn on between 00:00 and 12:00 if the garden gate is opened
and it is dark outside (Postal worker comes in to deliver a newspaper or such).
______________________________________
This task is given to students at Roskilde Technical College as a part of introduction to Logic gates and Logic programming.
Ещё видео!