Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

Embed Size (px)

Citation preview

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    1/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 1/21

     Arduino Projectsby Jeff Murchison

    Subscribe via RSS

    Posted by Jeff Murchison on September 17, 2012

    Sending text messages from your Arduino can be a bit of a hassle. In this tutorial, I’ll show you a

    simple way to send text messages with your Arduino for around $20.

    If you want to send a text message from your Arduino, you’ve got basically three options:

    Use a GSM shield

    Use an ethernet shield to send emails to a wireless carrier’s email-to-SMS gateway

    Introducing the TinyLoadr AVR 

    Programmer

    Docs: How to use the TinyLoadr AVR 

    Programmer

     Arduino-Powered Foosball Scoreboard

    (Part 2)

     Arduino-Powered Foosball Scoreboard

    (Part 1)

    nRF24l01+ 2.4GHz Wireless ArduinoTransceiver Code

    Tutorial: Send SMS from your Arduino

    using an old Motorola cell phone

    Docs: How to use the TinyLoadr Shield

    Monday Experiment: Bootloading an

     

    Select Cate or

    HOME ABOUT OPEN SOURCE / CODE PRODUCT DOCUMENTATION   TUTORIALS   STOR E C ONTA CT

    Tutorial: Send SMS from your Arduino using anold Motorola cell phone   Search

    Categories

    Recent Posts

    Popular Posts

    http://murchlabs.com/2-4ghz-wireless-arduino-transceiver-code/http://murchlabs.com/2-4ghz-wireless-arduino-transceiver-code/http://murchlabs.com/the-arduino-powered-foosball-scoreboard-part-2/http://murchlabs.com/contact/https://www.tindie.com/stores/jeffmurchison/http://murchlabs.com/category/tutorials/http://murchlabs.com/docs/http://github.com/jeffmurchisonhttp://murchlabs.com/about/http://murchlabs.com/http://murchlabs.com/monday-experiment-bootloading-an-atmega32u4-with-arduino/http://murchlabs.com/docs-how-to-use-the-tinyloadr-shield/http://murchlabs.com/send-sms-from-your-arduino/http://murchlabs.com/2-4ghz-wireless-arduino-transceiver-code/http://murchlabs.com/the-arduino-powered-foosball-scoreboard-part-1/http://murchlabs.com/the-arduino-powered-foosball-scoreboard-part-2/http://murchlabs.com/docs-how-to-use-the-tinyloadr-avr-programmer/http://murchlabs.com/introducing-the-tinyloadr-avr-programmer/http://www.emailtextmessages.com/http://murchlabs.com/send-sms-from-your-arduino/http://murchlabs.com/author/jeff-murchison/http://murchlabs.com/feed/http://murchlabs.com/

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    2/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 2/21

    Plug your Arduino into a computer via USB and have a script running on your computer that

    uses the aforementioned email-to-SMS gateway method.

    Unfortunately, these methods are either expensive, require somewhat complicated code

    (depending on your coding abilities), or both. The last two options also require you to be within

    range of an internet connection or a computer, which isn’t always possible.

    Fortunately, there is another option that is cheap, requires only basic code, and allows you to use

    it anywhere you’ve got power and cell service: use your Arduino to interface with a cell phone

    over a serial connection. In this tutorial we’ll be using the Motorola c168i, which can be found on

    Craigslist or eBay for less than $20. You may also be able to use Motorola’s C257, C261, V175,

     V176, V177, C168, W220, and W375, as they share the same serial co nnector. You might  be able

    to use another kind of phone provided it has a serial connection (very uncommon in newer

    phones), but it will likely have different serial pinouts and / or a different set of supported

    commands.

    What you’ll need

     An Arduino (obvio usly)

    Motorola C168i with working SIM card

    Small breadboard + jumper wires

    3/32″ headset plug (TRS)

     ATmega32u4 wit h Ardui no

    TinyLoadr Shield Updated!

     ArduinoISP Del uxe Shiel d

    October 2014

     August 2013

    July 2013

    June 2013

    December 2012

    November 2012

    October 2012

    September 2012

    July 2012

     

     Archives

    http://murchlabs.com/2012/07/http://murchlabs.com/2012/09/http://murchlabs.com/2012/10/http://murchlabs.com/2012/11/http://murchlabs.com/2012/12/http://murchlabs.com/2013/06/http://murchlabs.com/2013/07/http://murchlabs.com/2013/08/http://murchlabs.com/2014/10/http://murchlabs.com/introducing-arduinoisp/http://murchlabs.com/arduinoisp-deluxe-shield-updated/http://murchlabs.com/monday-experiment-bootloading-an-atmega32u4-with-arduino/http://code.google.com/p/sserial2mobile/wiki/SupportedPhones

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    3/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 3/21

    10K ohm resistor

    Pushbutton

    Steps

    1. Set up your C168i.

     You’ll need to make sure th at your Motorola C168i is w orking properly and that you can

    send text messages from it. If you browse the phone’s settings, you can choose to do a

    master reset as well as initial phone setup.

    Set up your C168i according to your carrier’s settings, and ensure you can send a text

    message from the phone itself before continuing.

    2. Solder wires to your connector.

     You’ll want to solder o ne wire to each of the three co nnectors on your 3/32 headset

    plug. The tip  connector will be our serial TX connection, the ring connector will be our

    serial RX connection, and the sleeve connector is our ground connection. In this photo,

    my blue wire is TX, white-blue wire is RX, and green is ground. Use a multimeter to figure

    out which pin connects to which part of the connector if you’re not sure.

    3. Make the connections.

    Connect the TX to pin 2 of your Arduino, connect the RX to pin 3, and connect the ground

    connection to GND. Connect your pushbutton to pin 8. Make sure to use the pull down

    resistor, or you may get false readings. See the image below for a wiring diagram.

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    4/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 4/21

    4. Modify & upload the code.

    Substitute the phone number for your own in the example code (found at the bottom of 

    this post) and upload it to your Arduino.

    5. Plug it in and test it out.

    Plug the 3/32″ headset plug into the headphone jack on the top of the phone and push

    your button. The on-board LED (13) should blink when the message has been sent. You

    can verify this by going into the phone’s outbox. If the message doesn’t send, or themessage doesn’t appear in the phone’s outbox, double check your wiring and ensure there

    are no broken or shorted out connections, especially in your headset plug. You can also try

    unplugging and re-plugging the headset plug.

    Demonstration

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    5/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 5/21

    Send SMS from Arduino using Motorola C168i

    Example Code

    The example code is fairly basic. It uses the SoftSerial library (included with the Arduino IDE) to

    set up a software serial connection on any pins that we want. Once we establish the serial

    connection, we use AT c ommands  to wake the phone up, enter text mode (as opposed to data

    mode), create a new text message, and then send it to the appropriate phone number. We then

    wait 10 seconds, giving the phone enough time to send the message, and then delete the

    message from the phone’s outbox.

    010203040506070809

    10111213141516171819202122

    /*Application Name: Arduino Send SMSDescription: Send SMS messages using a Motorola C168iAuthor: Jeff MurchisonContact: http://murchlabs.com/contact/Date: September 17, 2012Version: 1.0License: 

    This work is licensed under a Creative Commons Attribution‐NonCommercial‐

    http://creativecommons.org/licenses/by‐nc‐sa/3.0/ Attributions / Special Thanks: ‐ Matthew Sheffield. This code based on his example, but updated to use Aand SoftwareSerial. http://sheffiel.blogspot.ca/2011/02/remote‐car‐starter‐controlling‐motoro */ 

    ?

    http://sheffiel.blogspot.ca/2011/02/remote-car-starter-controlling-motorola.htmlhttp://creativecommons.org/licenses/by-nc-sa/3.0/http://murchlabs.com/contact/http://en.wikipedia.org/wiki/Hayes_command_sethttps://www.youtube.com/watch?v=ryH1obMlwJE

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    6/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 6/21

    Links

    http://sheffiel.blogspot.ca/2011/02/remote-car-starter-controlling-motorola.html

    http://code.google.com/p/sserial2mobile/

    Note: I have disabled comments for this post because people are mostly asking questions that I

    have already answered in the post itself, in the comments, or that I can’t answer at all – mainly

    about what phones will and will not work for this project (the only ones I know that will work are

    listed above). If you’ve read through the post and all the comments and still have an issue then

    feel free to send me an email.

    Categories: Arduino, Tutorials. Tags: Arduino, C168i, featured, Message, Motorola, Send, SMS, Text.

    23242526272829303132333435363738394041424344454647484950515253545556575859

    #include  SoftwareSerial mySerial(3, 2); // RX, TX pins void setup() { pinMode(13, OUTPUT); // Initialize pin 13 as digital out (LED)pinMode(8, INPUT); // Our button pinmySerial.begin(4800); // Open serial connection at baud rate of 4800 } void loop(){ if (digitalRead(8) == HIGH){ // On button pressdigitalWrite(13, HIGH); // Turn LED on.mySerial.println("AT"); // Sends AT command to wake up cell phonedelay(500);mySerial.println("AT+CMGF=1"); // Puts phone into SMS modedelay(1000); // Wait a secondmySerial.println("AT+CMGW=\"+14165551234\"" ); // YOUR NUMBER HERE; Createdelay(1000);mySerial.print("Sent from my Arduino."); // Message contentsdelay(1000);mySerial.write(byte(26)); // (signals end of message)delay(1000);mySerial.println("AT+CMSS=1"); // Sends message at index of 1digitalWrite(13, LOW); // Turn LED offdelay(250);digitalWrite(13, HIGH); // Turn LED on.delay(10000); // Give the phone time to send the SMSmySerial.println("AT+CMGD=1"); // Deletes message at index of 1digitalWrite(13, LOW); // Turn LED off.delay(250);} }

    http://murchlabs.com/tag/text/http://murchlabs.com/tag/sms/http://murchlabs.com/tag/send/http://murchlabs.com/tag/motorola/http://murchlabs.com/tag/message/http://murchlabs.com/tag/featured/http://murchlabs.com/tag/c168i/http://murchlabs.com/tag/arduino/http://murchlabs.com/category/tutorials/http://murchlabs.com/category/arduino/http://code.google.com/p/sserial2mobile/http://sheffiel.blogspot.ca/2011/02/remote-car-starter-controlling-motorola.html

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    7/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 7/21

    Seattleandrew   Septemb er 19, 2012 at 10:17 pm

    Jeff Murchison   September 19, 2012 at 10:29 pm

    I believe it’s possible, but I haven’t looked into it yet. It appears, according to page 3-70 of 

    this document  that there is an AT command that’ll let you read messages. I know that Matt

    Sheffield was working on that functionality, so maybe give him a shout?  If you figure it out,

    I’d love to see the results.

    This is pretty awesome. Do you know if the phone can send SMS back to the Arduino over

    Serial? That way you could interact with the Arduino over SMS?

    Mike   Septemb er 21, 2012 at 1:17 am

    Jeff Murchison   September 21, 2012 at 9:54 am

     As far as I know, you can’t duplic ate a SIM card. A SIM card can only be registered on a

    network once, and that’s to keep people from duplicating their cards and sharing them with

    their friends so they don’t have to get their own service.

    If you can’t use your existing SIM card, then yes, you’ll have to get a new one. Your options

    entirely depend on your carrier. Personally, I use a pay-as-you-go account, which cost me

    $10 for the SIM card. Some carriers give them away for free. You might also see if you can

    set it up as a family plan or something, where the cheap new phone draws from your

    existing text message package. The $20 was a startup materials cost. It’s impossible to

    predict how much it’ll actually cost everyone, there are too many variables; location,

    carriers, carrier rates, how many messages people will send, how long they’ll keep it going,

    etc.

    So, in practical terms, you have an Arduino watching something- maybe a sensor on a garage

    door so you know when your spouse comes home- something. The event happens and the

     Arduino texts you that it has.

    That part I get. The phone part I do not. Warning! Stupid questions follow!

     “A wo rking SIM c ard”. There is one in my p hone- but that is t he p hone I want to receive the

    text on. Do I have to have service for two lines? Can I duplicate the SIM in my current phone,

    put the duplicate into my e-Bay cheapie and more or less text myself? I’m not clear how the

    phone end of it works in a day to day sense. Additional service sorts of busts your $20.

    76 Responses to Tutorial: Send SMS from your Arduino using an old Motorola cell

    phone

    http://sheffiel.blogspot.ca/2011/02/remote-car-starter-controlling-motorola.htmlhttp://www.motorola.com/web/Business/Products/M2M%20Wireless%20Modules/C24%20CDMA%20Wireless%20Module/Document/staticfile/C24%20AT%20commands.pdfhttp://seattleandrew.com/

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    8/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 8/21

     john   Marc h 25, 2013 at 7:50 pm

    by way of example, you can get a pay-as-you-go phone at W*lmart for about $15.

     Veriz*n h as a pay-as-you-go plan that runs $3 0/month, but you can pre-pay $ 100 and

    you are good for a year, or until you use up all your credit. Typically, accessing the

    network costs $2 each day and calls and text messages are some nominal amount

    comparable to other plans. So, for example, if you set up the Arduino to send a text

    message only every 3 or 4 days with the tempreature in your cabin, or if it dropped

    below 40 degrees F, you could monitor the cabin for about half a year, so about

    $16/month. I think there are strictly SMS plans that might cheaper.

    Taalouch Fradj   Marc h 7, 2013 at 4:00 pm

    Jeff Murchison   Marc h 7, 2013 at 4:11 pm

    I have no idea what you’re asking me.

    is it possible to use in place of arduino peak 16F877

     Vela001   Marc h 13, 2013 at 7:34 pm

     Very interesting work, but i would like to know if someone could help me to adjust thi s c ode for

    Motorola V360V, because i can’t find any of this models you mentioned?

    Hari   Marc h 15, 2013 at 12:42 am

    Hi

    Thanks for this wonderful page. I am building a SMS based temperature alert system based on

    this page.

    Excuse my poor knowledge in embedded programming, but I have a doubt.

    The temperature sensor is an analog input right?

    So how do we replace the “if (digitalRead(8) == HIGH)” expression so that it will serve my

    purpose.

    I want an alert SMS to be sent when temperature crosses 25 degree celsius which corresponds

    to 250mV output from the sensor.

    Do we need to initialize the pin as analog?

    Thanks in advance.

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    9/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 9/21

    Jeff Murchison   Marc h 15, 2013 at 12:47 am

    Use the AnalogRead(pin) command.

    http://arduino.cc/en/Tutorial/AnalogInput

    Hari   Marc h 15, 2013 at 1:07 am

    Thanks Jeff!

    Now that I came to know about the examples page of arduino website, I think I can tackle

    almost any problem I get on my way. Appreciate the help.

    Hari   Marc h 15, 2013 at 1:18 am

    Jeff Murchison   Marc h 15, 2013 at 1:20 am

     According to goog le, they are identic al, so it should work.

    By the way, the phone I acquired for this project is Motorola C168, not C168i.

    It will still work, right?

    Hari   Marc h 15, 2013 at 5:21 am

    I used the following code:

    #include

    SoftwareSerial mySerial(3, 2); // RX, TX pins

    void setup() {

    pinMode(13, OUTPUT); // Initialize pin 13 as digital out (LED)

    pinMode(8, INPUT); // Our button pin

    mySerial.begin(4800); // Open serial connection at baud rate of 4800

    }

    void loop(){

    if (digitalRead(8) == HIGH){ // On button press

    digitalWrite(13, HIGH); // Turn LED on.

    http://arduino.cc/en/Tutorial/AnalogInput

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    10/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 10/21

    Jeff Murchison   Marc h 15, 2013 at 10:22 am

    Check out step 5 above.

    It also appears that the Include line is missing the SoftwareSerial. It should be:

     “#includ e < SoftwareSerial.h > ” (remove the spaces b etween the < and > )

    mySerial.println(“AT”); // Sends AT command to wake up cell phone

    delay(500);

    mySerial.println(“AT+CMGF=1″); // Puts phone into SMS mode

    delay(1000); // Wait a second

    mySerial.println(“AT+CMGW=\”+1919447786559\””); // YOUR NUMBER HERE; Creates new

    message to number

    delay(1000);

    mySerial.print(“Sent from Arduino.”); // Message contents

    delay(1000);

    mySerial.write(byte(26)); // (signals end of message)delay(1000);

    mySerial.println(“AT+CMSS=1″); // Sends message at index of 1

    digitalWrite(13, LOW); // Turn LED off 

    delay(250);

    digitalWrite(13, HIGH); // Turn LED on.

    delay(10000); // Give the phone time to send the SMS

    mySerial.println(“AT+CMGD=1″); // Deletes message at index of 1

    digitalWrite(13, LOW); // Turn LED off.

    delay(250);

    }

    }

     Although I c an see the LED blink, No SMS was sent. I am powering the board using usb from

    computer.

    Is that the problem?

    There was also one more difference in what I did. I did not use a resistor, I just connected pin 8

    to 5V of the arduino for a second directly.

    What do you think the problem is?

    Taalouch Fradj   Marc h 19, 2013 at 8:03 am

    if I want to do a simulation, what software can I use?

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    11/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 11/21

    Karmel   Marc h 29, 2013 at 4:05 pm

    Hy , you can just useISIS ,however configuration it self is not as simple as that

    thank you

    erhas   Marc h 31, 2013 at 10:36 am

    Jeff Murchison   Marc h 31, 2013 at 11:58 pm

    Depends if the Nokia has a straight serial connection available, and if it accepts AT

    commands.

    i want to ask..if i use nokia 3310…i can use the same code as above?

    Marc   Apr il 4, 2013 at 6:36 pm

    Jeff Murchison   Apr il 24, 2013 at 8:49 am

    Make sure you have your set to the correct baud rate. Other than that, I don’t know what to

    tell you other than make sure all the connections are correct.

    Hi Jeff,

    I copied your sketch on my arduino uno and connected a Motorola C261 as you descibed.Besides some beeps it produces nothing.

    I also tried to read out any data from the software serial, without any success.

     Any Ideas?

    helmi   Apr il 24, 2013 at 4:42 am

    Jeff Murchison   Apr il 24, 2013 at 8:48 am

    Some people have gotten other phones to work, yes, but you’ll have to do a bit of research.

    can i use anothor phone (samsung, nokia) to replace motorola 168i ?

    thank you.

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    12/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 12/21

    This tutorial is only for a select few phones by Motorola.

    Ives   May 2, 2013 at 9:50 pm

    Hey Jeff,

    Thanks so much for posting this! It’s going to (hopefully) save my ass as I’ve been trying to use

    SMS for my thesis. Can’t wait to try this out

    arian   May 18, 2013 at 8:18 am

    Jeff Murchison   May 21, 2013 at 12:34 pm

    Kolouch   July 18, 2013 at 5:09 am

    I’m pretty sure that there should be a 3.3V levels at data lines. USB data lines operates at3.3V as C24 module inside the phone does.

    Nice article BTW.

    Thanks for that idea.

    Nope.

    is this not require rs232 to ttl converterl like MAX232?

    Janni   May 21, 2013 at 8:19 am

    Jeff Murchison   May 21, 2013 at 12:33 pm

    Did you try the last line of part 5? (“You can also try unplugging and re-plugging the

    headset plug.”)

    Hello Jeff,

    thanks for this nice post. I just copied your example code and used it. The messages with the

    correct contents appear in the outbox, but it seems like the phone isn’t sending them. The

    wiring is correct and the number to which the message should be send is correct too. If i go tothe outbox, “click” on one of these messages and hit “resent”, the message is send and appears

    at my other phone after a few seconds. I don’t really know what i am doing wrong. If you have

    any idea what the problem could be, would be nice if you could reply to my comment.

    3/4/2016 T t i l S d SM Sf A d i i ld M t l l l h | A d i P j t

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    13/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 13/21

    Janni   May 21, 2013 at 2:48 pm

    Jeff Murchison   May 21, 2013 at 2:49 pm

    When it’s on.

    Janni   May 21, 2013 at 3:19 pm

    Jeff Murchison   May 21, 2013 at 3:48 pm

    It is the ‘end of file’ part of the command.

    http://en.wikipedia.org/wiki/End-of-file

     And I d on’t know how the phone will act if you try to send a text message over

    140 or 160 characters. Try it out and see, it might depend on your carrier too.

     And i forgot to ask: why do i have to use mySerial.write(byte(26)); //

    (signals end of message) to end a message? Is it important how long the

    message is?

     Yea, i will try. Should i unplug and re-plug it while the phone is o n? Or while it is o ff?

    Thanks.

    I encountered this issue as well and unplugging the headset and plugging it back in seemed

    to work.

    Janni   May 21, 2013 at 3:45 pm

    Jeff Murchison   May 21, 2013 at 3:50 pm

     You can put the serial parts in a f or loop, store you r nu mbers in an array, and do it that

    way, otherwise I don’t know.

    Everything works now, thanks for the great help. I have one last question: Is it possible to send

    the message to more then one number?

    Thanks again.

    3/4/2016 Tutor ial :Send SM Sfr om your Ar duino using an old M otor ol acel l phone | Ar dui no Pr ojects

    http://en.wikipedia.org/wiki/End-of-file

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    14/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 14/21

    Janni   May 22, 2013 at 4:42 am

    Ok, thank you very much. I will try it like that

    EnginKury   May 26, 2013 at 9:35 pm

    Hello I wish I can ask you some questions about your code. Could you give an email address

    that I can contact you? Thank you

    EnginKury   May 26, 2013 at 9:48 pm

    Here is a code that I am trying to work on:

    #include

    SoftwareSerial mySerial(3, 2); // RX, TX pins

    void setup() {

    mySerial.begin(4800); // Open serial connection at baud rate of 4800

    }

    void loop(){

    mySerial.println(“AT”); // Sends AT command to wake up cell phone

    delay(500);

    mySerial.println(“AT+CMGF=1″); // Puts phone into SMS mode

    delay(1000); // Wait a second

    mySerial.println(“AT+CMGW=\”+19097060544\””); // YOUR NUMBER HERE; Creates new

    message to number

    delay(1000);

    mySerial.print(“Sent from my Arduino.”); // Message contents

    delay(1000);mySerial.write(byte(26)); // (signals end of message)

    delay(1000);

    mySerial.println(“AT+CMSS=1″); // Sends message at index of 1

    delay(250);

    delay(10000); // Give the phone time to send the SMS

    mySerial.println(“AT+CMGD=1″); // Deletes message at index of 1

    delay(250);

    }

    3/4/2016 Tutor ial :Send SM Sfr om your Ar duino using an old M otor ol acel l phone | Ar dui no Pr ojects

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    15/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 15/21

    Jeff Murchison   May 30, 2013 at 10:06 am

    Sorry, I never ran into that issue myself so I can’t really suggest anything other than maybe

    factory reset the phone and make sure it works by sending a test text message from it

    manually.

    Jeff Murchison   Septemb er 15, 2013 at 10:17 am

    It appears your include line is wrong. Use this instead:

    #include < SoftwareSerial.h >

    (remove the spaces around the < and > )

    However, it does not go to messaing screen, but it goes to “Calls Made” screen. Could we

    discuss how we can fix this?

    libellule   May 30, 2013 at 9:35 am

    Jeff Murchison   May 30, 2013 at 10:11 am

    libellule   May 30, 2013 at 9:21 pm

     Awesome and thanks fo r yo ur quick reply.

    Do you know what kind of sensors would be appropriate for such work? ( arduino

     Absolutely. The code is ac tually very basic. I sugg est you read throu gh the code reference

    material on Arduino’s website, and try out some of their tutorials. They’re very useful.

    http://arduino.cc/en/Reference/HomePage

    http://arduino.cc/en/Tutorial/HomePage

    Hi thank you for such a great project!! i just had mine working and boy am i excited lol… I havea question though (and excuse my poor knowledge, im a newbie ).

    Is there a way i could modify this circuit so that i doesnt use a pushbutton. Let’s say i want to

    have the entire system self controlled and i want the arduino to send me a text message when

    and only when something happens (i.e. the phone runs on low battery.) how can i do that. do

    i need sensors, etc….

    Thank you so much you are my new hero lol.

    3/4/2016 Tutor ial :Send SM Sfr om your Ar duino using an old M otor ol acel l phone | Ar dui no Pr ojects

    http://arduino.cc/en/Tutorial/HomePagehttp://arduino.cc/en/Reference/HomePage

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    16/21

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://murchlabs.com/send-sms-from-your-arduino/ 16/21

    sending a text message to my phone when the cellphone c168i runs out of battery).

    thank you

     joseph   May 31, 2013 at 2:21 am

    Jeff Murchison   June 3, 2013 at 7:25 am

    Unfortunately I don’t know how to read text messages from the phone, only send them. But

    if you figure it out, let me know!

    nice job. plz can you help me on how to receive sms and pass it to arduino using motorola

    c168 so that it can perform task which I want it to do

    Nick Garrod   June 23, 2013 at 7:11 am

    Jeff Murchison   July 19, 2013 at 1:43 pm

    Thanks for confirming!

    Marco   July 31, 2013 at 3:15 am

    Hi, can I ask you if you had to lower voltage for motorola W375? Mine sometimes calls the

    number I inserted into the code if I press the button…i copied exactly the connections

    shown into the article but it doesn’t work with motorola w375 … Please can you help me?

    Thank you

    Thank you for the very useful article Jeff and sharing your knowledge. I can confirm that it

    works with the Motorola W375, which is available used for about £10 or less in the UK.

    RIALAGA    July 9, 2013 at 12:42 pm

    Hi, I from Colombia, I have nokia X2-00, I just copied your example code and used it. The

    messages with the correct contents appear in the outbox, but it seems like the phone isn’t

    sending them. The wiring is correct and the number to which the message should be send is

    correct too. If i go to the outbox, “click” on one of these messages and hit “resent”, the

    message is send and appears at my other phone after a few seconds. I don’t really know what i

    am doing wrong. If you have any idea what the problem could be, would be nice if you could

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    17/21

    y g p | j

    http://murchlabs.com/send-sms-from-your-arduino/ 17/21

    Jeff Murchison   July 19, 2013 at 1:43 pm

    Try step 5. I encountered that intermittently but couldn’t nail down the issue.

    reply to my comment.

    Daniel   Aug ust 6, 2013 at 5:19 pm

    Jeff Murchison   Augu st 6, 2013 at 9:52 pm

    I’m not sure to be honest. Some phones have the ability to send SMS to more than one

    number, but I haven’t tried doing this.

    Hi Jeff,

    Just wondering if it is possible to have the cellphone sending two sms at the same time?

    thanks

    mike   Augu st 14, 2013 at 10:33 am

    Jeff Murchison   Aug ust 18, 2013 at 11:22 pm

     Yes, it is.

    Hi sir..

    It is possible to connect a numeric keypad to audrino gsm and set by SMS for ex. I press

    1234567890 when you press = equals it will be send to my cellphone

    SERGIO   Aug ust 24, 2013 at 2:52 pm

    Jeff Murchison   Augu st 24, 2013 at 3:04 pm

    I’m using software serial on pins 2 and 3. The hardware serial pins are 0 and 1. The

    software serial is for communicating between the phone and the Arduino, while the

    Why did you use, the pines 2,3 ? my arduino have the tx,rx in the 0,1 pines. Thanks.

    Crash Space » Blog Archive » Found @ CRASH Space: Too Many Phones!!!

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    https://blog.crashspace.org/2013/07/found-crash-space-too-many-phones/

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    18/21

    http://murchlabs.com/send-sms-from-your-arduino/ 18/21

    hardware serial is so that I can monitor the output from the Arduino.

    SERGIO   Aug ust 27, 2013 at 2:35 pm

    Jeff Murchison   Augu st 27, 2013 at 2:41 pm

    I don’t know.

    Can I use this http://www.cpkb.org/wiki/Nokia_6070_pinout

    or motorola w175 ??

    SERGIO   Aug ust 27, 2013 at 6:56 pm

    Jeff Murchison   Aug ust 29, 2013 at 8:11 am

    I really don’t know.

    Can i use this model w395 SONY ERICCSON ?

    pracas   Augu st 29, 2013 at 6:16 am

    Jeff Murchison   Aug ust 29, 2013 at 8:13 am

    I don’t know. I listed models that should work in the post, and other than that I have no

    idea.

    is it possible from motorola C123???

    Nayanajith   October 19, 2013 at 3:31 am

    Great…….

    It was really helpful

    Thanks for sharing to all.

    Chris F   October 22, 2013 at 12:01 am

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://nayanajithpilapitiya.blogspot.com/http://google/http://www.cpkb.org/wiki/Nokia_6070_pinout

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    19/21

    http://murchlabs.com/send-sms-from-your-arduino/ 19/21

    Jeff Murchison   October 23, 2013 at 10:33 am

     AT Commands are actually fairly standardized. You can control most mo dems with them

    (even modern 3G or GSM modems).

    The reason I used the headphone jack in this phone was because that’s where the serial

    connection to the phone is. The only other jack on the phone was for power. Modern

    phones typically won’t have a serial connection, let alone use the headphone jack for

    anything other than mic / headphones.

    If you find a phone that has a serial connection, then you can probably modify this project

    for that phone.

    This is pretty awesome. I haven’t tried the project, but I’m curious about why this works? I

    suppose the commands “AT” etc. are specific for this Motorola phone (and some others)? Do all

    phones have commands like this? As is, can the code be modified to do this through the

    headphone/mic jack of any old phone? I had no idea phones could be programmed through

    the headset jack. I guess you need insider knowledge about how the phone works?

    Marcelo   November 7, 2013 at 12:34 pm

    Jeff Murchison   November 8, 2013 at 10:21 am

    It may be possible, but I’m not sure how to do it.

    hi jeff, it’s already possible to read sms with arduino?

    Marcelo   November 7, 2013 at 2:22 pm

    Marcelo   November 11, 2013 at 9:48 am

    ?

    i’m trying to send sms with w375 and its not working.

    i have a mega 2560, and i changed the tx rx ports to 10 11 and nothing.

    Florian S   November 25, 2013 at 11:55 am

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    20/21

    http://murchlabs.com/send-sms-from-your-arduino/ 20/21

    Hello! Thank You very much. I ordered a Motorola W375 for 1 Buck at eBay and 2,50€

    shipping. It’s without battery, but I test out:

    The 5 volts from the Arduino powers a cellphone. I hope that the phone will work 

    with external power. I’m planning to use

    this as temperature monitor, giving statements

    via SMS.

    Waleed   November 27, 2013 at 3:38 am

    Hi, nice work..

    I wanna ask you if I can use this code for Nokia mobiles? if not, do u know the code for Nokia

    mobile phones?

    Thank you in advance..

     Ahmad   November 28, 2013 at 3:54 pm

    Jeff Murchison   November 28, 2013 at 3:55 pm

     Ahmad   November 29, 2013 at 12:52 pm

    okay , its not for nokia , because i have to figure out the Fbus connection . right !?

    This guide is not for Nokia phones.

    hey , i have been trying to setup this on my nokia N70 , unfortunately nothing till now working

    . any suggestions !

      « Previous Post Next Post »

    Nokia Phone Serial Commands | wer bastelt mit?

    Powered by WordPress and Cuttlefish. Top

    3/4/2016 Tutor ial : Send SM S fr om your Ar duino using an old M otor ol a cel l phone | Ar dui no Pr ojects

    http://wpspot.com/themes/cuttlefish/http://wordpress.org/http://werbasteltmit.wordpress.com/2014/02/26/nokia-phone-serial-commands/http://murchlabs.com/arduinoisp-deluxe-shield-updated/http://murchlabs.com/introducing-arduinoisp/

  • 8/20/2019 Tutorial_ Send SMS From Your Arduino Using an Old Motorola Cell Phone _ Arduino Projects

    21/21

    http://murchlabs.com/send-sms-from-your-arduino/ 21/21