Search found 3861 matches

by pythoncoder
Thu Jan 23, 2020 7:14 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 38
Views: 1870

Re: asynycio as_GPS

I am puzzled: as_gps.py should ignore unsupported sentences, just incrementing debugging counters. See this line . By default such sentences should be ignored. There is an option to handle them in a subclass by overriding the parse method. I am also puzzled by your having problems with stationary de...
by pythoncoder
Thu Jan 23, 2020 4:02 pm
Forum: General Discussion and Questions
Topic: Esp32 Firmware v1.12 Bug (Neopixel Glitches)
Replies: 1
Views: 66

Re: Esp32 Firmware v1.12 Bug (Neopixel Glitches)

You may get better results using uasyncio instead of threading.
by pythoncoder
Thu Jan 23, 2020 3:33 pm
Forum: Programs, Libraries and Tools
Topic: Multiaxis stepper motors using RMT
Replies: 29
Views: 927

Re: Multiaxis stepper motors using RMT

... That matches my observation that the ESP32 port here with SPIRAM is slow... Indeed, that seemed the only explanation for the discrepancy. In particular gc is slow as it has to trawl through the whole RAM. This shouldn't affect these tests as it is performed prior to each run, but in general it ...
by pythoncoder
Thu Jan 23, 2020 3:27 pm
Forum: General Discussion and Questions
Topic: Pyboard demo not working
Replies: 1
Views: 47

Re: Pyboard demo not working

I raised this issue last summer. I don't know why it hasn't been fixed.
by pythoncoder
Thu Jan 23, 2020 9:54 am
Forum: Programs, Libraries and Tools
Topic: Multiaxis stepper motors using RMT
Replies: 29
Views: 927

Re: Multiaxis stepper motors using RMT

You might like to try @micropython.viper def do_int2(s: int, d:int, m:int)->int: sdm = s * d + m // 2 return sdm // m - (sdm - d) // m I can't replicate your timings, even increasing the clock to 240MHz mine are slower: tested on an ESP32 with SPIRAM. But Viper did produce a significant improvement....
by pythoncoder
Wed Jan 22, 2020 10:02 am
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 3
Views: 94

Re: "machine.RTC" alarm + set irq

I think the best approach is if you could explain what you are trying to achieve. Are you aiming to wake a board from a sleep state or merely to schedule events (e.g. callbacks) at certain future times? If the latter I can point you to simple solutions which will work on any platform and which don't...
by pythoncoder
Wed Jan 22, 2020 9:57 am
Forum: General Discussion and Questions
Topic: uart.read() error with PYBD-SF6W
Replies: 6
Views: 136

Re: uart.read() error with PYBD-SF6W

...Is it really that hard for developers to implement a callback functionality for UART, both Rx and TX would be useful?... The benefit of callbacks is to facilitate concurrency. MicroPython achieves this with uasyncio. The following code sample handles concurrent reading from and writing to a UART...
by pythoncoder
Tue Jan 21, 2020 7:00 pm
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 3
Views: 94

Re: "machine.RTC" alarm + set irq

Unfortunately the machine.RTC documentation is misleading in that some methods are unavailable on some platforms. The ESP32 currently only supports methods datetime, init and memory.
by pythoncoder
Tue Jan 21, 2020 9:43 am
Forum: Programs, Libraries and Tools
Topic: Circuit python and maestro servo controller
Replies: 1
Views: 51

Re: Circuit python and maestro servo controller

As you doubtless know, CircuitPython is an Adafruit fork of MicroPython. Most (all?) those in this forum use official MicroPython. So I suggest you raise the query on the Adafruit forum.

MicroPython can drive servos without the need for external hardware.
by pythoncoder
Tue Jan 21, 2020 9:17 am
Forum: General Discussion and Questions
Topic: uart.read() error with PYBD-SF6W
Replies: 6
Views: 136

Re: uart.read() error with PYBD-SF6W

By far the best way to debug this would be to put a scope or logic analyser on the UART lines. A Saleae analyser (or Chinese clone) will show exactly what's going on. A few thoughts on tests you might perform. The baudrate of 1000000 is not a standard value. I would check whether the UART is actuall...