SIM800 module with UDOO NEO

Discussion in 'General Discussion' started by Sarth, Nov 14, 2016.

  1. Sarth

    Sarth New Member

    Joined:
    Nov 3, 2016
    Messages:
    5
    Likes Received:
    0
    Hello everyone!
    Has anybody tried to interface a SIM800 or SIM900 module to the M4 part of the UDOO NEO? I need some help!
    Thanks in advance.
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    We have no experience with these modules, sorry.
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I neither have experience with these GSM modules but it looks like simple serial devices if you are talking about something like: http://www.ayomaonline.com/programming/quickstart-sim800-sim800l-with-arduino/
    These serial devices are easy to connect to the Neo Arduino as long as you connect them to the Serial0 device (pin 0 and 1).
    Do not use the SoftwareSerial library, it is not supported. Also other libraries that make use of Softwareserial will not work.
    So the first example arduino sketch as given in the blog link will not work, you have to strip all SoftwareSerial references out of it:
    Code:
    //SIM800 TX is connected to Arduino D0
    
    //SIM800 RX is connected to Arduino D1
    
    void setup() {
      //Begin serial comunication with Arduino and Arduino IDE (Serial Monitor or /dev/ttyMCC)
      Serial.begin(115200);
      delay(100);
     
      //Being serial communication with Arduino and SIM800
      Serial0.begin(9600);
      delay(1000);
     
      Serial.println("Setup Complete!");
    }
     
    void loop() {
      //Read SIM800 output (if available) and print it in Arduino IDE Serial Monitor
      if(Serial0.available()){
        Serial.write(Serial0.read());
      }
      //Read Arduino IDE Serial Monitor inputs (if available) and send them to SIM800
      if(Serial.available()){   
        Serial0.write(Serial.read());
      }
    }
    
     
    Last edited: Nov 14, 2016
    Andrea Rovai likes this.

Share This Page