Go Down

Topic: Cellular Shield with Sm5100B-D works in Arduino Lilypad? (Read 438 times) previous topic - next topic


Hi guys,

I'm starting a new project with Lilypad and Cellular shield.

I connected the lilypad with wires on Cellular shield, D10 lilypad -> D2 Cellular, D11 lilypad -> D3 Cellular.

And i tryed to run this code :

#include <SoftwareSerial.h>
char incoming_char=0; //Will hold the incoming character from the Serial Port.
SoftwareSerial cell(10,11); //Create a 'fake' serial port. Pin 10 is the Rx pin, pin 11 is the Tx pin.
void setup()
 //Initialize serial ports for communication.
 Serial.println("Starting SM5100B Communication...");
void loop()
 //If a character comes in from the cellular module...
 if(cell.available() >0)
 incoming_char=cell.read(); //Get the character from the cellular serial port.
 Serial.print(incoming_char); //Print the incoming character to the terminal.
 //If a character is coming from the terminal to the Arduino...
 if(Serial.available() >0)
 incoming_char=Serial.read(); //Get the character coming from the terminal
 cell.print(incoming_char); //Send the character to the cellular module.

I got it on monitor terminal:

How can i solve this ? Cellular shield doesn't work with lilypad?

I tryed to change a baud but didn't work!!

Anyone knows about this? someone could help me ?


Go Up