Skip to content

Commit

Permalink
Modify Arduino_TinyGSM sample code to be compatible with SIM800C, upd…
Browse files Browse the repository at this point in the history
…ate README
  • Loading branch information
lewis he committed Jul 1, 2020
1 parent 3ec3cfe commit b0304b9
Show file tree
Hide file tree
Showing 26 changed files with 530 additions and 749 deletions.
7 changes: 6 additions & 1 deletion .gitignore
@@ -1,3 +1,8 @@
build
.vscode
bin
bin
src
platformio.ini
lib
.gitignore
.pio
50 changes: 8 additions & 42 deletions README.MD
@@ -1,54 +1,20 @@

<h1 align = "center">🌟LilyGo T-Call SIM800L🌟</h1>
<h1 align = "center">🌟LilyGo T-Call SIM800 Series🌟</h1>

## **English | [中文](docs/cn.md)**
![](image/Product.jpg)

<h2 align = "left">Product 📷:</h2>

AXP192 is the power supply used on the SIM800L board. It is an upgraded version of the IP5306 version. The following points are upgraded:
1. Change the power IC to AXP192 PMU management, support coulomb counter and high-precision voltage and current detection function, please refer to [X-Power official website](http://www.x-powers.com/en.php/Info/product_detail/article_id/29)
2. SIM800L **RI** Pin leads to ESP32, can wake up from receiving voice or data calls, and receiving messages
3. SIM800L **DTR** Pin leads to ESP32, which can wake up SIM800L from sleep state
4. The old and new versions are fully compatible and can be used as general examples. You don't need to care about the control of the AXP192 power chip, you can replace the new board on your original code without programming the AXP192, and provide AXP192 control example code

## Examples for SIM800L IP5306 Version [Click me view PINOUT](./image/SIM800L_IP.jpg)

- Loboris Micropython: [/examples/MicroPython_LoBo](/examples/MicroPython_LoBo)
- Arduino + TinyGSM library: [/examples/Arduino_TinyGSM](/examples/Arduino_TinyGSM)
- Arduino + SIM800 library: [/examples/Arduino_sim800](/examples/Arduino_sim800)
- Arduino OTA update over GSM: [/examples/Arduino_GSM_OTA](/examples/Arduino_GSM_OTA)
- Arduino Deepsleep: [/examples/Arduino_Deepsleep](/examples/Arduino_Deepsleep)
- ESP-IDF: https://github.com/espressif/esp-idf/tree/master/examples/protocols/pppos_client
- Platformio Arduino_Thingsboard :[/examples/Platformio_Arduino_Thingsboard](/examples/Arduino_Deepsleep)


## Examples for SIM800L AXP192 Version [Click me view PINOUT](./image/SIM800L_AXP.jpg)

- Arduino + TinyGSM library: [/examples/Arduino_TinyGSM_AXP192](/examples/Arduino_TinyGSM_AXP192)

| Examples | Product Link | Schematic | Status | Recommended level |
| :---------------------------------------: | :----------------------------------------------------------------: | :---------------------------------------------------------: | :------: | :---------------: |
| [SIM800L IP5306](./doc/SIM800L_IP5306.MD) | [Product link](https://www.aliexpress.com/item/33045221960.html) | [Schematic](./schematic/LilyGo-SIM800L-IP5306-20190610.pdf) |||
| [SIM800L AXP192](./doc/SIM800L_AXP192.MD) | [Product link](https://www.aliexpress.com/item/4000959701330.html) | [Schematic](./schematic/LilyGo-SIM800L-PMU-20200409.pdf) || ⭐⭐⭐ |
| [SIM800C AXP192](./doc/SIM800C_AXP192.MD) | [Product link]() | [Schematic](./schematic/LilyGo-SIM800C-20200630.pdf) | **Soon** | ⭐⭐⭐ |

## Datasheet
- [SIM800 AT Command](./datasheet/sim800_series_at_command_manual_v1.01.pdf)
- [SIM800 Hardware Design](./datasheet/SIM800_Hardware%20Design_V1.08.pdf)
- [AXP192](http://www.x-powers.com/en.php/Info/product_detail/article_id/29)
- [IP5306](./datasheet/IP5306%20REG%20V1.4.pdf)
- [IP5306 Version Schematic](./datasheet/TTGO_T-Call_SIM800_v1.3_schematic.pdf)
- [AXP192 Version Schematic](./datasheet/LilyGo-SIM800L-PMU-20200409.pdf)

## Pin definition
| Name | [IP5306 Version](https://www.aliexpress.com/item/33045221960.html) | [AXP192 Version](https://www.aliexpress.com/item/4000959701330.html) |
| :----------: | :----------------------------------------------------------------: | :------------------------------------------------------------------: |
| SIM800_TX | 26 | 26 |
| SIM800_RX | 27 | 27 |
| SIM800_PWKEY | 4 | 4 |
| SIM800_RST | 5 | 5 |
| SIM800_POWER | 23 | 23 |
| SIM800_DTR || 32 |
| SIM800_RI || 33 |
| SDA | 21 | 21 |
| SCL | 22 | 22 |
| AXP IRQ || 35 |
| LED || 13 |




40 changes: 40 additions & 0 deletions doc/SIM800C_AXP192.MD
@@ -0,0 +1,40 @@
# Product

Update later

# Note
- For the first time, please remember to define the board model you use at the beginning of the sketch


# Introduction
AXP192 is the power supply used on the SIM800L board. It is an upgraded version of the IP5306 version. The following points are upgraded:
1. Change the power IC to AXP192 PMU management, support coulomb counter and high-precision voltage and current detection function, please refer to [X-Power official website](http://www.x-powers.com/en.php/Info/product_detail/article_id/29)
2. SIM800L **RI** Pin leads to ESP32, can wake up from receiving voice or data calls, and receiving messages
3. SIM800L **DTR** Pin leads to ESP32, which can wake up SIM800L from sleep state
4. The old and new versions are fully compatible and can be used as general examples. You don't need to care about the control of the AXP192 power chip, you can replace the new board on your original code without programming the AXP192, and provide AXP192 control example code


## Examples for SIM800L & SIM800C
- Arduino + TinyGSM library: [/examples/Arduino_TinyGSM](/examples/Arduino_TinyGSM)



## Pin definition
| Name | SIM800C |
| :----------: | :-----: |
| MODEM TX | 26 |
| MODEM RX | 27 |
| MODEM PWRKEY | 4 |
| MODEM RST | NC |
| MODEM POWER | 25 |
| MODEM DTR | 32 |
| MODEM RI | 33 |
| PMU SDA | 21 |
| PMU SCL | 22 |
| PMU IRQ | 35 |
| User LED | 12 |


# Sleep current
![](../image/SIM800C_AXP192_SLEEP.jpg)

35 changes: 35 additions & 0 deletions doc/SIM800L_AXP192.MD
@@ -0,0 +1,35 @@
# Product

![](../image/SIM800L_AXP192.jpg)

# Note
- For the first time, please remember to define the board model you use at the beginning of the sketch

# Introduction
AXP192 is the power supply used on the SIM800L board. It is an upgraded version of the IP5306 version. The following points are upgraded:
1. Change the power IC to AXP192 PMU management, support coulomb counter and high-precision voltage and current detection function, please refer to [X-Power official website](http://www.x-powers.com/en.php/Info/product_detail/article_id/29)
2. SIM800L **RI** Pin leads to ESP32, can wake up from receiving voice or data calls, and receiving messages
3. SIM800L **DTR** Pin leads to ESP32, which can wake up SIM800L from sleep state
4. The old and new versions are fully compatible and can be used as general examples. You don't need to care about the control of the AXP192 power chip, you can replace the new board on your original code without programming the AXP192, and provide AXP192 control example code


## Examples for SIM800L & SIM800C
- Arduino + TinyGSM library: [/examples/Arduino_TinyGSM](/examples/Arduino_TinyGSM)

## Pin definition
| Name | SIM800L |
| :----------: | :-----: |
| MODEM TX | 26 |
| MODEM RX | 27 |
| MODEM PWRKEY | 4 |
| MODEM RST | 5 |
| MODEM POWER | 23 |
| MODEM DTR | 32 |
| MODEM RI | 33 |
| PMU SDA | 21 |
| PMU SCL | 22 |
| PMU IRQ | 35 |
| User LED | 13 |

## Sleep current
![](../image/SIM800L_AXP192_SLEEP.jpg)
29 changes: 29 additions & 0 deletions doc/SIM800L_IP5306.MD
@@ -0,0 +1,29 @@
# Product

![](../image/SIM800L_IP5306.jpg)


## Examples for SIM800L IP5306 Version

- Loboris Micropython: [/examples/MicroPython_LoBo](/examples/MicroPython_LoBo)
- Arduino + TinyGSM library: [/examples/Arduino_TinyGSM](/examples/Arduino_TinyGSM)
- Arduino OTA update over GSM: [/examples/Arduino_GSM_OTA](/examples/Arduino_GSM_OTA)
- ESP-IDF: https://github.com/espressif/esp-idf/tree/master/examples/protocols/pppos_client
- Platformio Arduino_Thingsboard :[/examples/Platformio_Arduino_Thingsboard](/examples/Arduino_Deepsleep)

## Pin definition
| Name | Pins |
| :------------: | :---: |
| MODEM TX | 26 |
| MODEM RX | 27 |
| MODEM PWRKEY | 4 |
| MODEM RST | 5 |
| MODEM POWER | 23 |
| MODEM DTR ||
| MODEM RI ||
| POWER Chip SDA | 21 |
| POWER Chip SCL | 22 |
| LED ||

## Sleep current
![](../image/SIM800L_IP5306_SLEEP.jpg)
52 changes: 0 additions & 52 deletions docs/cn.md

This file was deleted.

65 changes: 0 additions & 65 deletions examples/Arduino_Deepsleep/Arduino_Deepsleep.ino

This file was deleted.

8 changes: 0 additions & 8 deletions examples/Arduino_Deepsleep/README.MD

This file was deleted.

0 comments on commit b0304b9

Please sign in to comment.