Search found 74 matches

by Mike Teachman
Mon Dec 03, 2018 11:55 pm
Forum: ESP8266 boards
Topic: Unable to operate with flash on Lolin board
Replies: 7
Views: 808

Re: Unable to operate with flash on Lolin board

Here is something that might help... with the Ampy software I always include the -d1 option. The -d1 option adds a one-second delay before ampy tries to use the raw REPL mode of operation. Using the option fixed the Ampy program hangs that I was seeing.
by Mike Teachman
Sun Dec 02, 2018 4:35 am
Forum: ESP8266 boards
Topic: Sending temperature data to....somwhere
Replies: 8
Views: 972

Re: Sending temperature data to....somwhere

Hi Chris, That's totally doable. Go to the Adafruit IO home, then create a new Feed, called say "switch". Then, open a Dashboard, create a new Toggle block and associate that block to the feed "switch". Next, in MicroPython, subscribe to the feed "switch". MQTT will update value of that feed each ti...
by Mike Teachman
Mon Nov 26, 2018 4:53 pm
Forum: Development of MicroPython
Topic: C coding examples for MicroPython Functions and Methods
Replies: 3
Views: 1519

C coding examples for MicroPython Functions and Methods

In the last month I started learning how to port ESP-IDF features into the LoBo ESP32 fork. Part of the learning adventure involved writing a C file that provides examples on how MicroPython functions and class methods map into a C implementation -- with a focus on understanding the many different w...
by Mike Teachman
Mon Nov 26, 2018 4:19 pm
Forum: ESP32 boards
Topic: High level GUI lib/framework
Replies: 32
Views: 6250

Re: High level GUI lib/framework

This is a fantastic resource, thanks Mike! Just what I needed. Cool. Thanks for letting me know it was useful! If you see anything amiss please let me know and I'll tune it up. I'll post it to the dev thread as well. [/quote] I've long thought that such a guide would be useful I couldn't agree more...
by Mike Teachman
Sat Nov 24, 2018 4:53 am
Forum: ESP8266 boards
Topic: umqtt.simple trouble
Replies: 4
Views: 1909

Re: umqtt.simple trouble

Darn frustrating. I might be able to help. Please take a look at my github MQTT examples. https://github.com/MikeTeachman/micropython-adafruit-mqtt-esp8266 https://github.com/MikeTeachman/micropython-thingspeak-mqtt-esp8266 They are for Adafruit IO and Thingspeak. In classes I teach on uPy they have...
by Mike Teachman
Wed Nov 21, 2018 8:40 pm
Forum: ESP8266 boards
Topic: Sending temperature data to....somwhere
Replies: 8
Views: 972

Re: Sending temperature data to....somwhere

You might take a look at the tutorials and code examples I put together describing how to use Thingspeak and Adafruit IO with MQTT. Examples for publish and subscribe. Thingspeak https://github.com/MikeTeachman/micropython-thingspeak-mqtt-esp8266 and Adafruit IO https://github.com/MikeTeachman/micro...
by Mike Teachman
Wed Nov 21, 2018 3:01 pm
Forum: ESP32 boards
Topic: High level GUI lib/framework
Replies: 32
Views: 6250

Re: High level GUI lib/framework

IMO the whole C modules "advanced" uP topic is a bit underexposed in the documentation. Something related that might be useful to those writing modules in C.... As part of my learning how to write uPy modules in C I wrote a C file providing examples of the patterns used to map uPy calls to C, for b...
by Mike Teachman
Sun Nov 18, 2018 7:11 pm
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 6
Views: 1937

Re: PMS5003 air quality sensor library

This driver was very easy to get running on the Lobo port. Implementation with the uasyncio module is a huge bonus. Excellent design approach. Big thanks for writing and sharing! Excellent docs too. Here is some sensor output, before and after a "smoking match test". Initial Readings ---------------...
by Mike Teachman
Thu Oct 11, 2018 11:27 pm
Forum: ESP32 boards
Topic: about esp32 mcahine.RTC.irq
Replies: 3
Views: 819

Re: about esp32 mcahine.RTC.irq

If you want to deepsleep for a period of time you can try the following in MicroPython v1.9.4 >>> import machine >>> machine.deepsleep(3000) <ESP32 resets after 3 seconds> you also might want to take a look at the LoBo port. It supports wake from deepsleep using a timer and using external pins https...
by Mike Teachman
Thu Sep 20, 2018 4:31 pm
Forum: ESP32 boards
Topic: Thingspeak - connection timeout
Replies: 1
Views: 424

Re: Thingspeak - connection timeout

I have a github repo that might help you troubleshoot the problem -- working examples for MQTT with Thingspeak on ESP32. The examples are tested with the latest uPy releases (but not yet the Loboris port).

https://github.com/MikeTeachman/micropy ... tt-esp8266