question for the seasoned

Thread Starter

fredric58

Joined Nov 28, 2014
252
ok, I studied some and, not and or gates, Boolean, binary 00 01 10 11 = 0 or 1, multiple in only 1 out..... and the 4060, with different pins having different hertz (time) and have a basic understanding. I want the circuit work as is already designed. AND I want to add this feature and would like to utilize the existing circuit if possible. only at night (using the dark sensor and reg circuit once an hour the PCB will turn on for 10-12 seconds and turn off and still function as already designed. so I would think that the 4060 circuit could go in front of the dark sensor and it could send power????
 

Alec_t

Joined Sep 17, 2013
15,123
Yes, you could arrange a 4060 to turn on the dark-sensor/reg/PCB combo for 10-12 secs each ~hour; but where does the PIR fit into this scheme?
 

Alec_t

Joined Sep 17, 2013
15,123
But then the PIR will switch off the 4060 (and hence the other things) before the required 1hr timeout! Methinks instead you'll need to have the 4060 control power to the PIR.
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
no, the first circuit I made turned on at night and the 555 or 556 made it beep every couple minutes, this one I want to beep every hour but still beep when the PIR gets tripped.

I can make both circuits (separate), the challenge I have is combining them into one
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
like the test circuit switches jump over the PIR and DARK sensor and goes directly to the regulator. couldn't the 4060 jump over just the PIR? sending 9 v to the dark sensor circuit at night for 10-12 sec every hour and power the PCB? the clock would run all the time but the dark switch would only allow it to work in darkness. and it would still function as designed at night with the PIR being the trigger??
 

Alec_t

Joined Sep 17, 2013
15,123
Ok, I think I've got that. Just to confirm:-
1) The PIR and Timer (4060) both run continuously unless the manual switch is set to 'Off'.
2) Power to the dark sensor, regulator and PCB is normally off.
3) IF either the PIR or the Timer so commands, power is switched on to the dark sensor, regulator and PCB.

Is that right?
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
that is correct. it will beep every hour at night so I know it is working, and it will beep any time the PIR is triggered. do you think that it is doable????
 

Alec_t

Joined Sep 17, 2013
15,123
Yup. Here's a 4060 timer circuit which would be wired to get its +ve supply from the PIR +ve supply point and its output would drive the base of the same transistor (Q4) that the PIR drives. The trimpot Trim1 allows adjustment of the 4060 clock frequency to give pulses at pin 5 which are on for 10-12s and off for 10-12s (you can check with a DMM). The '1hr' period is set by using AND gate U1b to combine counter stage outputs q9/q10/q13 so is actually (256+32+16) x 12s = 304 x 12s = 61mins. After this period the circuit output is kept 'high' for 12s by AND gate U1a, then the timer is reset via AND gate U1c and D1.
Timer4060.gif
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
wow! I do not understand the notation X1pin8, and trim symbols are still a bit confusing as to which is pin 1,2 or 3? but!!!! I DO GET the AND gates!
 

Alec_t

Joined Sep 17, 2013
15,123
X1pin8 means pin 8 (i.e the ground pin) of the 4060 (which was modelled as device X1 in my simulation of the circuit).
Not all trimmers are of the same physical shape, so pin numbering can be ambiguous. Use an Ohmmeter to find the two pins where the resistance between the pins doesn't change when you twiddle the wiper; let's call those 1 and 2, the wiper being 3.
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
so, never having worked with an AND gate. the 4073B has (3) AND gates. yes? however (8) pins.....I read the data sheet but don't understand the terminology enough to decide which pins go with U1a, U1b and U1c. or which pins to use.....
 

Alec_t

Joined Sep 17, 2013
15,123
Shame about the datasheet quality. Only TI's datasheet seems to pop up on Google :(.
Yes, all three gates are the same, so are interchangeable. Choose to suit your circuit layout. All pins will be used.
Pins:-
Gate 1: In = 1,2,8. Out=9
Gate 2: In=3,4,5. Out=6
Gate 3: In=11,12,13. Out=10
7=Vss (ground)
14=Vdd (+V)

Don't forget anti-static precautions for the IC.
 

Thread Starter

fredric58

Joined Nov 28, 2014
252
Hi Alec, hope all is well! ok, I am about to power this new project up. Before I hook it up to the existing circuits I would like to test it. Can I simply power the circuit and use the power that will be going to Q4 to turn on an LED? Which clock will start first, or may be better....will the 10-12 seconds be first and then the hour count down begin. OR..... will I have to wait an hour, time the LED, make an adjustment....wait another hour....etc? I am hoping the 10-12 second ON will happen first when it is powered. It would be ALOT easier to set. Turn it on, time the LED , adjust the trim till I get around 12 seconds or so.....
 

Alec_t

Joined Sep 17, 2013
15,123
The 12s and 1hr counts both start at power-up, but the signal going to Q4 will only occur after 1 hr, so you can't use the Q4 signal as you'd hoped. For driving a LED for test purposes, temporarily connect the LED via a ~1kΩ resistor to pin 5 of the 4060.
 
Top