Search found 342 matches

by kfricke
Fri Apr 21, 2017 12:09 pm
Forum: ESP8266 boards
Topic: DEV 1143 and reset
Replies: 3
Views: 1152

Re: DEV 1143 and reset

I think if you just introduce a very few microseconds of delay/sleep in your code, will let the RTOS, in which Micropython is embedded in, handle the WiFi stuff and avoid the reset.

Of course you must calculate the delay with you favoured refresh rate of the display.
by kfricke
Mon Mar 27, 2017 7:19 pm
Forum: ESP8266 boards
Topic: Saving power
Replies: 20
Views: 9154

Re: Saving power

The ESP8266 radio can be turned off, but it is not implemented. It is a startup flag and switching this involves rebooting the MCU completely.
by kfricke
Fri Mar 03, 2017 9:23 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

This discussion is very interesting, but I think it's a bit off topic. Should we move to another thread? I'd love to hear more about powering options.. My story about the dash button was meant for your scenario, tbh. You do have GPIOs available, so why not use those to implement an external circuit...
by kfricke
Fri Mar 03, 2017 9:17 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

... def call_this(change): print(change) p2 = Pin(2, Pin.IN) p2.irq(trigger=Pin.IRQ_FALLING, handler=call_this) To be honest I have not noticed that Pin.irq(...) method before. Did you see that it seems to return a callback object? Where did you read about the argument for the handler method? Did y...
by kfricke
Thu Mar 02, 2017 11:19 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

A few weeks ago i did read in a vanished (blame the DMCA) article about the second generation of Amazon dash buttons: They do use a user exposed push-button to switch a transistor/MOSFET which powers up the MCU. Then the dash's MCU uses one of its own GPIOs to take over to keep the transistor/MOSEFT...
by kfricke
Thu Mar 02, 2017 11:05 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

...Is there a command to run to check when you're on the network? I've got a built in 5 sec delay in my projects before connecting to the MQTT broker, but I'd like to replace that with something more reliable Sure take the following example: ... print('Connecting to WLAN...') wlan = network.WLAN(ne...
by kfricke
Thu Mar 02, 2017 10:47 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

... Would a polling solution like the following work fine? while True: # Check if GPIO(0 or 2) is high/low # Act accordingly time.sleep_ms(100) No, sorry this is a wrong assumption. There are the following sleep modes and their power consumption: Modem sleep - 15 mA Light Sleep - 0.9 mA Deep-Sleep ...
by kfricke
Wed Mar 01, 2017 10:59 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

I didn't look into sleep modes yet, but I guess another issue, specific to the esp-01, is that wake up from deep sleep is impossible unless you rewire the circuitry with some pins on the board. Maybe a sleep mode without deactivating wifi is possible.. Yes, you do need to wire GPIO16 to RESET. This...
by kfricke
Tue Feb 28, 2017 11:03 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 7485

Re: How do you properly handle external interrupts?

The really power-saving sleep modes need to disable WiFi completely. So waking up and connecting to a previously known WiFi does take a few seconds... ~4 including when getting a DHCP lease and only ~2 seconds less with a static IP. I do not like to sound pessimistic, but this seems to not be a resp...
by kfricke
Mon Feb 27, 2017 7:01 pm
Forum: General Discussion and Questions
Topic: Connecting to Enterprise Wi-Fi Network
Replies: 2
Views: 1433

Re: Connecting to Enterprise Wi-Fi Network

Sorry, no there is no workaround for connecting to a WLAN using PEAP authentication. One must implement this in respect of the current network API. And i have some organisational remarks... You must be aware of the fact that the school has the need to identify every single user of their network. Whe...