Djuke - DIY Audio

build your own audio equipment

  • Increase font size
  • Default font size
  • Decrease font size
Outside EU customers: create an account and log in to see prices excluding VAT
Home Projecten Eindversterkers Pic-based Signal Detection

Pic-based Signal Detection

Afdrukken PDF
There are no translations available.

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:

  • GP0 and GP1 are used as input for the signal detection using the internal comparator.
  • GP2 is an output connected to the comparator led, to give visual feedback if signal is detected.
  • GP3 is an input for the DC detction circuit, which is normally high using R13. DC detection circuit pulls this pin low in case of DC detected.
  • GP4 is an output for the output relay of the amplifier, which is switched with Q2.
  • GP5 is an output for the power relay, which is switched with Q1. This pin is also connected to the power led for visual feedback.

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:

  • After powerup, the Comparator LED starts blinking for 4s to show that the microcontroller is functional
  • After detection of a line-level signal the power relay will be switched on. About 4s later, the output relay will be switched on to avoid the switch on thumb when the supply comes in.
  • After 15 minutes without signal, both the power and output relay will be switched off.
  • If a DC error is detected, the output relay will be switched off and the Comparator LED will be on continuously. The power relay will be switched off as an extra safety feature.

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!

Laatst aangepast op vrijdag, 21 september 2012 15:27  

Plaats reactie


Beveiligingscode
Vernieuwen

Waarom Djuke - Zelfbouwaudio?

  • Kwaliteitsontwerpen en producten
  • Snelle levering
  • Lage S/H, afhankelijk van gewicht
  • S/H onder 0.25kg: NL 2,- EU 4,- Wereld 6,-
  • Geen BTW voor klanten buiten EU

Important information!

There are no translations available.

From 1st January 2020, the Djuke webshop received a major upgrade and can now be found at: https://webshop.djuke.nl
Orders can only be handled from the new webshop. Not all products are yet transferred, so the old catalogus is left as a reference. Please let me know if you would like to order products that are not yet present in the new webshop.

 


Toon alle producten


Uitgebreid zoeken

Copyright © 2024 Djuke - Zelfbouw Audio. Alle rechten voorbehouden.
Joomla! is gratis open source software vrijgegeven onder de GNU/GPL Licentie.