Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Send sms with nodemcu Esp8266 12-e using sim900 GSM module

By EG Projects

Though nodemcu is a wifi module but some times it is required to send an sms with a WiFi application. An IOT trigger or event may require us to send an sms. In this project i am going to show how to send an sms with nodemcu WiFi module. To send an sms we need a GSM module. I chose popular sim900 GSM module for this project. I am going to send a simple raw message on my cell number.
​
Sim900 communicates with external controller on UART interface. Default baud rate for communication is 9600 bps. But it can went up to 115200 bps.  SIM900 gsm utilizes AT commands for it configuration and working. There are plenty of commands but i am going to discuss only few which i used in the project.

  • AT —This command replies back the status of the GSM module. If ready it sends back “OK”. If not it sends back “Error”.
  • AT+CMGF=1 — Sets GSM module in SMS text mode.
  • AT+CMGS= “Cell Number” — Enter the cell number whom you want to send sms. Include the Cell number in double quotes.
  • After this write your text message.
  • Then press CTRL+Z together to send sms. Since we are sending message through plan code. So for CTRL+Z combined key we need its code which is 26(Decimal) or 0x1A(Hexadecimal). It will be later discussed in code.    

Power considerations

Nopemcu works on 3.3 volts. Where as sim900 module works on 5 volt power supply. Since both the modules work on different TTL levels there for commands and messages from each module first must be converted to receiver operational TTL level before reaching them. TX pin of nodemcu sends signals out at 3.3v TTL level. The 3.3v TTL signal is converted to 5v TTL signal before reaching sim900 module. First transistor converts the TX signal to 5 volt output but the output is inverted. Inverted output is input to second transistor. Which converts the inverted output to original signal with TTL level up to 5v. The output TTL signal is received by the RX pin of sim900 module. Tx of sim900 is connected to Rx of nodemcu with level simple level shifter circuit in between. Project circuit diagram is below.   
Picture

Sim900 GSM interfacing with nodemcu wifi module

Sim900 module comes in many variations. Almost all the boards uses the same SIMCOM sim900 chip, only there may be pin out difference. But all communicate on UART interface. So you can use any sim900 board for this project, connections are same for each board. 
Note: Sim900 module consumes 500mA of current while sending sms. So please be sure your power supply can supply this amount of current at 5 volts constantly. If your module resets during sending sms than its a clear indication that your module is not getting enough power to send sms out.  
Serial uart channel-0 of nodemcu is used for inter nodemcu and sim900 communication. Communication is carried out  at 9600 bps. Arduino ide is used for writing and compiling code. In the setup function serial channel is initialized. In loop function AT commands are send to gsm. Note the format of cell number to which sms is required to be send. At the end of the loop function while(1) function holds the control for ever. If while(1) is not present there loop function will continuously run and sms will be send to receiver continuously. Fou further modifications one can insert a button in circuit and when ever the button is pressed sms will be send out OR one can utilize the WiFi of nodemcu esp8266-12e chip and when ever a certain condition is meet over WiFi, nodemcu triggers sim900 and it shots out an sms. 
Download the project code. Folder contains project .ino file. Please give us your valuable feedback on the project. If you have any questions or queries write them below in the comments section.
Nodemcu sim900 sms code .ino


Filed Under: ESP8266, Microcontroller Projects

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • PS2 Keyboard To Store Text In SD Card Using Arduino Circuit Setup On Breadboard
    How To Use PS2 Keyboard To Store Text In SD Card Using Arduino- (Part 42/49)
  • Wireless Path Tracking System Using Mouse, XBee And Arduino Circuit Setup On Breadboard
    How To Make A Wireless Path Tracking System Using Mouse, XBee And Arduino- (Part 43/49)
  • How to Make a Wireless Keyboard Using Xbee with Arduino- (Part 44/49)
  • Making Phone Call From GSM Module Using Arduino Circuit Setup On Breadboard
    How to Make Phonecall From GSM Module Using Arduino- (Part 45/49)
  • How to Make a Call using Keyboard, GSM Module and Arduino
    How To Make A Call Using Keyboard, GSM Module And Arduino- (Part 46/49)
  • Receiving SMS Using GSM Module With Arduino Prototype
    How to Receive SMS Using GSM Module with Arduino- (Part 47/49)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • Renesas delivers intelligent sensor solutions for IoT applications
  • Microchip Technology releases AVR-IoT Cellular Mini Development Board
  • Qualcomm acquires Cellwize to accelerate 5G adoption and spur infrastructure innovation
  • MediaTek’s chipset offers high-performance option for 5G smartphones
  • Nexperia’s new level translators support legacy and future mobile SIM cards

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Using LTspice to check Current sense transformer reset?
  • Plotting E_theta and E_phi using the fields calculator in HFSS
  • SRF04 module measure distance
  • Motherboard - worst case scenario
  • Will Wifi throughput be affected by RSSI (attenuation) in my setup?

RSS Electro-Tech-Online.com Discussions

  • Are Cross-wind compensation and Road crown compensation functions inputs to LKA function?
  • Interfacing ZMOD4410 with Arduino UNO
  • Help diagnosing a coffee maker PCB
  • Capacitor to eliminate speaker hum
  • Identify a circuit.
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media 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 WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering