Maker Pro
Maker Pro

Arduino Shield Question

brian22

Jul 19, 2013
40
Joined
Jul 19, 2013
Messages
40
hi how to use multiple shields in Arduino?

if i have two..
example, GSM and Ethernet can this work simultaneously in void setup?

Code:
void setup(){

Serial.begin(9600);
	if (gsm.begin(2400)){
		Serial.println("\nstatus=READY");
		started=true;
	}
Ethernet.begin(mac, ip);
server.begin();

}
 

KrisBlueNZ

Sadly passed away in 2015
Nov 28, 2011
8,393
Joined
Nov 28, 2011
Messages
8,393
You're more likely to get an answer if you ask this in an Arduino-specific forum.

Several Electronics Point members use Arduino, but if you go to an Arduino forum, _everyone_ there is an Arduino user.

I just Googled Arduino forum and found six different sites on the first page of results.
 

sushiboxco

Oct 24, 2013
3
Joined
Oct 24, 2013
Messages
3
I would suggest trying something like this instead (not tested):

Code:
void setup() {
    Ethernet.begin(mac, ip);
    // Give the Ethernet shield some time to start up
    delay(1000);

    // Start the Serial library
    Serial.begin(9600);
    delay(1000);

    if (gsm.begin(2400)){
        Serial.println("\nstatus=READY");
	started=true;
    }

    server.begin();
}
 
Top