Search found 93 matches

by Mike Teachman
Tue Dec 31, 2019 5:44 pm
Forum: ESP32 boards
Topic: Avoid code crash and exit
Replies: 5
Views: 854

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: 854

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: 8061

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: 8061

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: 1750

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: 1040

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: 1040

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: 4312

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 ...
by Mike Teachman
Wed Apr 03, 2019 5:52 am
Forum: ESP32 boards
Topic: How to turn off WiFi in async MQTT?
Replies: 20
Views: 4312

Re: How to turn off WiFi in async MQTT?

You're probably aware that @blmorris did some work on Pyboard I2S Definitely. I reviewed his work extensively. His I2S implementation was definitely more ambitious than mine. I only implemented master I2S, no slave. I tried to pattern the I2S uPy API arguments and methods using the I2S API that he ...
by Mike Teachman
Wed Apr 03, 2019 5:23 am
Forum: ESP32 boards
Topic: How to turn off WiFi in async MQTT?
Replies: 20
Views: 4312

Re: How to turn off WiFi in async MQTT?

I implemented the pause/resume feature on a different branch (and only for the esp32) and did test it with the esp32 mainline. Worked well in my short test. You'd have to test it for yourself with the lobo fork and in full use: https://github.com/kevinkk525/micropython-mqtt/tree/pause_resume It als...