Pic-based Signal Detection

Thursday, 19 May 2011 16:09 Menno de Graaf
Print

Signal detection prototype

Products related to this project are for sale. It is available as pcb+uc, a kit with all components or completely built and tested

Introduction

This project describes a small circuit that can be considered as an automatic on/off switch for power amplifiers. A line-level signal is monitored and a power amplifier is switched on, when a signal is detected. When no signal is detected for 20 minutes, the power amplifier is automatically switched off again. The circuit was intended as an extension to use my Mosfet Power Amplifier in an active speaker, which is not supposed to stay on 24 hours a day and is inconvenient to switch on/off with a button. The project can of course be used to switch other equipment other than power amplifiers as well.

Optionally, a DC detection circuit can be incorporated to switch an output (or supply) relay in case of DC voltage on the speaker output. Delayed switch on of the output relay is available to prevent the switch on thumb.

Schematic

The schematic is shown below. The heart of the circuit is a PIC12F675 microcontroller, using the internal oscillator 6 pins can be freely used:

The bottom left part consists of a conventional supply, with an unregulated 12V for the relays and a regulated 5V for the microcontroller. Note that the unregulated supply can depend quite strongly on the transformer load, so resistor R1 and R12 can be used to limit the current through the relays.

 

Signal setection schematic

The components R2, R4, R5, R6, R11 and C7 are used to generate two stable voltages for the comparator. The voltage difference is set by potmeter R11, which sets the sensitivity. With the current values, sensitivity can be set between 0 and 250mV, which should be fine for most applications. Capacitor C5 prevents high frequency disturbances from triggering the circuit. Using C6 and R7 the line level signal is added to the comparator input. The input impedance of the comparator in combination with resistor R7 make sure that the circuit effectively has no influence on the line level signal.

Software functionality

Most of the functionality is implemented in software:

Prototype

A first prototype is ready and working. Pcb's and kits are available. Let me know your ideas/comments by adding a comment below!

Last Updated on Friday, 21 September 2012 15:27