UNO + WiFi shiedd + MP3 shield problem

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

UNO + WiFi shiedd + MP3 shield problem

Postby krizchong » Thu Jun 13, 2019 12:38 pm

I have project to do with WiFi and MP3, so I refer to
https://tutorial.cytron.io/2016/12/01/e ... nt-1882749

But I am using Cytron UNO, so I change line 20 from if(!mp3.begin(Serial2)) to if(!mp3.begin(8, 9)).

As I follow the tutorial, the APP can connect but once it send data, UNO side cannot received.

Then I start testing by commenting some codes, found out that if I commented MP3 related code, then UNO can received data.

Why? WiFi shield and MP3 shield cannot be used together on UNO?

Please advise.
krizchong
Greenhorn
 
Posts: 2
Joined: Thu Jun 13, 2019 12:31 pm

Re: UNO + WiFi shiedd + MP3 shield problem

Postby ober » Fri Jun 14, 2019 5:05 am

Well, I believe both the shield are using UART to communicate with Arduino right? Since you change the UART for MP3 shield to 8, 9, how about the UART for WiFi shield? Is it still using software UART?

There should be only 1 software UART at one time.

Mind elaborating more on the UART function in your code?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: UNO + WiFi shiedd + MP3 shield problem

Postby krizchong » Fri Jun 14, 2019 9:10 am

I just change the line 20 as mentioned, the rest is exactly same in the tutorial, means that the WiFi Shield is using pin 2 and 3.
krizchong
Greenhorn
 
Posts: 2
Joined: Thu Jun 13, 2019 12:31 pm

Re: UNO + WiFi shiedd + MP3 shield problem

Postby Idris » Fri Jun 14, 2019 4:41 pm

Hi krizchong,

I think, this is the limitation of Arduino Uno / Cytron Uno / Maker UNO where it can't handle more than 1 software serial. In this cas, you might need to use CT ARM same as shown in the tutorial.

Hope this help, thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang


Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 8 guests