Hearing noise when combining DFPlayer and SIM800l

Dear Arduino friends,

For some time now I have been trying to make a 'Smart Birdhouse' for in the garden. For example, you can send a Text message to the birdhouse you'll get a reply with temperature etc.

But I want to add a new feature to the Birdhouse: if you call it, the current state will be read.

So that's why I bought myself a DFPlayer mini to play audio files, my idea was to connect the output of the MP3 player to the MIC input of the GSM Module. So this is exactly what I tried, with the DFPlayer_mini library implementing the MP3 code was a breeze. But when I called the GSM module, it accepted the phone call but I didn't hear much.

Because there is a little LED on the MP3 module you can see if it is playing or not. When this LED went on, there was a lot of noise in the phone call, I tried connecting the output to a speaker and I heard the same noise, it seems the GSM module isn't the problem here.....
I tested both modules separately and they work perfectly. But when i connect them together the noise comes back again

Plz help me

Some extra info:
I connected both the GSM module and MP3 module via Software Serial
The whole birdhouse is being powerd by a 12v Lead Acid battery, and stepping the voltage down using a buck converter
I'm using Arduino Nano
If you need more info, just ask :slight_smile:

Hi, maybe there are some obstacles between DFP and GSM. Between the microphone GSM and the speaker DFP.
There may also be a problem with SerialSoftware. It seems the arduino can only support 1 UART at a time. But I'm not sure about that.

I also do a project using gsm and dfp. You can send the code, maybe I will have some more tips.

vladar:
Hi, maybe there are some obstacles between DFP and GSM. Between the microphone GSM and the speaker DFP.

Not exactly sure what you mean with 'obstacle'.

vladar:
It seems the arduino can only support 1 UART at a time. But I'm not sure about that.

Yes, that is true because it fixed a lot of problems while running the sktech, to fix this I used the command : SS.end() to stop the communication to the GSM module than I can talk to the MP3 module without having any interference from the other serial connection. After I finished 'the MP3 serial' part, I end the connection to the MP3 and start the serial connection to the GSM module again.

vladar:
I also do a project using gsm and dfp.

Nice, does yours work?

vladar:
You can send the code, maybe I will have some more tips.

My code is attached.
If something is unclear please let me know :slight_smile:

Thanks for your quick and clear reply.

SMART_BIRDHOUSE.zip (4.79 KB)

Сode looks perfect. I do not see anything wrong with it. But I'm not an expert)

Maybe I didn't quite understand you. Does dfp make the right sound during the process? And gsm gives it wrong on the phone.

Or DFP make first this bad noise. And gsm give it to you?
which module works bad?

if dfp makes a bad sound then most likely the problems are mechanical.

Also try playing some sound with dfp when they work together through the speaker.

Or try to voice the words yourself. And will gsm receive them ?

I do not see other options. Sorry. I tried.

about my project. Maybe you can help me a little. it is much simpler.

security system with voice control.
You can turn off the security using the keyboard, using the voice.
DFP connected to 0 and 1 pins on UNO.
Voice module up to 2 and 3 pins.
gsm 11 12

The meaning of the function is that when the alarm is triggered, an SMS should come.
My code is awful I know. I'm just a beginner.
However when I use the sms function. nothing happens.
If you can - please look. I tried all the options.

Thanks. And again, I'm sorry I couldn't help you. And sorry for my english level too.

use1.ino (11.7 KB)

vladar:
Or DFP make first this bad noise. And gsm give it to you?
which module works bad?

if dfp makes a bad sound then most likely the problems are mechanical.

Yup, that is the case, but the strange thing is: when i use them separately they both work just fine

vladar:
If you can - please look. I tried all the options.

of course, I will take a look and attach it

Differences:

I made tabs
Used a bit of my working code in your sketch

I haven't checked if it works

vladar:
And sorry for my english level too.

Het zou misschien wel eens kunnen dat we in hetzelfde landje wonen :wink:

Sketch.zip (4.16 KB)