Saturday 6 May 2017

audio - PWM signal to SIM800 MIC noise reduction


I have an audio signal made by PIC microcontroller using 20KHz PWM (It passes through a low-pass filter). It is very clear on an 8ohm speaker. But when I connect the output to the MIC inputs of SIM800 module, It has a very bad quality on a phone call and can not understood at all. I connected audio output directly and through a 100nF ceramic capacitor, but in both cases the audio was very bad. How should I connect audio output to MIC input of SIM800.


schematic


simulate this circuit – Schematic created using CircuitLab
I already have seen that output of ISDxxxx (audio recorder and playback IC) is connected to MICP pin of a SIM900 just through a capacitor in a firewall system and the audio quality was very good.



Answer



The SIM800 has a microphone input. The signal you are getting from the microcontroller will be at too high a level for that input.


The SIM800 expects an electret microphone, so maybe 100mV signal level.


You need to lower the output level from the PIC-PWM.


The following circuit provides a lower cutoff (3KHz instead of the 4.8kHz from your circuit) and about 20dB of attenuation.



Change the attenuation by changing R3. A higher value gives less attenuation (louder signal) while a smaller value gives more attenuation (less loud.)


Your original circuit has its cut off too high, and provides a much too strong signal for the input of the SIM800.


The values for R2 and R3 are approximations. You may need to lower R2 and increase R3.


If the volume on the receive side is too low, then you need to increase R3. If it is too loud (and/or distorted) then you need to make R3 smaller.


If you make R2 too small, it will begin to change the cutoff of the filter. Try to keep it as high above R1 as possible.


schematic


simulate this circuit – Schematic created using CircuitLab


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...