Search found 27 matches

by cable134
Fri Jul 05, 2019 11:59 pm
Forum: ESP32 boards
Topic: ESP32 sleep_us periodic fail
Replies: 2
Views: 204

Re: ESP32 sleep_us periodic fail

The secret was in txbuf.

If you are going to send via UART a big array you should increase txbuf to get stable timing.
by cable134
Thu Jul 04, 2019 1:02 pm
Forum: ESP32 boards
Topic: ESP32 sleep_us periodic fail
Replies: 2
Views: 204

Re: ESP32 sleep_us periodic fail

An update.

If I comment out (disable) uart.write operation, sleep work fine.
Timings are beautiful.

So seems that UART operation does something wrong with sleep command.
by cable134
Tue Jul 02, 2019 12:55 pm
Forum: ESP32 boards
Topic: ESP32 sleep_us periodic fail
Replies: 2
Views: 204

ESP32 sleep_us periodic fail

Hi everyone. Hope someone will help me with the problem I face. Now I'm working on Modbus RTU tests and faced that sometimes time.sleep_us provides a wrong sleep period. Please look at code and diagram from my Logic. The idea of the test example is to send via UART 255 symbols and rise up an additio...
by cable134
Fri Apr 27, 2018 10:52 pm
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

by cable134
Wed Apr 25, 2018 8:46 am
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

UPDATE I made a new hardware setup with a different GPS module. And also I tried a different code to test. This is a simple code that reads NMEA messages and checks it's CRC. Unfortunately, I still have different errors in the UART and crashes. Sometimes it's from machine import UART import utime, g...
by cable134
Sun Apr 22, 2018 10:10 pm
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

Also, I tested micropyGPS module on ESP32 themselves.

I recorded NMEA data from my Ublox module to file about 650Kb.

Then, I parsed this file by the module.

It works brilliantly.
I got 0 CRC errors.

Thus, it looks that micropyGPS works on ESP32 fine.
by cable134
Sun Apr 22, 2018 5:57 pm
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

Just tested with +3.3V powering. running via ./BUILD.sh monitor ... stat = my_gps.update(chr(x)) ... testth=_thread.start_new_thread("GPS", test, ()) ... >>> import gps_test >>> ±0.677,6.49,220418,,,A*61 $GPVTG,6.49,T,,M,0.677,N,1.253,K,A*35 $GPGGA,174844.00,6028.12773,N,03028.34096,E,1,07,1.24,229....
by cable134
Sun Apr 22, 2018 5:29 pm
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

I've used almost the same board (the blue one, couple of passive components different). The only difference is that I've connected GPS board Vcc to 3.3V and pins used for UART were tx=25, rx=26 . Tested on Wemos Lolin 32 Pro . I have run my test progam (from earlier post) for almost 24 hours withou...
by cable134
Sun Apr 22, 2018 1:45 pm
Forum: ESP32 boards
Topic: Anyone recommending a good IDE?
Replies: 18
Views: 6947

Re: Anyone recommending a good IDE?

I'm using PyCharm + with Micropython plugin (https://github.com/vlasovskikh/intellij-micropython) This plugin does not support ESP32 dialect but anyway works fine. It's possible to upload and run files directly from the IDE. I've modified some plugin's scripts to work with Loboris port. For this mom...
by cable134
Sun Apr 22, 2018 11:19 am
Forum: ESP32 boards
Topic: micropyGPS crashes my ESP32
Replies: 20
Views: 3071

Re: micropyGPS crashes my ESP32

Here is the code I was using during my tests from machine import UART from micropyGPS import MicropyGPS import utime, gc, _thread uart = UART(2, rx=13, tx=12, baudrate=9600, bits=8, parity=None, stop=1, timeout=200, buffer_size=256, lineend='\r\n') #doit.am board my_gps = MicropyGPS(local_offset=0, ...