Forum >DFR0299 mp3 player: play track in different conditions
DFR0299 mp3 player: play track in different conditions

I am trying to set up the module to play specific track in different conditions ( if command). On my project i am using arduino mega with Ethernet shield, LCD, temperature DHT22 sensor, light sensor and so on. I try to put (mp3_play (2);) command on (if) put repeats the song every 2 seconds.
for example:
if (manin >=85)//manual
{
lcd.setCursor(0, 2);
lcd.print("Mode: Manual");
}
if (manin <85 )//auto
{
lcd.setCursor(0, 2);
lcd.print("Mode: Auto ");
mp3_play (2);
}
At the beginning i have 2000ms delay for the temp sensor and LCD refresh.
I want this code to play continuous on "auto" and stop to "manual".
for example:
if (manin >=85)//manual
{
lcd.setCursor(0, 2);
lcd.print("Mode: Manual");
}
if (manin <85 )//auto
{
lcd.setCursor(0, 2);
lcd.print("Mode: Auto ");
mp3_play (2);
}
At the beginning i have 2000ms delay for the temp sensor and LCD refresh.
I want this code to play continuous on "auto" and stop to "manual".
2015-10-21 23:25:39 It proved that the variable_manin is always less than 85. Sorry I don't know what's the purpose of the "manin", should it be always less than 85?
Btw, plz add a delay(20) after mp3_play (2) since the module needs time to receive the command.
Leff
Btw, plz add a delay(20) after mp3_play (2) since the module needs time to receive the command.

2015-10-21 04:37:27 Hello,
Yes the problem is the coding.
I try several things but it still repeating the one song every 2sec.
please can you help me??
Masouras Michalis
Yes the problem is the coding.
I try several things but it still repeating the one song every 2sec.
please can you help me??

2015-10-21 00:52:59 Hi Masouras,
Sorry for the late reply!
How is it going?
How can I help you? is it a problem about coding?
Leff
Sorry for the late reply!
How is it going?
How can I help you? is it a problem about coding?
