Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of hardware discussion #1

Closed
lewisxhe opened this issue Oct 26, 2019 · 55 comments
Closed

New version of hardware discussion #1

lewisxhe opened this issue Oct 26, 2019 · 55 comments

Comments

@lewisxhe
Copy link
Contributor

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
Copy link
Contributor Author

Use SIM 7000G, like this

@lewisxhe
Copy link
Contributor Author

lewisxhe commented Oct 26, 2019

Use SIM 7600, like this

@eueduardo3
Copy link

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
Copy link

  • DTR connected on an ESP32 GPIO for controlling SIM7000 sleep/wake.
    When doing frequent network uploads (e.g. every minute) we do not want to power off and power on, register on network, turn GPRS. This wastes more energy than keeping the SIM7000 powered on but sleeping. In sleep mode, the current consumption is reduced to the minimal level (<1ma) and
    SIM7000 can still receive paging messages and SMS.

  • Battery voltage monitor.
    You could connect SIM7000 ADC pin directly on VBAT and we can use "AT+CADC" to get the battery when module is on. Or you can use a voltage divider on ESP32 S_VN like in T-CALL

  • SOLAR_IN voltage monitor.
    Again with a voltage divider on the ESP32 S_VN or S_VP we can measure solar panel voltage, which is very useful.

  • VBAT+ on a PIN (IO17/NC).
    So we can connect an external battery or external fuel gauge, or voltage divider (in case you do not put one). I understand you plan to put a 18650 socket, which is good, but let's keep the option for an external battery.

  • 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.

  • Expose SIM7000 BOOT_CFG on a test pad, in case we want to flash the SIM7000 firmware.

  • SIM7000 is better than SIM7600 for ESP32 in my opinion.
    SIM7000 supports both NBIoT and LTE-M
    SIM7600 supports only LTE-M
    If you see the GSMA global network deployment, SIM7000 has double coverage, thus double market, than SIM7600. (SIM7000 should work in South America too, have you tried @eueduardo3 ?)
    https://www.gsma.com/iot/deployment-map/
    SIM7000 has very low power consumption on NBIoT mode, making it ideal for sensor applications. SIM7600 has more bandwidth/speed, so its better for a RPi HAT.

@lewisxhe
Copy link
Contributor Author

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

@ClemensGruber
Copy link

ClemensGruber commented Nov 1, 2019

Please replace the battery plug with a JST PH 2-Pin as mentioned from nikil511 on Xinyuan-LilyGO/LilyGo-T-Call-SIM800#13 (comment)

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
Copy link

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
Copy link

Electra99 commented Nov 11, 2019

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
Copy link

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
Copy link
Contributor Author

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
Copy link

Electra99 commented Nov 14, 2019

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
Copy link

nikil511 commented Nov 17, 2019

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
Copy link
Contributor Author

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

@Electra99
Copy link

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
Copy link

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

@bangonkali
Copy link

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
Copy link

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
Copy link

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
Copy link
Contributor Author

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
Copy link

Gary-cat commented Dec 23, 2019 via email

@lewisxhe
Copy link
Contributor Author

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

@Gary-cat
Copy link

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

@Gary-cat
Copy link

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

Bump

@lewisxhe
Copy link
Contributor Author

lewisxhe commented Jan 2, 2020

@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
Copy link

Gary-cat commented Jan 2, 2020 via email

@lewisxhe
Copy link
Contributor Author

lewisxhe commented Jan 2, 2020

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

@Gary-cat
Copy link

Gary-cat commented Jan 2, 2020 via email

@lewisxhe
Copy link
Contributor Author

lewisxhe commented Jan 2, 2020

@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
Copy link

Gary-cat commented Jan 6, 2020

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
Copy link
Contributor Author

lewisxhe commented Jan 6, 2020

Do you need a dimensional drawing? @Gary-cat

F66KLZ(EZYI$X{@~_6FMU U

@Gary-cat
Copy link

Gary-cat commented Jan 6, 2020 via email

@Gary-cat
Copy link

Gary-cat commented Jan 6, 2020 via email

@lewisxhe
Copy link
Contributor Author

lewisxhe commented Jan 6, 2020

Updated, thanks for reminding @Gary-cat

@teezzan
Copy link

teezzan commented Jan 13, 2020

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

@bangonkali
Copy link

Much appreciated if there is one available for EasyEDA.

@teezzan
Copy link

teezzan commented Jan 13, 2020

Eagle will be cool too...

@hardmax
Copy link

hardmax commented Jan 13, 2020

Hi

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

Thanks for yu answer

@lewisxhe
Copy link
Contributor Author

@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
Copy link

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
Copy link

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
Copy link

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

@nikil511
Copy link

nikil511 commented Jan 22, 2020 via email

@roberto1984
Copy link

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
Copy link
Contributor Author

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

@lewisxhe
Copy link
Contributor Author

We will check @nikil511

@lewisxhe
Copy link
Contributor Author

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

@roberto1984
Copy link

@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
Copy link
Contributor Author

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

@nikil511
Copy link

nikil511 commented Jan 28, 2020 via email

@karioja
Copy link

karioja commented Feb 13, 2020

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.

@lewisxhe
Copy link
Contributor Author

Yes, this is indeed not reserved and will be added in the next revision @karioja

@hardmax
Copy link

hardmax commented Feb 17, 2020

Hi,
I try with this hardware and Its great. But with the battery Holder in back, Its dificult put conectors or maybe a Hat to connect anothers thinks, like sensors or anything else. Another thing its size, Its too large and is dificult find a water probe case. Maybe if you remove the battery Holder and replace it with a conector, and change shape of PCB for a square (smaller) will be great...

@Gary-cat
Copy link

Gary-cat commented Feb 18, 2020 via email

@thomas-rode
Copy link

Hi,
on GPIO35 I measure withn multimeter 2,05 V (its Ubatt/2), but with the example code, I read 0V (the solar voltage works fine!). I belive, this is no problem with the 100k pullup, must be some other problem ... any idea?

@MalharJojare
Copy link

Anyone worked on SIM7600 for data transmission and reception using Arduino/STM32/ ESP8266..............

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests