Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

sserial2mobile 20090130 SSerial2Mobile   SMS library for Arduino

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("[email protected]", "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


Related
blog comments powered by Disqus

Related Supplies at Maker Shed

Follow

Get every new post delivered to your Inbox.

Join 26,143 other followers