Search found 3455 matches

by pythoncoder
Fri Jul 19, 2019 5:30 am
Forum: General Discussion and Questions
Topic: keep wifi and umqttsimple "alive"? (beginner question)
Replies: 7
Views: 154

Re: keep wifi and umqttsimple "alive"? (beginner question)

Another relevant link is resilient MQTT which provides an asynchronous MQTT interface which can recover from outages. It offers true qos==1 service: if the WiFi fails a qos==1 message will be passed once connectivity is re-established. If you plan a DIY approach, expect to spend a great deal of time...
by pythoncoder
Thu Jul 18, 2019 5:13 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

The usual way to program MicroPython devices is as follows. Make no changes to boot.py (or absolutely minimal config changes). main.py consists of a single statement: import my_module my_module.py contains your code. That way you can develop your code at the REPL with an empty main.py. When it's wor...
by pythoncoder
Wed Jul 17, 2019 6:50 am
Forum: ESP8266 boards
Topic: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?
Replies: 8
Views: 271

Re: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?

Ah, you're right. Been spending too much time with Pyboards ;)
by pythoncoder
Wed Jul 17, 2019 6:44 am
Forum: Hardware Projects
Topic: Larger fonts on SSD1306 OLED displays
Replies: 9
Views: 5776

Re: Larger fonts on SSD1306 OLED displays

This forum supports MicroPython. CircuitPython is the Adafruit fork of MicroPython, and their SSD1306 driver differs from the MicroPython version. I don't know if Adafruit support using different fonts. A search on their forum or a query there might produce results. There is unofficial MicroPython s...
by pythoncoder
Tue Jul 16, 2019 10:20 am
Forum: ESP8266 boards
Topic: Remove '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00' files?
Replies: 8
Views: 271

Beware of MSC mode

The commonest cause of corruption is when the flash drive is configured for MSC (mass storage) mode. The nature of mass storage devices such as USB sticks is that the PC expects to have full control over the (presumed dumb) drive. If the device makes any changes to the filesystem all bets are off an...
by pythoncoder
Fri Jul 12, 2019 8:27 am
Forum: ESP32 boards
Topic: date time system
Replies: 4
Views: 165

Re: date time system

What IDE or development environment are you using? Perhaps that is setting the time. Note that the RTC will continue to run through a reboot.

The simple way to set the time is to acquire internet connectivity and run ntptime which gets time from an NTP server:

Code: Select all

import ntptime
ntptime.settime()
by pythoncoder
Thu Jul 11, 2019 3:31 pm
Forum: General Discussion and Questions
Topic: how fast is mycropython ?
Replies: 2
Views: 156

Re: how fast is mycropython ?

You might like to watch this talk by Damien which sheds a lot of light on this issue.
by pythoncoder
Thu Jul 11, 2019 3:22 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 741

Re: main.py does not appear to working after boot

@smith.randallscott For your test to pass, several things have to happen correctly and in sequence. main.py has to run The ESP32 has to connect to the WiFi network, waiting until the connection is successful. It then has to connect to the broker, again waiting for success. Finally it has to make a s...
by pythoncoder
Thu Jul 11, 2019 7:01 am
Forum: Hardware Projects
Topic: Greenhouse door opener
Replies: 3
Views: 166

Things to consider

@ajocius Unless you have a reasonable knowledge of electronics I would look for a commercial motor and controller designed for opening and closing a door, and linking that to your ESP32. A DC motor or linear actuator would be ideal for the job, but we're talking about a fairly powerful machine requi...