Make: Electronics by Charles Platt (read me a book .TXT) ๐
Read free book ยซMake: Electronics by Charles Platt (read me a book .TXT) ๐ยป - read online or download for free at americanlibrarybooks.com
- Author: Charles Platt
Read book online ยซMake: Electronics by Charles Platt (read me a book .TXT) ๐ยป. Author - Charles Platt
Figure 2-109. Q4 is another 2N2222 transistor that further amplifies the signal. It receives power through R9: 2.2K.
Figure 2-110. This schematic is comparable with the component layout in Figure 2-109.
Figure 2-111. The 2N2222 transistor is quite capable of driving a 3-inch loudspeaker, which will create much better sound than a 1-inch speaker.
Step 4: Pulsed Output
If you wanted to use this audio signal as some kind of an alarm, a steady droning noise is not very satisfactory. A pulsing output would be a much better attention-getter.
Figure 2-112. Top: The basic functions of the noisemaking oscillator circuit shown as a block diagram. Bottom: The same functions with a slow oscillator added to control the fast oscillator.
Well, the first section of the circuit that you assembled created a pulsing signal about twice per second. You used it to flash an LED. Maybe we can get rid of the LED and feed the output from the first section to the second section. The lower block diagram in Figure 2-112 explains this concept.
Can it really be that simple? Well, yes and no. The trick is to make the output from the first section compatible with the input to the second section. If you simply connect a wire from the cathode of the first PUT to the anode of the second PUT, thatโs not going to work, because the second PUT is already oscillating nicely between low and high voltage, about 1,000 times each second. Add more voltage, and you will disrupt the balance that enables oscillation.
However, remember that the voltage on the gate of a PUT affects its threshold for conducting electricity. Maybe if we connect the output from Q1 to the gate of Q2, weโll be able to adjust that threshold automatically. The voltage still has to be in a range that the PUT finds acceptable, though. We can try various resistors to see which one works well.
This sounds like trial and errorโand thatโs exactly what it is. Doing the math to predict the behavior of a circuit like this is far too complicatedโfor me, anyway. I just looked at the manufacturerโs data sheet, saw the range of resistor values that the PUT would tolerate, and chose one that seemed as if it should work.
If you remove the LED and substitute R10 as shown in the breadboard diagram in Figure 2-113, youโll find that the fluctuating output from Q1 makes Q2 emit a two-tone signal. This is more interesting, but still not what I want. Iโm thinking that if I make the pulses out of Q1 less abrupt, the result could be better, and the way to smooth a pulsing output is to hook up another capacitor that will charge at the beginning of each pulse and then release its charge at the end of each pulse. This is the function of C3 in Figure 2-114, and it completes the circuit so that it makes a whooping sound almost like a โrealโ alarm.
If you donโt get any audio output, check your wiring very carefully. Itโs easy to make a wrong connection on the breadboard, especially between the three legs of each transistor. Use your meter, set to DC volts, to check that each section of the circuit has a positive voltage relative to the negative side of the power supply.
Figure 2-115 shows how your circuit should actually look on the breadboard.
Figure 2-113. R10 connects the slow-running oscillator at the top of the breadboard to the gate of Q2, the PUT in the middle of the breadboard. This modulates the audio oscillator, with addition of a smoothing capacitor.
Figure 2-114. This schematic shows the same circuit as in Figure 2-113:
R10: 10K
C3: 2.2 ฮผF
Figure 2-115. This photograph shows the complete alarm-audio circuit on a breadboard.
Tweaking it
Thereโs still a lot of room for creativity here:
Adjust the frequency of the sound: Use a smaller or larger capacitor instead of C2 (half or twice the current value). Use a smaller or larger value for R5.
Adjust the pulsing feature: Use a smaller or larger capacitor instead of C1 (half or twice the current value). Use a smaller or larger value for R2.
General performance adjustments: try a larger value for R1. Try smaller or larger values for C3.
Try running the circuit at 7.5 volts, 10 volts, and 12 volts.
The circuits in this book are suggested as only a starting point. You should always try to tweak them to make them your own. As long as you follow the general rule of protecting transistors and LEDs with resistors, and respecting their requirements for positive and negative voltage, youโre unlikely to burn them out. Of course, accidents will happenโI myself tend to be careless, and fried a couple of LEDs while working on this circuit, just because I connected them the wrong way around.
Step 5: Enhancements
A noisemaking circuit is just the output of an alarm. You would need several enhancements to make it useful:
1. Some kind of an intrusion sensor. Maybe magnetic switches for windows and doors?
2. A way to start the sound if any one of the sensors is triggered. The way this is usually done is to run a very small but constant current through all of the switches in series. If any one switch opens, or if the wire itself is broken, this interrupts the current, which starts the alarm. You could make this happen with a double-throw relay, keeping the relay energized all the time until the circuit is broken, at which point, the relay relaxes, opening one pair of contacts and closing the other pair, which can send power to the noisemaker.
The trouble is that a relay draws significant power while itโs energized, and it also tends to get hot. I want my alarm system to draw very little current while itโs in โreadyโ mode, so that it can be powered by a battery. Alarm systems should never depend entirely on AC house current.
If we donโt use a
Comments (0)