|
| 1 | +## Library SIM800l Module for Arduino UNO |
| 2 | +The Purpose of This library is to use the module in the most easy way and transparent. |
| 3 | +Website: [Sim800l library](https://cristiansteib.github.io/Sim800l/) |
| 4 | + |
| 5 | +##To download and Install. |
| 6 | +Go to [Releases](https://github.com/cristiansteib/Sim800l/releases) click the " Source Code (zip) " button, then rename the uncompressed folder to **Sim800l**. |
| 7 | + Check that the *Sim800l* folder contains Sim800l.cpp and Sim800l.h |
| 8 | + |
| 9 | +Go to arduino IDE Sketch >> Import Library >> add library... Select the folder Sim800l |
| 10 | + |
| 11 | +OR |
| 12 | + |
| 13 | +Place the Sim800l library folder your arduinosketchfolder/libraries/ folder. |
| 14 | +You may need to create the libraries subfolder if its your first library. Restart the IDE. |
| 15 | + |
| 16 | + |
| 17 | +## connections & pinouts |
| 18 | +Arduino Uno | Sim800l | Notes |
| 19 | +-------------|-------------|------------ |
| 20 | ++5v| (3.8v)~(4.4v)!| Power supply input |
| 21 | +10 RX_PIN | TX | |
| 22 | +11 TX_PIN | RX | |
| 23 | +2 RESET_PIN | RST| Reset Pin |
| 24 | +GND | GND | |
| 25 | + |
| 26 | + |
| 27 | +## Methods and functions |
| 28 | + |
| 29 | +Name|Return|Notes |
| 30 | +:-------|:-------:|:-----------------------------------------------:| |
| 31 | +begin()|None|Initialize the library |
| 32 | +begin(number)|None|Initialize the library |
| 33 | +reset()|None|Reset the module,and wait to Sms Ready. |
| 34 | +sendSms(number,text)|true or false|parameters must be Strings. |
| 35 | +readSms(index)|String|index is the position of the sms in the prefered memory storage |
| 36 | +getNumberSms(index)|String|returns the number of the sms. |
| 37 | +delAllSms()|true or false|Delete all sms |
| 38 | +answerCall()|true or false| |
| 39 | +callNumber(number)|None| |
| 40 | +hangoffCall()|true or false| |
| 41 | +getCallStatus()|uint8_t|Return the call status, 0=ready,2=Unknown(),3=Ringing,4=Call in progress |
| 42 | +setPhoneFunctionality()|None|Set at to full functionality |
| 43 | +activateBearerProfile()|None| |
| 44 | +deactivateBearerProfile()|None| |
| 45 | +RTCtime(int *day,int *month, int *year,int *hour,int *minute, int *second)|None| Parameters must be reference ex: &day |
| 46 | +dateNet()|String|Return date time GSM |
| 47 | +updateRtc(utc)|true or false|Return if the rtc was update with date time GSM. |
| 48 | +____________________________________________________________________________________ |
| 49 | + |
| 50 | +You can regulate the voltage to the desired with this, is not the best, |
| 51 | +but for start it's easy. |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +For the **reset pin** they need NPN transistor, this is an example circuit that you can use. |
| 58 | + |
| 59 | + |
0 commit comments