EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / here is the code

here is the code

|

Microcontroller › Arduino › how to interface gsm module sim900a to arduino › here is the code

January 26, 2016 at 1:21 pm #13660
rupa
Participant

but u dont find anything going on serial monitor but u will get sms to ru phone

#include <SoftwareSerial.h>
 
SoftwareSerial mySerial(9, 10);
void setup()
{
mySerial.begin(9600);
Serial.begin(9600);
delay(2000);
 //set GSm to test mode
}
 
void loop()
{
  if (Serial.available()>0)
   switch(Serial.read())
 
mySerial.println("AT+CMGF=1");
delay(1000);
mySerial.println("AT+CMGS="+918885751592"r");
delay(1000);
mySerial.print("test messsage from arduino ….hello…how r u");
delay(1000);
mySerial.println((char)26);//sends ctrl+z end of message
delay(1000);
}
 

RSS Recent Posts

  • A Comparison of Output Power: Qi Charging vs NFC-WLC Charging August 11, 2026
  • free s-param assesment tool reccomendation August 10, 2026
  • dosen't work as planned August 10, 2026
  • My Advanced Realistic Humanoid Robots Project August 9, 2026
  • Replacement for Multisim Live August 9, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy | Advertising

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise