Search found 155 matches

by Mike Teachman
Fri Jan 24, 2020 1:55 am
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 26
Views: 16119

Re: MicroPython Startup Time

Right, no SPIRAM. Sorry, I didn't make any timing measurements with non-frozen mpy files. I'm curious now .... I'll try it tonight.
by Mike Teachman
Mon Jan 20, 2020 1:43 am
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 26
Views: 16119

Re: MicroPython Startup Time

Here's another datapoint for the discussion Lolin D32 ("regular" ESP32) board. MicroPython v1.12. ESP32 @240Mhz. I used an oscilloscope to measure the startup time. Startup time = time between rise of the Reset signal and rise of a GPIO pin (which the first MicroPython code that runs). Startup time,...
by Mike Teachman
Tue Dec 31, 2019 5:44 pm
Forum: ESP32 boards
Topic: Avoid code crash and exit
Replies: 5
Views: 3088

Re: Avoid code crash and exit

good suggestion @stijn. I'll update my post to remove the file create bit - left the mode as 'at' --- '+' is for reading and not needed in this use case
by Mike Teachman
Tue Dec 31, 2019 4:29 pm
Forum: ESP32 boards
Topic: Avoid code crash and exit
Replies: 5
Views: 3088

Re: Avoid code crash and exit

Pretty much the same as previous poster ... here is a technique I find useful to identify where application code is crashing on an unhandled exception. wrap the whole application in a try statement log the exception to a text file, using append mode so you can log multiple exceptions force a hardwar...
by Mike Teachman
Thu Nov 14, 2019 2:47 pm
Forum: ESP32 boards
Topic: i2s compatibility
Replies: 29
Views: 24579

Re: i2s compatibility

You might want to check out the ADC Data Collection feature in the Loboris port of the ESP32. https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/adc This feature uses an I2S peripheral to read an ADC and collect samples in the background using DMA. This capability is not yet implemented in...
by Mike Teachman
Tue Oct 22, 2019 3:57 pm
Forum: ESP32 boards
Topic: i2s compatibility
Replies: 29
Views: 24579

Re: i2s compatibility

Here is a binary to try out, in a Google Drive folder: https://drive.google.com/open?id=1AlhGXK56J0r8fLR3sivNQ3nvgz57CibY This firmware supports I2S using this commit PR https://github.com/miketeachman/micropython/commit/e4ffadac4cffda29b26ff32dc03b7810868dfa71 and includes the lastest Micropython c...
by Mike Teachman
Sat Jun 08, 2019 2:56 am
Forum: ESP32 boards
Topic: Watchdog timer implementation
Replies: 3
Views: 4677

Re: Watchdog timer implementation

Is it possible to consider an external watchdog device in your design? That would deliver a more robust implementation than an internal watchdog. The TPS3823-33 device from TI works well for ESP32 designs - it has both a voltage monitor and watchdog timer.
by Mike Teachman
Tue Apr 23, 2019 1:37 pm
Forum: ESP32 boards
Topic: RESOLVED - How can I debug an issue with SD Card reading?
Replies: 5
Views: 3448

Re: How can I debug an issue with SD Card reading?

Glad you got it working. Yay!.

After reading your description of the problem I have another idea. What voltage goes to the Catalex SD card reader? 3.3V or 5V? it looks like it needs a 5V input.

The 2nd SD Card you listed is the exact model that I use.
by Mike Teachman
Tue Apr 23, 2019 3:54 am
Forum: ESP32 boards
Topic: RESOLVED - How can I debug an issue with SD Card reading?
Replies: 5
Views: 3448

Re: How can I debug an issue with SD Card reading?

Here is what works for me, using the Lolin D32 Pro hardware. import uos import sdcard from machine import Pin from machine import SPI spi = SPI(1, sck=Pin(18), mosi=Pin(23), miso=Pin(19)) sd = sdcard.SDCard(spi, Pin(4)) uos.mount(sd, "/sd") Two thoughts: - I have problems getting small capacity SD c...
by Mike Teachman
Fri Apr 05, 2019 11:28 pm
Forum: ESP32 boards
Topic: How to turn off WiFi in async MQTT?
Replies: 20
Views: 15018

Re: How to turn off WiFi in async MQTT?

@blmorris Hi Bryan, Thanks responding to this topic. I'd really like to collaborate with you on any future Pyboard I2S work. I think it will beneficial if we can realize good alignment between ports that offer I2S capabilities. e.g. similar behaviour, method names, constants, etc. I have nothing at ...