DTMF Control circuit

Not rated 8,144

Circuit Image

Control monitoring equipment at a TV repeater site is designed to accept commands sent as DTMF tones over the repeater's audio channel. It is capable of switching either AV signals or power supply feeds with currents up to 1 Amp. The design necessitated the use of relays, specifically the inexpensive and readily available BT53 type. Although only one relay was required for switching, the second pole was utilized to drive a monitoring LED, which illuminates when the relay is energized. The wiring can be easily modified to allow the use of both poles if the LED feature is not needed. The unit must coexist with other MF controlled equipment, particularly the single MF tone pair commands used by GB3XG and the sequence of four tones used by GB3ZZ. The operating system for GB3ZZ was designed with a gap in the valid command sequence for future developments, allowing space for commands utilized by this unit. The range of MF commands available is from *50# to *59#, although this can be modified by changing the source code and re-assembling the PIC program. However, GB3XG uses single tone commands, which could lead to unwanted actions if the command sequence is not handled correctly. To prevent this, the audio feed to the repeater is disconnected upon receiving the '*' and reconnected after the '#' is received, with one of the relays performing this function. The audio is looped through the board and interrupted during the command sequence. Other relays feature accessible changeover switch contacts for general-purpose use. To enhance versatility, the relays operate in various configurations: some are selected as one of four, some are turned on with one code and off with another, and one relay has a timed period before switching off. The industry-standard 8870 chip decodes the audio tones into a binary number, filtering the audio and confirming the presence of both tones for at least 40ms before signaling that a genuine MF signal has been received. The binary number and strobe signals are sent to the 16C84 device, which reads the signals through its RA (port A) pins. It checks for the '*' digit, disconnects the downstream audio by activating relay 1, and starts a five-second timeout counter. If the subsequent digits fall within the 50 to 59 range and are received within five seconds, it drives the corresponding RB (port B) pin high or low to operate one of the relays. If the timeout period elapses before all digits are received, it purges any received digits and restores the audio. This technique minimizes the risk of inadvertently completing an incomplete sequence later. The RB pins can directly drive the relay coils, but to alleviate the strain on them, a ULN2803 driver IC is employed, which includes clamp diodes on each output, eliminating the need for additional diodes across each relay coil to suppress back voltage during de-energization. The remainder of the circuit includes LEDs and current-limiting resistors to indicate active relays, which can be omitted if desired. The unit operates on a 12V supply but can be modified to function on 5V by replacing the relays with those rated for 5V coils. In this case, diode D1 can be omitted, and resistor R12 replaced with a link.

The control monitoring equipment operates by interpreting DTMF tones transmitted over the audio channel of the repeater. The design integrates a relay-based switching mechanism to manage both audio and power supply feeds effectively. The use of BT53 relays allows for reliable operation within the specified current limits. The monitoring LED serves as a visual indicator of relay status, enhancing operational feedback.

The 8870 tone decoder chip plays a critical role in ensuring the accuracy of command recognition. Its decision-making capability to confirm the presence of both tones for a specified duration minimizes false positives, which is essential for maintaining the integrity of the control system. The integration of the 16C84 microcontroller facilitates the processing of decoded signals, enabling precise control over the relays based on the received command sequences.

The design's consideration for compatibility with existing MF control systems, such as GB3XG and GB3ZZ, demonstrates a forward-thinking approach, allowing for future expansion and adaptability. The timeout mechanism further enhances system reliability by preventing unintended relay activation due to incomplete command sequences.

The inclusion of the ULN2803 driver IC not only simplifies the circuit by reducing the need for additional components but also enhances the overall robustness of the design by ensuring that the relay coils are adequately driven without overloading the microcontroller's output pins.

In summary, this control monitoring equipment represents a versatile and efficient solution for managing audio and power supply feeds at a TV repeater site, with features that ensure compatibility, reliability, and ease of modification for future enhancements.Control monitoring equipment at a TV repeater site. It had to accept commands sent as DTMF tones over the repeaters audio channel and be able to switch either AV signals or power supply feeds at currents up to 1 Amp. The switching requirements left no option but to use relays and the cheap and easily available BT53 ” style was chosen.

As these are two pole relays but only one was called for, the other was put to use to drive a monitoring LED. The LED is illuminated when the relay is energised. It is simple to modify the the wiring to allow both poles to be used if the LED facility isn ’t needed. The design specification stated that the unit should co-exist with other MF controlled equipment, specifically, the single MF tone pair commands that GB3XG used and the sequence of four tones that GB3ZZ used.

When I wrote the operating system for GB3ZZ over a decade ago, I deliberately left a gap in the valid command sequence "for future developments ”. In hindsight, this was a good idea as it left space for commands this unit could use. The range of MF commands available is *50# through to *59# although this can easily be changed by modifying the source code and re-assembling the PIC program.

Unfortunately, GB3XG uses single tone commands so for example, keying *52# would be seen as four individual instructions that could have left the repeater performing unwanted actions. To overcome this problem, the audio feed to the repeater had to be disconnected as soon as the * ” was seen and then reconnected after the # ” was received.

One of the relays is used for this purpose. The audio is looped through the board and interrupted for the duration of the command sequence. All the other relays have accessible changeover switch contacts (note: SK6 and SK7 have reversed pin-outs) and are available for general-purpose use. To make the unit as versatile as possible, the relays operate in different ways. Some are selected as one of four ”, some are turned on with one code and off with another and one relay has a timed period before switching itself off.

The industry standard 8870 chip performs the decoding of audio tones to a binary number. The chip not only filters the audio but also uses a clever ‘decision ’ process to check that both tones are present for at least 40mS. When it has decided that a genuine MF signal has been received it decodes it to a binary number and signals it has done so by raising a tone detected ” (strobe) pin.

The binary number and strobe signals are fed to the 16C84 device, which reads the signals in through its RA (port A) pins. It checks to see if the tone corresponded with the * ” digit and if so, it disconnects the downstream audio by operating relay 1 then starts a five second time-out counter.

If the following digits are in the 50 to 59 range and received within the five seconds, it drives the appropriate RB (port B) pin high or low to operate one of the relays. If the 5-second period runs out before the remaining digits have been received, it purges any that did get through and turns the audio back on again.

This technique lessens the chance of an incomplete sequence being finished inadvertently at a later time. The RB pins are capable of driving the relay coils directly but would be pushed close to their limits to do so.

To ease the strain on them, a ULN2803 driver IC is used which also has the benefit of having clamp diodes on each output. This eliminates the need to add eight diodes, one across each of the relay coils to snub any back voltage as the relay de-energises.

The remainder of the circuit consists of LEDs and current limiting resistors to show which relays are active. These can be omitted if desired. The unit runs on a 12V supply but can be modified to run on 5V if the relays are replaced with ones having a 5V coil rating.

The D1 can then be omitted and R12 replaced with a link. I have not 🔗 External reference