_____ _____ _____ _____
| | |\ | \_/ | ___ |_____ | | |
| | | \| | |_____| _____|| | |
A small Arduino library for GSM modules, that just works.
Supported modules: SIM800, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900, SIM900A, SIM900D, SIM908, SIM968
More modules (SIM5320, SIM5216, A6, A6C, A7, M590, MG2639) may be supported later. Contributions are welcome!
If you like TinyGSM - give it a star, or fork it and contribute!
This library is very easy to integrate with lots of sketches, which used Ethernet or WiFi previously.
Examples for Blynk, MQTT, Web Client and File Download are provided.
WebClient example for Arduino Nano (with Software Serial) takes little resources:
Sketch uses 11,916 bytes (38%) of program storage space. Maximum is 30,720 bytes.
Global variables use 649 bytes (31%) of dynamic memory. Maximum is 2,048 bytes.
Now, you have more space for your experiments.
TinyGSM pulls data gently from the modem, so it can operate on very little RAM.
- Using your phone: - Disable PIN code on the SIM card - Check your ballance - Check that APN,User,Pass are correct and you have internet
- Ensure the SIM card is correctly inserted into the module
- Provide a good, stable power supply (up to 2A, 4.0-4.2V or 5V according to your module documentation)
- Check if serial connection is working (Hardware Serial is recommended)
Send anAT
command using this sketch - Check if GSM antenna is attached
Sometimes (especially if you played with AT comands), your module configuration may become invalid.
This may result in problems such as:
- Can't connect to the GPRS network
- Can't connect to the server
- Sent/recieved data contains invalid bytes
- etc.
To return module to Factory Defaults, use this sketch:
File -> Examples -> TynyGSM -> tools -> FactoryReset
This project is released under The GNU Lesser General Public License (LGPL-3.0)