SSerial2Mobile – SMS library for Arduino

Arduino Computers & Mobile Technology

sserial2mobile_20090130.jpg

This looks like a handy library for mobile-enabling your next Arduino project:

This library implements the Software serial Arduino library to establish a serial connection to a Mobile phone. The methods methods hides the AT+ commands from the user allowing messages to be sent by passing the method on a phone number or email and the message.

The specific AT commands were made to work with the Motorolla C168i, but you can tweak a header file to adjust things for the specific device you are using. It makes sending an email or SMS almost as easy as a single function call:

Example code:

#define rxPin 2
#define txPin 3

// set up a new serial port
SSerial2Mobile phone = SSerial2Mobile(rxPin, txPin);

//send a text message
phone.sendTxt("+15555550125","Lib SMS Test1");

//send an email
phone.sendEmail("sserial2mobile@example.com", "Lib email test1");

The reason the author chose to use the C168i is that you can get the phone on the cheap, without contract, and prepay for SMS service. It’s also simple to make a serial cable which connects to a 3/32″ stereo plug on the phone. In all, it looks like a pretty simple and cheap task to get this all working.

Note that it’s the last day to use code 2009OX during checkout in the Maker Shed for a 10% discount. If you need an Arduino for this, go get one now!

SSerial2Mobile
Attaching a Motorola C168i to an Arduino

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK