Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
298 stars 129 forks source link

New version of hardware discussion #1

Closed lewisxhe closed 4 years ago

lewisxhe commented 5 years ago

In the previous version of SIM800L, many customers have put forward many good suggestions, so in the 7XXX version, the schematics are released first. Please give suggestions. We will adopt good comments in the new version of SIM7XXX series. Whether the chip is 7000G or 7600G, I will choose which one is the main chip in the following two replies.

Major changes regarding the new version:

  1. Add TP4056 as the main power chip and as a solar charge management chip
  2. Change the lithium battery to 18650 battery
  3. Add SD card slot

Welcome to make suggestions, thanks SIM7000X.pdf

lewisxhe commented 5 years ago

Use SIM 7000G, like this

lewisxhe commented 5 years ago

Use SIM 7600, like this

eueduardo3 commented 5 years ago

Use SIM 7600, like this

these changes will be amazing! Please do not forget that in all South America the compatible chip is SIM7600SA

nikil511 commented 5 years ago
lewisxhe commented 5 years ago

Thank you for your comments, we will listen to your suggestions. @nikil511

ClemensGruber commented 5 years ago

Please replace the battery plug with a JST PH 2-Pin as mentioned from nikil511 on https://github.com/Xinyuan-LilyGO/TTGO-T-Call/issues/13#issue-477119365

Consider replacing your battery plug with standard "JST PH 2-Pin" that everybody are using.

I would vote for an option to switch off the SIM completely, we'd like to use the board in an solar powered and low power setup to send data only every x hours. So for a battery life over some month the SIM must be swtched off completely with a LOW pin, for a circuit see https://community.hiveeyes.org/t/low-cost-gsm-gprs-sim800-node/439/9

Build in solar charger IC is great!

santiagobarros commented 5 years ago

VERY USEFUL!

  • Expose MP5403 OUT3 on spare PIN (IO16/NC) and connect EN3 on an ESP32 GPIO. It is very useful to have a spare voltage output for turning on/off peripherals, external sensors, etc.
Electra99 commented 5 years ago

The new T-Call board should have a 4-wire SPI interface for a 2,4"-3.5" TFT display incl touch. (and not only for small ~1" OLED displays with I2C) Please, do the SPI GPIO pin avalible on the new T-CALL board for at least one 4-wire SPI interface. Use SPI, HSPI or VSPI on ESP32-D0WD. Try to use VSPI (fastest) and avoid SPI (used by flash & PS-RAM). The SPI is not available for the ESP32-WROOM or ESP32-WROVER module. The TFT-displays have often a common SPI interface for TFT and touch controller, but separate ChipSelect CS and the CS could be connected with any GPIO pin.

List of necessary GPIO pin on ESP32-D0WD for VSPI, HSPI and SPI to connect a TFT display

VSPI GPIO MOSI(23), MISO(19), CLK(18) (fastest) HSPI GPIO MOSI(13), MISO(12), CLK(14) SPI GPIO MOSI(7), MISO(8), CLK(6) Note: The SPI CS could use any GPIO pin.

The TFT displays have seriell (SPI) or parallell (8 or 16 bits) interface. But for ESP32, the best choise is to use SPI to minimize the usage of GPIO-pins of the ESP32. I use the SPI 3,5" TFT touch display, design for Raspberry PI, on my TTGO T-CALL board and it is connected with HSPI.

Electra99 commented 5 years ago

Good "PowerManagment" is always great to have when the device is powered by battery :-) E.q. A burgular alarm system with a IR-detector and sending SMS alarm message. Possibility to "Turn off" the power to SIMXXX module and turn off +5V power to the TFT/OLED-display. Also possibility to connect chargeable 3.8V Li-ION battery or non-chargeable 3x1.5V standard battery e.q. AA or AAA.

lewisxhe commented 5 years ago

Our hardware engineer changed the solution because the second power supply of the MP5403 power supply could not be turned on to normal 3.3v, so change the scheme to PDF, use the switch to select USB and battery. SIM7000X_V1.pdf

@nikil511 @santiagobarros @Electra99 @eueduardo3

Electra99 commented 5 years ago

The V1 board have : PROS: 1) Have VSPI on U6 connector (GPIO 18,19,23) :-) 2) Have HSPI on U5 connector (GPIO 12,13,14) :-)

Major CONS: 1) I looks in the schematics when the power failure occurs on the USB-connector it's NOT possible to have the battery as automatic power backup :-( Please, add P channel MOSFET (or PNP SI) for automatic power switching between the USB power and battery power. Control the MOSFET gate, for battery powered board, to the detect if USB/+5V i availible or not.

2) Missing the possiblity to turn off the power to SIM9000G for power saving and pure battery applications. Please, add a P channel MOSFET (or PNP SI) to turn of the to the SIM9000G's VBAT pins 55, 56 and 57 and DVDD4V2. Connect the MOSFET's gate to i GPIO pin.

Nice to have: 1) Add extra 4 hole (for a new connector ) to be used as a Piggy-back connector for a small and cheap ~1" OLED I2C display. Same as TTGO T-Display board. (pin1 GND, pin2 +3V3, pin3 SCL, pin4 SLA) or add the OLED direct on the board, because it's so cheap. Power control to the OLED is great to have, by adding a P-channel MOSFET between 3.3V power VCC3V3 and OLED's 3.3V input pin. Connect the MOSFET base to a GPIO pin.

2) Add a extra 4 hole (for a new connector ) with 4xN channel MOSFET open collector output driver (1-6A) to be used for for e.q. external relays, 2 phase 6 wire Stepper motor NEMA17-23, PWM speed controlled 3-phase motor, BLDC-motor. Add a extra protection diod between each output and GND.

3) Add 1 or 2 small mechnical switches on the board and connect them to GPIO ports. These could be used for manual configuration e.q. to setup a alarm temperature and display on the OLED display. The ESP32 software could controlled up to tripple functions for each switch by using click, double click and tripple click. This switch libarary exist on GITHUB.

nikil511 commented 5 years ago

Obviously is it vital to get power supply design right. In general I agree with @Electra99 comments.

In fact, it would be nice to go for a more sophisticated power management design with a chip that has I2C and has fuel gauge / coulomb counter so we can measure mAh, as well as additional outputs that we can control over I2C.

However a simple design is safer, robust and usually cheaper. If this latest design has good efficiency on both BAT operation and SOLAR charging, then I am happy with this and I do not mind changing a switch/jumper upon field deployment. I also do not mind that the external voltage monitoring will give a very rough idea of battery state and false picture during charging.

A few N channel MOSFETs would be very useful and a better replacement for the missing "MP5403 OUT3"

Looking forward testing an actual board (!)

lewisxhe commented 5 years ago

sim7000x.pdf The new changes are as follows @nikil511 @Electra99

Electra99 commented 5 years ago

It look better ;-) But, it would be great if the TTGO-board could detect and send a SMS alarm when the USB power has failed. Use ADC input on ESP32 and two resistors between GND and VBUS (for voltage division). Same solution as VBAT to IO35(ADC)

Gary-cat commented 4 years ago

When would the new unit be avaliable to purchase. I have have just rolled out 10 of the current version.

bangonkali commented 4 years ago

It look better ;-) But, it would be great if the TTGO-board could detect and send a SMS alarm when the USB power has failed. Use ADC input on ESP32 and two resistors between GND and VBUS (for voltage division). Same solution as VBAT to IO35(ADC)

I support this. I have a client that requires notification if a node is potentially going to go down, ie busted/broken USB power bank or unplugged from AC. The smaller bat can take care of sending notification. More of a power supply redundancy in this case.

santiagobarros commented 4 years ago

However a simple design is safer, robust and usually cheaper. If this latest design has good efficiency on both BAT operation and SOLAR charging, then I am happy with this and I do not mind changing a switch/jumper upon field deployment. I also do not mind that the external voltage monitoring will give a very rough idea of battery state and false picture during charging.

totally agree with this. Keeping it simple.

Regarding the peripheral on/off option proposed using MP5403, is there any alternative to switch the power or externar peripherals? Maybe WROVER GPIO controlled switch drawing current from usb 5v0 or from a duplicate of ME6217-3.3V

ashley-schaeffer commented 4 years ago

Since the SIM7000 seems to support GPS and NMEA output over either USB or the UART3_TX/UART3_RX pins it might be a good idea to also connect (or at least breakout) those pins?

This way the standard RX/TX pins can be used as dedicated modem pins for AT commands while simultaneously using UART3 for NMEA data. If those pins aren’t connected it will be next to impossible to use the modem and GPS module at the same time. (NMEA can be output over USB but reading it out over USB using the esp32 seems to be unnecessarily complicating things)

Disclaimer: I haven’t actually used the SIM7000 module so perhaps somebody who actually has can comment whether there is another workaround.

lewisxhe commented 4 years ago

At present SIM7000 has passed the test and is preparing to be put on the shelves. It will be available for purchase soon.

Gary-cat commented 4 years ago

This is awesome, I cant wait

Kind regards Gary Jurgens CTIO, Technical Architect. Email: gary@overscope.co.zamailto:gary@overscope.co.za Web: www.overscope.co.zahttp://www.overscope.co.za Cell: +27 (0) 71 052 2778

From: lewis he notifications@github.com Sent: Monday, 23 December 2019 2:59 AM To: Xinyuan-LilyGO/T-SIM T-SIM@noreply.github.com Cc: Gary Jurgens gary@overscope.co.za; Comment comment@noreply.github.com Subject: Re: [Xinyuan-LilyGO/T-SIM] New version of hardware discussion (#1)

At present SIM7000 has passed the test and is preparing to be put on the shelves. It will be available for purchase soon.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Xinyuan-LilyGO/T-SIM/issues/1?email_source=notifications&email_token=AN7AZUNXQYA7RH32OIBDHHLQ2AEM3A5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHP54VA#issuecomment-568319572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN7AZULWYRG2T72HHZHBTJ3Q2AEM3ANCNFSM4JFLJS2A.

lewisxhe commented 4 years ago

Product is already available https://www.aliexpress.com/item/4000542688096.html

Gary-cat commented 4 years ago

Awsome already contemplating ordering 10 in the new year. Does the Vin pin charge the battery in this version.

Gary-cat commented 4 years ago

Awsome already contemplating ordering 10 in the new year. Does the Vin pin charge the battery in this version.

Bump

lewisxhe commented 4 years ago

@Gary-cat As can be seen from the schematic, there is a VBAT pin, which is directly connected to the battery charging input

Gary-cat commented 4 years ago

HI thanks

So it will power the whole board, I am just making sure before ordering 10.

Has Tiny GSM been shown to work on this board yet, with GPS Functionality?

@Gary-cathttps://github.com/Gary-cat As can be seen from the schematic, there is a VBAT pin, which is directly connected to the battery charging input

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Xinyuan-LilyGO/T-SIM/issues/1?email_source=notifications&email_token=AN7AZULKBURLFUPSEYSKM7DQ3U4MFA5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5QHTQ#issuecomment-570098638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN7AZUIPUYKDZAR7FSKK2BDQ3U4MFANCNFSM4JFLJS2A.

lewisxhe commented 4 years ago

It is possible to use TinyGSM, and GPS is fully working. @Gary-cat 123

Gary-cat commented 4 years ago

Hi

Thank you, My apologies for all the questions, however, I live in South Africa and Buying volume (10 to start with) but potentially 200, in the long run, I need to be sure. And you seem like great developers. Does the 7000g support Active GPS Antenna ?. I already have 2 of your units (T-Call) working in some of the harshest Coal Mines in South Africa for over 4 weeks now, and they work flawlessly despite the rough conditions. That’s how good I believe this product is.

Is Alibaba the only way to purchase these products from you?

From: lewis he notifications@github.com Sent: Thursday, 02 January 2020 8:11 AM To: Xinyuan-LilyGO/T-SIM T-SIM@noreply.github.com Cc: Gary Jurgens gary@overscope.co.za; Mention mention@noreply.github.com Subject: Re: [Xinyuan-LilyGO/T-SIM] New version of hardware discussion (#1)

It is possible to use TinyGSM, and GPS is fully working. @Gary-cathttps://github.com/Gary-cat [Image removed by sender. 123]https://user-images.githubusercontent.com/22990954/71653876-afa71480-2d69-11ea-9061-735f053a7ae1.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Xinyuan-LilyGO/T-SIM/issues/1?email_source=notifications&email_token=AN7AZUKZQ3MPCMEEKJFFU2TQ3WAPVA5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH5W3KY#issuecomment-570125739, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN7AZUILVCDMMAF66XUW5MDQ3WAPVANCNFSM4JFLJS2A.

lewisxhe commented 4 years ago

@Gary-cat The SIM7000G board is powered by an active GPS antenna. Yes, only AliExpress is currently available, as if it is available on eBay.

Gary-cat commented 4 years ago

Good Morning

Would you be so kind as to post a footprint of this modual or an EASYEDA Model, i need to design a PCB around it.

thank you

lewisxhe commented 4 years ago

Do you need a dimensional drawing? @Gary-cat

F66KLZ(EZYI$X{@~_6FMU U

Gary-cat commented 4 years ago

Hi

Thanks that would help

Also the underside for the battery so I can router the board so the battery fits through.

Thank you

Gary-cat commented 4 years ago

Thanks you for the drawings, what is the length from the top of the board to the first pin, left and right, that the only dimension that is left out.

From: lewis he notifications@github.com Sent: Monday, 06 January 2020 7:34 AM To: Xinyuan-LilyGO/LilyGO-T-SIM7000G LilyGO-T-SIM7000G@noreply.github.com Cc: Gary Jurgens gary@overscope.co.za; Mention mention@noreply.github.com Subject: Re: [Xinyuan-LilyGO/LilyGO-T-SIM7000G] New version of hardware discussion (#1)

Do you need a dimensional drawing? @Gary-cathttps://github.com/Gary-cat

[Image removed by sender. F66KLZ(EZYI$X{@~_6FMU U]https://user-images.githubusercontent.com/22990954/71797449-23f2f800-3089-11ea-9bb0-b8317e55ba8b.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/issues/1?email_source=notifications&email_token=AN7AZUMJKY5ZWWQL3JNMBKTQ4K7EZA5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEO2II#issuecomment-571010337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN7AZUORUP6FPDJFOKDUNDDQ4K7EZANCNFSM4JFLJS2A.

lewisxhe commented 4 years ago

Updated, thanks for reminding @Gary-cat

teezzan commented 4 years ago

@Gary-cat Will the library be available for the public? And on what EDA will it be on? Thank you for your effort.

bangonkali commented 4 years ago

Much appreciated if there is one available for EasyEDA.

teezzan commented 4 years ago

Eagle will be cool too...

hardmax commented 4 years ago

Hi

Sorry, maybe is a stupid question but, Why IO21 IO22 IO32 and IO33 are pulled up?

Thanks for yu answer

lewisxhe commented 4 years ago

@hardmax Thank you for reminding, 32, 33 This should be redundant and can be removed, 21, 22, in fact it can be retained, because the design can use the general I2C module combination

ClemensGruber commented 4 years ago

Has someone tested the deep sleep current of the system already? SIM7000 seems to be promising with 9 uA in Power Saving Mode (PSM). AT command ”AT+CPSMS=1” can enable the PSM mode.

jbrepogmailcom commented 4 years ago

It look better ;-) But, it would be great if the TTGO-board could detect and send a SMS alarm when the USB power has failed. Use ADC input on ESP32 and two resistors between GND and VBUS (for voltage division). Same solution as VBAT to IO35(ADC)

Hello - would the voltage divider cause a constant current drain? If voltage divider is really needed, then I would connect its ground to GPIO pin pulled up, so no current is drained. Then when I want to measure voltage, I would set that GPIO LOW, measure voltage and then set it back up or leave floating. What do you think?

ahmadfarisfs commented 4 years ago

Hello, what a great board ! But How do I measure battery voltage with this board ?

nikil511 commented 4 years ago

GPIO35 should have a voltage devider on vbat according to schematics. My (beta) hardware was missing the upper resistor, so in case you read zero, you need to add a 100k ohm between vbat and pin 35

On Wed, Jan 22, 2020, 02:08 ahmadfarisfs notifications@github.com wrote:

Hello, what a great board ! But How do I measure battery voltage with this board ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/issues/1?email_source=notifications&email_token=AAHB4ORCGKLJ45AGJMXV6IDQ66FADA5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRX7XQ#issuecomment-576946142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OUFN3YFIIRH56MAWLLQ66FADANCNFSM4JFLJS2A .

roberto1984 commented 4 years ago

Dears, I have a question for this board and also for the 2g version with sim800l.. If I connect to the internet with data plan of the sim card,then is possible to set the board to act as an access point and allow other device connecting to it to send data on internet through the previous established data sim connection? Thanks in advance

lewisxhe commented 4 years ago

@roberto1984 Are you talking about data forwarding? esp32-> sim800 / sim7000-> internet? This is ok and needs to be handled on the code yourself

lewisxhe commented 4 years ago

We will check @nikil511

lewisxhe commented 4 years ago

This issue is too long, I will close it, if there is a problem, please re-open a theme

roberto1984 commented 4 years ago

@lewisxhe no I'm talking about use a single board,for instance the one with sim800l,using sim to establish an internet connection and once established let other devices send data on internet connecting via wify to the board using the previous established connection with SIM card.

lewisxhe commented 4 years ago

You said that sim800 establishes a connection with the Internet and sends data to the sim800 single board through wifi? @roberto1984

nikil511 commented 4 years ago

Esp32 as an internet router ( wifi hotspot with gsm backhaul ) will be very slow, there are various limitations, and this is not Arduino friendly (or possible) requires RTOS, NAT ip,port managment and more.

A project that could evolve that way does exist but I think there is a lot of extra work that needs to be done with no obvious value.

https://www.esp32.com/viewtopic.php?t=1496

On Tue, Jan 28, 2020, 08:56 lewis he notifications@github.com wrote:

You said that sim800 establishes a connection with the Internet and sends data to the sim800 single board through wifi? @roberto1984 https://github.com/roberto1984

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/issues/1?email_source=notifications&email_token=AAHB4OVR4WWCPLO57M2U6CTQ77JJFA5CNFSM4JFLJS2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKCHT4Q#issuecomment-579107314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHB4OU2M46LVJQT62RVJ23Q77JJFANCNFSM4JFLJS2A .

karioja commented 4 years ago

I was pleased to find the DTR is connected. However, why leave RI unconnected? Connect RI to an interrupt capable pin on the ESP32. This way you would be able to put both the SIM7000 into sleep and ESP32 into deep sleep and have the LTE module wake up ESP32 when there's any activity (incoming SMS for example). I've been searching for a good SIM7x00 module a long time. Most of the modules on ebay and aliexpress are crap. They just connect VIN, GND, RX and TX. No DTR. No RI. This module came so close.