Jason said:
Hi Fred,
To answer your question, I will be using a self-driven piezo buzzer
which DOES NOT oscillate (I thought that was what I was supposed to
use?), so the 555 will apply power to it when a beep is required (via
the usual resistor/transistor/diode arrangement).
I did a breadboard test of your original schematic this morning, and
it seems to be operating PARTIALLY o.k - Not sure if I did anything
wrong - there's wires everywhere! arrghhh!. There's bit of a problem
that I have encountered....
Problem # 1 : The 555's outpin pin is high if there are no inputs
connected (standby) - isn't it supposed to be low? As soon as I
connect an output, it works o.k but as soon as the input is
disconnected (when the 4017 resets), the 555's output pin goes high
again and stays high (causing the buzzer to sound continuously!).
Not sure what to do here Fred~! I used a logic probe and the NAND
gate that connects to the RST pin of the 4017 intermittently gives
half high half low, and found that the circuit then doesn't 'reset'.
Funny how it's only sometimes.
You are using the bipolar 555 and the typical RST pin current is listed
as 0.1mA, for which the 100K resistors are much too high. If you want to
keep the signal input impedance of the circuit high then you will have
to use the circuit attached below or go to a CMOS 555.
Problem # 2: Also if there is already an input connected BEFORE I
turn the power on to the circuit, buzzer will beep 7, 8 or 9 times
before it stops! i.e. Input 1 = 7 beeps. Input 2 = 8 beeps. Input 3
= 9 beeps. However, the 4017 seems to be going through only 1 cycle
(which is good), because according to the logic probe, each of the
outputs go 'high' only once. Weird.
If live inputs while the circuit is unpowered are a real possibility
then you should put a 10K in series with the input of the NAND driving
the 4017 RST input, and you can add a C+R from VCC to one input of that
NAND for a power on RST if you don't like the beeps.
Let me confirm the following: 1) All gates used are of NAND type
(4011). Note that your text mentioned 'AND'd'!).
Yep-
2) The 4017's CLK/Clock pin is connected to the positive rail at all
times. ???
Yep-
3) Output from the 555 is connected to the CE/Clock Enable pin of
the 4017.
Yep-
4) The inputs - finding that circuit doesn't work properly if any
unused input is 'floating' (i.e. not connected to ground). Are the
diodes in the correct spot?
Either go with a CMOS 555 or use circuit below.
5) What's the deal of not having a square wave for the 555 output?
Does it matter? My output seems pretty square.
It's only personal preference- if you're satisfied with the sound then
go with it.
As I said- either go with CMOS 555 and original circuit, or keep your
bipolar 555 and mod the circuit like shown below. You add a pull-up
resistor from 555 RST to Vcc, the NAND driver for the 4017 RST also
drives the transistor base OR circuit through a 10K and a 10K replaces
the 100K in the other drivers of the base circuit. A power on RC has
been added to RST the 4017 at turn-on. The operation is basically the
same except that now when an IN goes high, it indirectly causes 555 RST
high through the NAND+ transistor combination, instead of directly. The
555 is now RST after required number of beeps OR when the inputs are
removed.
View in a fixed-width font such as Courier.
..
.. 5V
.. 1U |
.. GND--||--+----[100K]-------+
.. | |
.. .------------------------------------------------------.
.. | | _ | |
.. | 3x 1N4148 '---| \ [10K] |
.. | | o-. | --------- |
.. IN 1------[10K]--+-|>|--+---|_/ | +----|RST OUT|----+
.. | | | | | | | |
.. IN 2------[10K]+-|-|>|--+ | | | 555 | |
.. | | | | | | | | |
.. IN 3-----------|-|-|>|--+ | | | ASTABLE | BEEPER
.. | | | | | | | | |
.. | | | [100K] | | | ON TIME | |
.. | | | | | | | =BEEP | |
.. | | | GND | | | OFF TIME| GND
.. | | | | | | 1/2 BEEP|
.. | | | | | ---------
.. | | | | |
.. | | | | |
.. | | '--------. | |
.. | '--------. | | |
.. | | | | |
.. .---------------------------+-[10K]--------.
.. | | | | | |
.. | | --4017-- | | | |
.. | | | Q0| | | \| |
.. | | |-- | | | 2N3904|---+
.. | '---|CE | | | <| |
.. | | | | | _ 4011 | |
.. | '1'-|CLK Q1|--------| \ GND |
.. | | | | | | o _ |
.. | | | | '--|_/ '-| \ |
.. | | | | _ | o--[10K]--+
.. | | Q2|--------| \ .-|_/ |
.. | | | | | o' |
.. | | | '----|_/ |
.. | | | |
.. | | Q3|--------------------[10K]--'
.. | | |
.. '-----|RST . |
.. | |
.. | Q9|
.. | |
.. --------