Git Product home page Git Product logo

car's Introduction

CAR

Call A Robot using LilyGo SIM7000G Module ESP32 Development board with integrated 4G/GPS and BT/WIFI modules

CURRENTLY testing board and getting used to different Micropythons

Install

  • First flash the device as with the ESP32-MicroPython although you need to flash MicroPython_LoBo as this version has specific built in modules such as GSM.
  • Examples to test GPS and GSM of the LilyGo-SIM7000G can be tried although without a SIM card and APN you will receive Status: (98, 'Not started') error and the modem will not respond
  • If you get a E (1051) MicroPython: Error while opening MicroPython NVS name space error then you probably did not erase the firmware.
  • If you get a W (2128) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration error this is likely to be related to a power supply issue. Use a better cable or do not go through a USB hub. Unplug ESP32 card and try again

LoBo MicroPython

  • LoBo is not maintained any more (since 2018) and ideally standard MicroPython should be used, however specific boards have specific needs and the LilyGo SIM7000G with ESP32 requires GSM module which isnt present within standard MicroPython.

Threads

  • LoBo Threads are slightly different from standard Micro Python threads so many examples will fail. LoBo requires a thread name as first parameter.

Bluetooth

  • LoBo Micropython doesn't have Bluetooth within the network module

WiFi

  • WiFi.py sets up WiFi successfully. WiFi on standard MicroPython and LoBo is the same.

GSM / GPS LilyGo SIM7000G

MQTT

  • LoBo MicroPython fails to import micropython-umqtt.simple and micropython-umqtt.robust via upip.install('micropython-umqtt.robust2') therefore use: Git repo simple2 and robust2
  • MQTT Manual

Network Utils

Battery

  • ESP32 Pin 35 (vbat) is connected to ADC but can't be read when powered from USB (it reads 142). On full attenuation should read 4095 - which will be half the battery voltage since vbat is divided by 2 resistors. Obviously you need to find the min and max allowed levels and plot the battery decay to get some idea of power drain. A guide explains.
from machine import Pin, ADC

battery = ADC(35)
battery.atten(ADC.ATTN_11DB)

def getBattery():
    #Full range: 0-3.3v
    return battery.read()
  • SIM7000G has a battery pin (VBAT) and it can be read via an AT command

gsm.atcmd('AT+CBC', printable=True)

Real Time Clock

TCP/IP

SIM7000G UART

car's People

Contributors

18684092 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

car's Issues

GSM + GPS

Hi There, did you try GPS and GSM at the same time, I can not make it works together, I mean If I get GSM connection GPS does not response to AT commands.

Thanks
Lee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.