AllenPitts
Member
Hello EletroTech forum,
Have designed a circuit and a PCB that sends the signal from a PIR sensor (motion detector) and
triggers a 555 timer to turn on some LEDS for about a minute. I call the circuit P5L (PIR to 555 to LEDs).
It has taken about month to design the schematic, prove the circuit logic with a breadboard, and
design and order the PCBs.
The plan is to use several P5Ls to, instead of turning all lights on a stairway at once, light up thestaircase two or three treads at a time so that the system reacts to the movement of the walker. I saw
something similar at a staircase at the Perot Museum in downtown Dallas.
A colleague who is an EE and has much experience was asked about how to make the lights below come on
when approaching from above and lights above come on when approaching from below. He said the
two methods that came to mind were an Arduino and 4013 flip flops. To avoid the programming overhead
and to learn about a new IC the 4013 was chosen.
Research on the 4013 Flip Flop led to
How to Build a D flip flop Circuit with a 4013 Chip
The system should work differently depending on whether the walker is going up the stairs
or down the stairs. Or stated more formally:
System Requirements:
Use Case One (going up): When sensor S6 is triggered the LEDS above (LED L7.1 and L7.2) are turned on
if LEDs below (L5.1 and L5.2) are on.
Use Case Two (going down): When sensor S6 is triggered the LEDS below (LED L5.1 and L5.2) are turned on
if LEDs above (L7.1 and L7.2) are on.
Sensor S6 is used in the requirements as an example to illustrate that the lights below a sensor would
be activated by movement down the stairs and lights above above a sensor would be activated by movement up
the staircase. The exception is sensors S1 and S8. There are no lights below S1 or above S8 and so S1
has no sensitivity to another set of lights. S1 simply turns on LEDs L1.1, L1.2 and L1.3. And similar for S8.
NOTE: 'Q2' is used as a substitute for Q with a hyphen above it because there is
no way of putting a hyphen above a Q using the characters on a standard keyboard.)
In Use Case One (going up)
S1 is triggered and the PIR
- Sends a signal to the P5L operating LEDs L1 and turns L1 LEDs on
S2 is then triggered
- Sends a signal to 4013.1 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L2 LEDs and a low or no signal to L1 LEDs
S3 is then triggered
- Sends a signal to 4013.2 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L3 LEDs and a low or no signal to L2 LEDs
S4 is then triggered .......
In Use Case Two (going down)
S8 is triggered and the PIR
- Sends a signal to the P5L operating LEDs L7 and turns L7 LEDs on
S7 is then triggered
- Sends a signal to 4013.6 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L6 LEDs and a low or no signal to L7 LEDs
S6 is then triggered
- Sends a signal to 4013.5 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L5 LEDs and a low or no signal to L6 LEDs
S5 is then triggered .....
Three questions:
1. Is this the best way to use the flip flops?
2. Is the clock an oscilator like a 555 timer? If there are six 4013s can they all be run from one 555?
3. I am familiar with a positive signal coming from, say, the PIR sensor which sends a 3 volt
signal. And at the Arduino send a HIGH signal with the statement 'lc.setLed(0,0,0,true)'.
And it is assumed that the three volt signal from the PIR to a pin on the 4013 would be
intepreteted as value of 1. But how does one send a signal to the pin of value zero?
Thanks.
Allen in Dallas
Have designed a circuit and a PCB that sends the signal from a PIR sensor (motion detector) and
triggers a 555 timer to turn on some LEDS for about a minute. I call the circuit P5L (PIR to 555 to LEDs).
It has taken about month to design the schematic, prove the circuit logic with a breadboard, and
design and order the PCBs.
something similar at a staircase at the Perot Museum in downtown Dallas.
A colleague who is an EE and has much experience was asked about how to make the lights below come on
when approaching from above and lights above come on when approaching from below. He said the
two methods that came to mind were an Arduino and 4013 flip flops. To avoid the programming overhead
and to learn about a new IC the 4013 was chosen.
Research on the 4013 Flip Flop led to
How to Build a D flip flop Circuit with a 4013 Chip
The system should work differently depending on whether the walker is going up the stairs
or down the stairs. Or stated more formally:
System Requirements:
Use Case One (going up): When sensor S6 is triggered the LEDS above (LED L7.1 and L7.2) are turned on
if LEDs below (L5.1 and L5.2) are on.
Use Case Two (going down): When sensor S6 is triggered the LEDS below (LED L5.1 and L5.2) are turned on
if LEDs above (L7.1 and L7.2) are on.
Sensor S6 is used in the requirements as an example to illustrate that the lights below a sensor would
be activated by movement down the stairs and lights above above a sensor would be activated by movement up
the staircase. The exception is sensors S1 and S8. There are no lights below S1 or above S8 and so S1
has no sensitivity to another set of lights. S1 simply turns on LEDs L1.1, L1.2 and L1.3. And similar for S8.
NOTE: 'Q2' is used as a substitute for Q with a hyphen above it because there is
no way of putting a hyphen above a Q using the characters on a standard keyboard.)
In Use Case One (going up)
S1 is triggered and the PIR
- Sends a signal to the P5L operating LEDs L1 and turns L1 LEDs on
S2 is then triggered
- Sends a signal to 4013.1 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L2 LEDs and a low or no signal to L1 LEDs
S3 is then triggered
- Sends a signal to 4013.2 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L3 LEDs and a low or no signal to L2 LEDs
S4 is then triggered .......
In Use Case Two (going down)
S8 is triggered and the PIR
- Sends a signal to the P5L operating LEDs L7 and turns L7 LEDs on
S7 is then triggered
- Sends a signal to 4013.6 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L6 LEDs and a low or no signal to L7 LEDs
S6 is then triggered
- Sends a signal to 4013.5 pin 4 (R) which makes Q1 = 1 and Q2 = 0. Q1 sends a high signal to L5 LEDs and a low or no signal to L6 LEDs
S5 is then triggered .....
Three questions:
1. Is this the best way to use the flip flops?
2. Is the clock an oscilator like a 555 timer? If there are six 4013s can they all be run from one 555?
3. I am familiar with a positive signal coming from, say, the PIR sensor which sends a 3 volt
signal. And at the Arduino send a HIGH signal with the statement 'lc.setLed(0,0,0,true)'.
And it is assumed that the three volt signal from the PIR to a pin on the 4013 would be
intepreteted as value of 1. But how does one send a signal to the pin of value zero?
Thanks.
Allen in Dallas