Search found 11 matches

by jonaslorander
Fri Mar 13, 2020 12:42 pm
Forum: ESP32 boards
Topic: DHT22 on main.py returns with ETIMEDOUT
Replies: 8
Views: 7061

Re: DHT22 on main.py returns with ETIMEDOUT

I had this same issue with a ESP8266 a few years back.
You can see my solution here:
viewtopic.php?f=16&t=2668#p16457
by jonaslorander
Sat Nov 09, 2019 3:39 pm
Forum: ESP8266 boards
Topic: Counting pulses from an electricity meter
Replies: 12
Views: 10577

Re: Counting pulses from an electricity meter

I count pulses using a NodeMCU. It has been running för almost two years with no hickups. The difference is that I use MQTT, I use a comparator to get a digital signal that runs a small interrupt. But, I make all the calculations on the Esp8266 and send totalt energy since boot, energy for the last ...
by jonaslorander
Wed Apr 17, 2019 6:50 pm
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 2827

Re: Issues connecting to WLAN after deep sleep

So I just solved this.
Turns out that if you deactivate the WLAN ( wlan.active(False) ) it is not possible, at least for me, to reconnect to a network after a deep sleep. When I commented out the deactivate, that I had just before entering deep sleep it all works.
by jonaslorander
Wed Apr 10, 2019 6:50 pm
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 2827

Re: Issues connecting to WLAN after deep sleep

I have made some more tests with different values for the second parameter of esp.deepsleep(). I've tested 0 (default) and 1 (make RF calibration on wake). But there is no difference.

Havn't anybody experienced this issue? And is it a problem with using wlan.connect(), will it wear out the flash?
by jonaslorander
Sun Apr 07, 2019 8:06 am
Forum: ESP8266 boards
Topic: [SOLVED] Issues connecting to WLAN after deep sleep
Replies: 2
Views: 2827

[SOLVED] Issues connecting to WLAN after deep sleep

Hi, I'm having an issue with connecting to my WLAN after a deep sleep. I'm using MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266 Since the credentials are stored in flash, all I have to do to reconnect to the last AP should be import network wlan = network.WLAN(network.STA_IF) ...
by jonaslorander
Tue Jan 30, 2018 8:08 pm
Forum: Programs, Libraries and Tools
Topic: Some problems with asyn library
Replies: 21
Views: 17262

Re: asyn events — in basic uasyncio event loop; CPU usage

@pfalcon I understand your concern. I tend to chose my subject wording very carefully. However, this thread indeed took another turn along the way, which may give the wrong impressions about uasyncio on its own. I now changed the subject to attend to your concerns, whilst remaining as correctly inf...
by jonaslorander
Wed Dec 14, 2016 5:52 am
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 6
Views: 11938

Re: Unable to get DHT22-example to work

I've made a few more discoveries, as you can read in my issue report at Github: https://github.com/micropython/micropython/issues/2651 (forgot to mention it here). To summarize, it seems that it only is the first call to measure() (yeah, I've noticed that it is missing from the methods of DHT22 as w...
by jonaslorander
Fri Nov 18, 2016 8:36 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 6
Views: 11938

Re: Unable to get DHT22-example to work

Ok, now this is interesting. After adding the DHT code to my main program, that sends the values over MQTT, it stopped working again. If I ran the main.py on boot it would not work, but if I run import main it does...! So I started playing around. And what I have now for this test, is this code in m...
by jonaslorander
Fri Nov 18, 2016 7:03 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 6
Views: 11938

Re: Unable to get DHT22-example to work

Thanks for you reply. I tested a few other pins, and pin 13 seems to be working, for now. So, at the moment, this works: import machine, dht d = dht.DHT22(machine.Pin(13)) d.measure() d.temperature(), d.humidity() And then I tried pin 4 again, and it works too now. Pin 15 does not work. Well well, l...
by jonaslorander
Thu Nov 17, 2016 9:08 pm
Forum: ESP8266 boards
Topic: [SOLVED/WORKAROUND]Unable to get DHT22-example to work
Replies: 6
Views: 11938

[SOLVED/WORKAROUND]Unable to get DHT22-example to work

Hi, I'm trying to use this code on a NodeMCU board with ESP-12E: import dht import machine import time d = dht.DHT22(machine.Pin(4, machine.Pin.IN, machine.Pin.PULL_UP)) while True: time.sleep(5) d.measure() d.temperature(), d.humidity() But all I get is this error on the d.measure() line: OSError: ...