Total Pageviews

reducere

Tuesday, September 22, 2015

GPRS module with M590 for SMS projects (part 3)

   In 1st part I present you few data about GPRS module with M590 chip and how send SMS from them. In 2rd part I send SMS from phone and SMS is received by GPRS module with M590, also with Arduino Mega board cand control 4 leds, depend text from SMS.
   M590 chip from Neoway is an old, industrial and... recovered (second hand) chip for GPRS/GPS as SIM900. Is enough for our tests with Arduino...
   Main reason for i use Arduino Mega board instead Arduino Uno is number of harware serial port... M590 chip has defauld speed set at 115200bps, too much for SerialSofware (see arduino.cc - SoftwareSerial). Theoretical, this library work fine at this speed but all my Arduino board (original and clone) not work good.
   So, my solution is to connect at Arduino Mega board and decrease speed with AT command: AT+IPR=9600. First upload M590_mega_serialtest2.ino and open serial monitor at 115200bps:
after that, I reopen serial monitor at 9600bps speed:
   Now, I chamge the schematic and use Arduino Uno board (in my case is a clone VISduinoUno):
and upload M590_softwareserial.ino and  send few AT commands:
   I  made a new schematic:
and upload M590_tronixstuff_4led_control.ver1m1.ino.
   I send SMS from phone for have all 4 leds lit (on):
 and GPRS with M590 module received SMS and Arduino decode and control leds:
    I send a new SMS:
after, I send a new SMS:
   I made few movie:
- SMS control 4 leds using M590 GPRS module and Arduino
- SMS control 4 leds using M590 GPRS module and Arduino (2)
- SMS control 4 leds using M590 GPRS module and Arduino (3)
   If you haven't Arduino Mega, you can use USB-FTDI interface with 3.3V selector and made schematic:
 and use Putty software (like in 1st part) and change speed from 115200bps in 9600bps for work with Arduino Uno board (or clones).

 NOTE: External power supply is +4,6V not 4,2V (power supply with voltmeter show less with 0,3-0,4V) !

17 comments:

  1. Very nice.Can you also post the code for M590 + Arduino Uno to send an SMS on input from a PIR or any other sensor, please.

    ReplyDelete
    Replies
    1. see first part from http://arduinotehniq.blogspot.ro/2015/09/gprs-module-with-m590-for-sms-projects-1.html
      there is a button, but is simillar with sensor ;)

      Delete
  2. HI Dear,
    thanks a lot for your great tutorial.
    i have flowed your steps and tray to check the AT command but it's always not respond it's just give me some unreadable letters.
    can you help me please
    Regards

    ReplyDelete
  3. Replies
    1. thank you so much for your support
      i used (115200) baud speed with arduino uno and it's working good with the first sketch (M590_softwareserial.ino) but I'm trying with the second sketch for LED control it doesn't respond and give me the following message:-
      {
      set SMS mode to txt
      set SMS mode to txt
      blurt out contents of new SMS upon receipt to the GSM shield's serial out
      Ready...
      delete all SMS
      AT+CMGF=1
      ERROR
      AT+CSCS="GSM"

      OK
      AT+CMGF<1

      ERROR AT+CN
      }
      can you help me for this please.
      Regards

      Delete
    2. please made a "print screen" at serial monitor window.. put image on tinypic and write to us the link of photo...

      Delete
    3. thank you very much ..
      i updated the IDE software and now the sketch is working perfect with me
      thanks & Regards

      Delete
  4. Hi.

    Please, Can anyone tell me a distributor M590 module?

    Thanks

    ReplyDelete
    Replies
    1. just a simple search on net:
      1) http://www.banggood.com/DIY-M590E-GSM-GPRS-Communication-Module-Kit-Dual-Band-9001800MHZ-85_6-Kbits-900m-1800m-For-Arduino-p-1082306.html?rmmds=search
      2) http://www.dx.com/p/gsm-gprs-sim900-1800mhz-short-message-service-m590-sms-module-diy-kit-445108#.WADPGeiLRgo
      3) http://www.ebay.com/itm/M590E-GSM-GPRS-Module-900m-1800m-Sms-Message-Diy-Kits-M590-Sms-CPU-MCU-Test-/401085445937?hash=item5d628e3731:g:ef4AAOSwZ8ZW4DEW
      4) https://www.aliexpress.com/item/Free-Shipping-1PCS-DIY-KIT-GSM-GPRS-M590-gsm-module-Short-Message-Service-SMS-module-project/32567396476.html?spm=2114.30010308.3.19.FxvpmP&ws_ab_test=searchweb0_0,searchweb201602_4_10065_10056_10068_10055_10054_10069_10059_10078_10079_10073_10017_10080_10070_10082_10081_421_420_10060_10061_10052_10062_10053_10050_10051,searchweb201603_7&btsid=960fdd39-6df6-4e8a-b830-eb611c8f2b27

      Delete
  5. Hello,
    I am a student software engineering, but I am working on a project where I have to do something with a arduino. So my knowledge about there technical stuff is not my strongest one.
    I want to connect the sms-module to the arduino without the extern energie source. I have a level converter(Logic Level Converter Bi-Directional), but I don't know how to connect it.
    Can someone help me?

    ReplyDelete
    Replies
    1. made schematic as in picture.. is simple.. just made schematic

      Delete
    2. But I don't want to use a external power supply. I want to use the power of the arduino/level converter

      Delete
    3. This comment has been removed by the author.

      Delete
  6. I have a connection between the serial monitor and the sms-module. But when i want to send a sms it doesn't send anything. Can someone help me?
    This is my code:
    -------------------------
    void setup() {
    // initialize both serial ports:
    Serial.begin(9600);
    M590.begin(9600);
    }

    void loop() {
    while(M590.available()) Serial.write(M590.read());
    while(Serial.available()) M590.write(Serial.read());

    if(x==0){
    M590.print("\r");
    delay(1000);
    M590.print("AT+CSCS=\"GSM\"\r");
    delay(1000);
    M590.print("AT+CMGF=1\r");
    delay(1000);
    M590.print("AT+CMGS=\"+3163xxxxxxxx\"\r"); //Number to which you want to send the sms
    delay(1000);
    M590.print("test sms\r"); //The text of the message to be sent
    delay(1000);
    M590.write(0x1A); // command for send sms, code for CTRL-Z
    delay(1000);
    x++;
    }
    }
    ------------------------------------

    And this is what I get in the serial monitor:
    ERROR
    AT+CSCS="GSM"

    OK
    AT+CMGF=1

    OK
    AT+CMGS="+3163071
    +PBREADY

    MODEM:STARTUP

    MODEM:STARTUP

    MODEM:STARTUP

    MODEM:STARTUP

    +PBREADY

    ReplyDelete
  7. Hi Nicu ,I have same problems as Linda .I have Power for M590 ( 4,2 V) and is conected to Arduino Uno and conection is established .Some commands works good but I have MODEM:STARUP and +PBREADY evry 10 sec .

    ReplyDelete
  8. Problem with MODEM:STARTUP and +PBREADY is solved with extra EL.Co .Now is 3300 mf on VCC on the M590 board.

    ReplyDelete
  9. your input current is droop when modem startsup and starts transmission, connect a capacitor of 2200uf for better surge current, also amend the code.

    ReplyDelete