Maker Pro
Maker Pro

Arduino Shield Question

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
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.
 
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