Silicon ChipSimple Waveform Generator - July 1997 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Backing up is not hard to do
  4. Feature: Electric Vehicles; Where Are They Now? by Sammy Isreb
  5. Review: Philips 48-Inch Rear Projection TV by Leo Simpson
  6. Project: Infrared Remote Volume Control by Leo Simpson
  7. Back Issues
  8. Order Form
  9. Project: A Flexible Interface Card For PCs by Rick Walters
  10. Project: Points Controller For Model Railways by Rick Walters
  11. Serviceman's Log: The neighbour who made things worse by The TV Serviceman
  12. Project: Simple Waveform Generator by John Clarke
  13. Book Store
  14. Project: Colour TV Pattern Generator; Pt.2 by John Clarke
  15. Feature: Computer Bits by Jason Cole
  16. Feature: How Holden's Electronic Control Unit Works; Pt.1 by Julian Edgar
  17. Product Showcase
  18. Feature: Radio Control by Bob Young
  19. Vintage Radio: Revamping an old Radiola by John Hill
  20. Notes & Errata: Multimedia Amplifier, October 1996
  21. Market Centre
  22. Advertising Index
  23. Outer Back Cover

This is only a preview of the July 1997 issue of Silicon Chip.

You can view 30 of the 96 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Items relevant to "A Flexible Interface Card For PCs":
  • BASIC source code for the Flexible Interface Card for PCs (Software, Free)
  • Flexible Interface Card for PCs PCB pattern (PDF download) [07107971] (Free)
Items relevant to "Points Controller For Model Railways":
  • Points Controller PCB pattern (PDF download) [09205971] (Free)
Items relevant to "Simple Waveform Generator":
  • Simple Waveform Generator PCB pattern (PDF download) [01307971] (Free)
Items relevant to "Colour TV Pattern Generator; Pt.2":
  • Colour TV Pattern Generator DOS software (Free)
  • Colour TV Pattern Generator PCB patterns (PDF download) [02305971/2] (Free)
Articles in this series:
  • Colour TV Pattern Generator; Pt.1 (June 1997)
  • Colour TV Pattern Generator; Pt.1 (June 1997)
  • Colour TV Pattern Generator; Pt.2 (July 1997)
  • Colour TV Pattern Generator; Pt.2 (July 1997)
Articles in this series:
  • Computer Bits (July 1989)
  • Computer Bits (July 1989)
  • Computer Bits (August 1989)
  • Computer Bits (August 1989)
  • Computer Bits (September 1989)
  • Computer Bits (September 1989)
  • Computer Bits (October 1989)
  • Computer Bits (October 1989)
  • Computer Bits (November 1989)
  • Computer Bits (November 1989)
  • Computer Bits (January 1990)
  • Computer Bits (January 1990)
  • Computer Bits (April 1990)
  • Computer Bits (April 1990)
  • Computer Bits (October 1990)
  • Computer Bits (October 1990)
  • Computer Bits (November 1990)
  • Computer Bits (November 1990)
  • Computer Bits (December 1990)
  • Computer Bits (December 1990)
  • Computer Bits (January 1991)
  • Computer Bits (January 1991)
  • Computer Bits (February 1991)
  • Computer Bits (February 1991)
  • Computer Bits (March 1991)
  • Computer Bits (March 1991)
  • Computer Bits (April 1991)
  • Computer Bits (April 1991)
  • Computer Bits (May 1991)
  • Computer Bits (May 1991)
  • Computer Bits (June 1991)
  • Computer Bits (June 1991)
  • Computer Bits (July 1991)
  • Computer Bits (July 1991)
  • Computer Bits (August 1991)
  • Computer Bits (August 1991)
  • Computer Bits (September 1991)
  • Computer Bits (September 1991)
  • Computer Bits (October 1991)
  • Computer Bits (October 1991)
  • Computer Bits (November 1991)
  • Computer Bits (November 1991)
  • Computer Bits (December 1991)
  • Computer Bits (December 1991)
  • Computer Bits (January 1992)
  • Computer Bits (January 1992)
  • Computer Bits (February 1992)
  • Computer Bits (February 1992)
  • Computer Bits (March 1992)
  • Computer Bits (March 1992)
  • Computer Bits (May 1992)
  • Computer Bits (May 1992)
  • Computer Bits (June 1992)
  • Computer Bits (June 1992)
  • Computer Bits (July 1992)
  • Computer Bits (July 1992)
  • Computer Bits (September 1992)
  • Computer Bits (September 1992)
  • Computer Bits (October 1992)
  • Computer Bits (October 1992)
  • Computer Bits (November 1992)
  • Computer Bits (November 1992)
  • Computer Bits (December 1992)
  • Computer Bits (December 1992)
  • Computer Bits (February 1993)
  • Computer Bits (February 1993)
  • Computer Bits (April 1993)
  • Computer Bits (April 1993)
  • Computer Bits (May 1993)
  • Computer Bits (May 1993)
  • Computer Bits (June 1993)
  • Computer Bits (June 1993)
  • Computer Bits (October 1993)
  • Computer Bits (October 1993)
  • Computer Bits (March 1994)
  • Computer Bits (March 1994)
  • Computer Bits (May 1994)
  • Computer Bits (May 1994)
  • Computer Bits (June 1994)
  • Computer Bits (June 1994)
  • Computer Bits (July 1994)
  • Computer Bits (July 1994)
  • Computer Bits (October 1994)
  • Computer Bits (October 1994)
  • Computer Bits (November 1994)
  • Computer Bits (November 1994)
  • Computer Bits (December 1994)
  • Computer Bits (December 1994)
  • Computer Bits (January 1995)
  • Computer Bits (January 1995)
  • Computer Bits (February 1995)
  • Computer Bits (February 1995)
  • Computer Bits (March 1995)
  • Computer Bits (March 1995)
  • Computer Bits (April 1995)
  • Computer Bits (April 1995)
  • CMOS Memory Settings - What To Do When The Battery Goes Flat (May 1995)
  • CMOS Memory Settings - What To Do When The Battery Goes Flat (May 1995)
  • Computer Bits (July 1995)
  • Computer Bits (July 1995)
  • Computer Bits (September 1995)
  • Computer Bits (September 1995)
  • Computer Bits: Connecting To The Internet With WIndows 95 (October 1995)
  • Computer Bits: Connecting To The Internet With WIndows 95 (October 1995)
  • Computer Bits (December 1995)
  • Computer Bits (December 1995)
  • Computer Bits (January 1996)
  • Computer Bits (January 1996)
  • Computer Bits (February 1996)
  • Computer Bits (February 1996)
  • Computer Bits (March 1996)
  • Computer Bits (March 1996)
  • Computer Bits (May 1996)
  • Computer Bits (May 1996)
  • Computer Bits (June 1996)
  • Computer Bits (June 1996)
  • Computer Bits (July 1996)
  • Computer Bits (July 1996)
  • Computer Bits (August 1996)
  • Computer Bits (August 1996)
  • Computer Bits (January 1997)
  • Computer Bits (January 1997)
  • Computer Bits (April 1997)
  • Computer Bits (April 1997)
  • Windows 95: The Hardware That's Required (May 1997)
  • Windows 95: The Hardware That's Required (May 1997)
  • Turning Up Your Hard Disc Drive (June 1997)
  • Turning Up Your Hard Disc Drive (June 1997)
  • Computer Bits (July 1997)
  • Computer Bits (July 1997)
  • Computer Bits: The Ins & Outs Of Sound Cards (August 1997)
  • Computer Bits: The Ins & Outs Of Sound Cards (August 1997)
  • Computer Bits (September 1997)
  • Computer Bits (September 1997)
  • Computer Bits (October 1997)
  • Computer Bits (October 1997)
  • Computer Bits (November 1997)
  • Computer Bits (November 1997)
  • Computer Bits (April 1998)
  • Computer Bits (April 1998)
  • Computer Bits (June 1998)
  • Computer Bits (June 1998)
  • Computer Bits (July 1998)
  • Computer Bits (July 1998)
  • Computer Bits (November 1998)
  • Computer Bits (November 1998)
  • Computer Bits (December 1998)
  • Computer Bits (December 1998)
  • Control Your World Using Linux (July 2011)
  • Control Your World Using Linux (July 2011)
Articles in this series:
  • How Holden's Electronic Control Unit Works; Pt.1 (July 1997)
  • How Holden's Electronic Control Unit Works; Pt.1 (July 1997)
  • How Holden's Electronic Control Unit Works; Pt.2 (August 1997)
  • How Holden's Electronic Control Unit Works; Pt.2 (August 1997)
Articles in this series:
  • Radio Control (November 1996)
  • Radio Control (November 1996)
  • Radio Control (February 1997)
  • Radio Control (February 1997)
  • Radio Control (March 1997)
  • Radio Control (March 1997)
  • Radio Control (May 1997)
  • Radio Control (May 1997)
  • Radio Control (June 1997)
  • Radio Control (June 1997)
  • Radio Control (July 1997)
  • Radio Control (July 1997)
  • Radio Control (November 1997)
  • Radio Control (November 1997)
  • Radio Control (December 1997)
  • Radio Control (December 1997)
  • Autopilots For Radio-Controlled Model Aircraft (April 1999)
  • Autopilots For Radio-Controlled Model Aircraft (April 1999)
  • Model Plane Flies The Atlantic (May 1999)
  • Model Plane Flies The Atlantic (May 1999)
  • Tiny, Tiny Spy Planes (July 1999)
  • Tiny, Tiny Spy Planes (July 1999)
  • 2.4GHz DSS Radio Control Systems (February 2009)
  • 2.4GHz DSS Radio Control Systems (February 2009)
  • Unmanned Aerial Vehicles: An Australian Perspective (June 2010)
  • Unmanned Aerial Vehicles: An Australian Perspective (June 2010)
  • RPAs: Designing, Building & Using Them For Business (August 2012)
  • Flying The Parrot AR Drone 2 Quadcopter (August 2012)
  • Multi-Rotor Helicopters (August 2012)
  • Multi-Rotor Helicopters (August 2012)
  • Flying The Parrot AR Drone 2 Quadcopter (August 2012)
  • RPAs: Designing, Building & Using Them For Business (August 2012)
  • Electric Remotely Piloted Aircraft . . . With Wings (October 2012)
  • Electric Remotely Piloted Aircraft . . . With Wings (October 2012)

Purchase a printed copy of this issue for $10.00.

Simple Waveform Generator This compact unit produces both square and triangle waves over the frequency range from 100Hz to 20kHz. Build it and use it to test audio amplifiers, filters, tone decoders and digi­tal circuits. By JOHN CLARKE A SIMPLE WAVEFORM generator is always useful to have on your workbench. It can be used as a signal source for all sorts of circuits, to test that they are operating correctly. A wave­form generator, even a simple unit such as that described here, is particularly useful for troubleshooting or when building circuits from scratch. This unit lets you select between triangle and square waves and you can vary the frequency output from about 100Hz to 20kHz using a single potentiometer. A second potentiome­ ter lets you vary the output level from 0-10.5V p-p for square waves, or from 0-4V p-p for triangle waves. All the parts, including the two pots, are mounted on a compact PC board, so that the assembly is really easy. But first, let’s find out how it works. Circuit details Fig.1 shows the circuit details. As can be seen, it’s based on the common 42  Silicon Chip 555 timer IC which is wired as an astable oscilla­tor. The timing components are connected to pins 6 & 2 of the IC, with the .01µF capacitor being alternately charged and discharged via VR1 (the frequency control) and its series 2.2kΩ resistor. The circuit works like this. Initially, when power is first applied, the .01µF timing capacitor is discharged and IC1’s pin 3 output is high. The .01µF capacitor now charges via the 2.2kΩ resistor and VR1 until it reaches twothirds the supply voltage (ie, 2/3Vcc). At this point, an internal comparator connected to pin 6 (the threshold input) of IC1 trips and this switches pin 3 low. The capacitor now discharges via VR1 and the series 2.2kΩ resistor until it reaches 1/3Vcc (the lower threshold). This point is detected by the trigger input (pin 2), which switches pin 3 high again. Thus, the cycle repeats indefinitely and pin 3 of IC1 alternately switches high and low while ever power is applied. Because it controls the charge/discharge times for the timing capacitor, VR1 effectively sets the frequency of oscillation. The nominal frequency (f) is given by the formula: f = 0.7/R1.C1 where R1 is timing resistance and C1 is the timing capacitance. In this case, R1 = VR1 + 2.2kΩ and C1 = .01µF. These values give a calculated frequency range of 200Hz to 45kHz. However, these figures don’t apply in practice because the output of IC1 does not go fully high. An 820Ω pullup resistor is used to pull pin 3 higher than it would otherwise go to give a more symmetrical waveform. However, the resulting frequency range of 100Hz to 20kHz is still less than calculated. The waveform at pin 3 is a nominal square wave, as shown in Figs.2 & 3. These show the square wave output at 19.7kHz and 122Hz, respectively. The duty cycle is not exactly 1:1 because of Fig.1: the circuit uses a 555 timer IC which is wired as an astable oscilla­tor. Transistor Q1 buffers the triangle output. pin 3 not going fully high but is near enough for our purposes. The waveform on pins 2 & 6 is triangle shaped since it represents the charging cycles of the timing capacitor. This output has a fairly high impedance, particularly at low frequen­ cies when VR1 is above 100kΩ. Transistor Q1 is used to buffer the triangle waveform. This transistor is wired as an emitter follower, which means that the signal on the emitter follows the signal applied to the base. Fig.4 shows the appearance of the triangle waveform when the frequency is about 5.4kHz. Switch S2 selects between the square wave at pin 3 of IC1 and the triangle waveform at the emitter of Q1. From there, the signal is fed to level control VR2 and then AC-coupled to the output termi­ nals via a 10µF capacitor. This capacitor ensures that the output signal has no DC component, while the associated 10kΩ resistor ensures that the output is always load­ed. Power for the circuit can be derived from virtually any supply capable of providing between 5V and 15V DC at about 20mA. The most convenient source for this would be a plugpack supply. Diode D1 provides reverse polarity connection protection, while LED1 is the power indicator. A 100µF capacitor decouples the supply to the circuit. Construction All the parts for the Waveform Generator are installed on a PC board coded 01307971. Fig.5 shows the wiring details. Begin the assembly by installing PC stakes at all external wiring points and at the connection points for the FEATURES Output waveform ................................................... Triangle or square wave Frequency range ..................................................100Hz to 20kHz nominal Square wave amplitude ....................................... 0-10.5V p-p (12V supply) Triangle wave output ................................................ 0-4V p-p (12V supply) Power supply ............................................................................... 5-15V DC Protection .......................................................... Reverse polarity protected Output impedance .............................................................................. <1kΩ Fig.2: this is the waveform that appears at pin 3 of IC1 when the output frequency is 19.69kHz. Fig.3: the waveform at pin 3 of IC1 when the output freq­uency is 122Hz. The duty cycle is not exactly 1:1. July 1997  43 Fig.4: this scope shot shows the triangle waveform at a frequency of about 5.4kHz. Note that this waveform was captured at the emitter of buffer transistor Q1. PARTS LIST 1 PC board, code 01307971, 60 x 105mm 1 500kΩ linear pot (VR1) 1 1kΩ linear pot (VR2) 2 knobs 2 DPDT slider switches (S1,S2) 10 PC stakes 1 20mm length of 0.8mm tinned copper wire Semiconductors 1 555 timer (IC1) 1 BC548 NPN transistor (Q1) 1 1N4004 1A diode (D1) 1 5mm red LED (LED1) Capacitors 1 100µF 16VW PC electrolytic 1 10µF 16VW PC electrolytic 1 .01µF MKT polyester Resistors (0.25W, 1%) 2 10kΩ 1 820Ω 2 2.2kΩ Fig.5: install the parts on the PC board as shown in this diagram. Make sure that all polarised parts are correctly orientated. rectly on the PC board, while the two pots are mounted by soldering them to their PC stakes. Cut the pot shafts to length before installing them and note that VR1 is a 500kΩ pot, while VR2 is a 1kΩ pot. Finally, complete the assembly by fitting rubber feet to the corners of the PC board. Testing Fig.6: this is the full-size etching pattern for the PC board. pots. Once this has been done, you can install D1, the resistors and the wire link. The IC and the transistor can go in next, followed by the capacitors and the LED. Take care to ensure that all polarised parts are correctly orientated. It’s 44  Silicon Chip quite easy to identify the LED leads, as the anode lead is the longer of the two. In addition, you will find a small flat area on the flange that runs around the bottom of the LED. This flange is always adjacent to the cathode lead. The two switches are mounted di- To test the unit, connect the output terminals to an audio amplifier, set the level control fully anticlockwise and apply power. If everything is working correctly, you should hear a tone in the amplifier’s loudspeaker when the level control is ad­vanced. Check that the frequency of this tone can be varied using the frequency control –this should range from 200Hz to beyond the limit of audibility. Alternatively, you can check that the unit is working properly by using an oscilloscope to monitor the output signal. If it doesn’t work correctly, check the board for solder bridges and missing solder joints. You should also check the supply rail to IC1 and to Q1’s collector. If the unit gives square waves but there is no output when triangle waves are selected, check the SC circuit around Q1.