Connect with us

Arduino Shield Question

Discussion in 'Microcontrollers, Programming and IoT' started by brian22, Oct 1, 2013.

Scroll to continue with content
  1. brian22

    brian22

    40
    0
    Jul 19, 2013
    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();
    
    }
     
  2. KrisBlueNZ

    KrisBlueNZ Sadly passed away in 2015

    8,393
    1,271
    Nov 28, 2011
    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.
     
  3. sushiboxco

    sushiboxco

    3
    0
    Oct 24, 2013
    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();
    }
    
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-