Circuit Diagram for lights in a building (Sound/Light Sensor + Delay)

In summary, the task is to design a system where a light (lamp) turns on when sound is heard and turns off after 10 seconds of no sound, but only when it is dark (light sensor). The solution involves using a light sensor and a sound sensor connected to an inverter and a delay, which are then connected to an AND gate. The light is connected to the AND gate so that it only turns on when both the sound and light sensors are active. There is a delay at the start of the system, but it can be modified by connecting the output of the delay and inverter to an OR gate, which then connects to the AND gate.
  • #1
06mangro
20
0

Homework Statement


Need to design a system where the lamp (output) turns on when sound is heard and turns off after 10 seconds of no sound, but it must also be dark (light sensor).

Homework Equations


The Attempt at a Solution


I have put a Light Sensor (that is set to let current flow when it is dark). Then i have a sound sensor, connected to an inverter, which is connected to a delay (set to 10 seconds). These are both connected to the light (lamp) through an 'AND' gate so that both must be allowing current to flow for the light to turn on.

When turning the light on there is a delay, (the question didn't say that having a delay at the start isn't correct, but if someone could tell me how to modify it so that that doesn't occur, it would be appreciated)
 
Last edited:
Physics news on Phys.org
  • #2
the output of the delay and the output of the inverter should connected to an OR gate. The output of the OR gate goes into the AND gate.

Delay:
output=OR gate
input=inverter

OR Gate:
output=AND gate
inputs=inverter,delay

AND Gate:
output=lamp
inputs=Or gate,light sensor.

make sense?
 

Similar threads

Replies
4
Views
2K
Replies
4
Views
2K
Replies
7
Views
3K
Replies
14
Views
5K
Replies
4
Views
2K
Replies
2
Views
12K
Back
Top