Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Ideas For Design]
Low-Cost Microcontroller Acts As A Microphone Simulator

Contributing Author  |   ED Online ID #4951  |   November 20, 2000


If you have ever been involved in testing microphones while setting up a PA system, you have probably heard the phrase, “Testing, one, two, three” countless times. This idea describes a small, self-contained unit able to simulate spoken voice. It achieves this by driving a microphone input line with a sine wave at an appropriate level. Simply press the button and the module runs for five minutes. It then turns itself off using the PIC microcontroller’s “sleep” mode.

The sine wave is about 400 Hz, depending on the accuracy of the PIC’s internal oscillator frequency. In this application, this is not at all critical. If greater accuracy is required, an external crystal can be used. Users can adapt this circuit to almost any other output frequency (or waveform), or amount of on-time. They simply have to change the delay variables in the program or the constants in the lookup table.

The simple circuitry is based on a PIC16C505 microcontroller that functions as a sine-wave lookup table. This device maintains an appropriate delay between points and drives a simple R-2R 6-bit digital-to-analog converter (DAC). Use of standard 1% resistors produces less than half of an LSB error. The sine wave has 72 stored values (at 5° increments). Therefore, the waveform is very smooth, with harmonics starting at about 30 kHz.

A single capacitor (C2) serves as a low-pass filter, attenuating harmonics by more than 30 dB. Since the harmonics are initially about 30 dB below the fundamental amplitude, the output is very clean. An audio transformer is used to supply isolation and attenuation. It also provides additional attenuation of the harmonics.

Also provided is an output port (B0) that goes high during operation to drive a high-efficiency LED. This indicates that the device is on. The LED draws several milliamps, while the circuitry itself draws less than 500 mA when running. Without the LED, the circuit would provide thousands of five-minute operations on a small lithium (Li) battery. While in the “sleep” mode, the microcontroller draws less than 0.1 mA of current.

To prevent a turn-on “pop,” the chip produces a 100-ms ramp-up at turnon. It avoids a turn-off “pop” by using the same slow ramp-down at turn-off.

A prototype was constructed inside a short length of conduit that contained a male Cannon A3M-style connector with a small pushbutton in the back. The module is powered by a coin-sized Li battery that will work acceptably (with a reduced output) down to 2.5 V. C4 allows the unit to function properly with phantom power applied.

Editor's Note: The source code listing for this Idea For Design is no longer available.

See associated figure


Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (186 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (173 views today)
    3) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (90 views today)
    4) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (82 views today)
    5) Science Fiction Meets Science Fact In Today's Robot Research
    (76 views today)
    ALL TOP 20



    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Web Seminar
    Sponsored By:
    Title: Read Pacing: A Performance Enhancing Feature of PCI Express Gen 2 Switch Devices
    Speakers: 
    Date: 07/01/08
    Register: 

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources