1
\$\begingroup\$

I have an audio signal made by a 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 be understood at all. I connected the 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 the MIC input of a 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.

\$\endgroup\$
3
  • \$\begingroup\$ What do you mean when you say the quality is good or bad? \$\endgroup\$
    – Matt Young
    Aug 21, 2016 at 14:23
  • \$\begingroup\$ Have you calculated the cutoff frequency of you low-pass filter? Remember that your use of a speaker will also change the frequency response characteristics, so that is not a good judge of the audio quality. \$\endgroup\$ Aug 21, 2016 at 14:27
  • \$\begingroup\$ PWM outputs are very nasty with the spurious components at the frame rate and its multiples stronger than the desired signal. These could easily wreak havoc with an ADC and so will require a lot more filtering than one of those analog EEPROM chips. But even with a clean output, keep in mind that GSM voice coding is designed for speech, not artificial sounds and can cause problems with things like DTMF tones (so those are typically sent as data to be be synthesized into tones on the far end) \$\endgroup\$ Aug 21, 2016 at 15:46

1 Answer 1

3
\$\begingroup\$

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

\$\endgroup\$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.