Search found 310 matches

by kfricke
Fri Mar 03, 2017 9:23 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 822

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

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

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

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

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 Sl...
by kfricke
Wed Mar 01, 2017 10:59 pm
Forum: ESP8266 boards
Topic: How do you properly handle external interrupts?
Replies: 28
Views: 822

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

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

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...
by kfricke
Wed Feb 08, 2017 8:45 pm
Forum: ESP8266 boards
Topic: Sonoff Touch with ESP8285 and Micropython
Replies: 9
Views: 536

Re: Sonoff Touch with ESP8285 and Micropython

At least it is smaller ;)

Have you got plans to fill the 2x 1,5 mm gap? Or is the part too small to fit into the mounting frame?
by kfricke
Wed Feb 08, 2017 8:20 am
Forum: The WiPy
Topic: WiPy v1.8.7 ( JAn&Feb) - SD reading issue
Replies: 2
Views: 172

Re: WiPy v1.8.7 ( JAn&Feb) - SD reading issue

The was a change regarding the used FAT library and filesystem mount points. The maintainers should be aware of this but you can also file an issue on github.

Go to advanced search