Search found 411 matches

by kevinkk525
Mon May 20, 2019 3:39 pm
Forum: General Discussion and Questions
Topic: Greenhouses automation botnet. Need your advice.
Replies: 3
Views: 240

Re: Greenhouses automation botnet. Need your advice.

This is a very interesting project! I'm currently building a small Greenhouse on my balcony... Got almost all libraries ready for it. Why not send the current task by mqtt instead of all daily tasks? I see no need for a separate socket server (but could point you to a library pythoncoder and I creat...
by kevinkk525
Sun May 19, 2019 3:10 pm
Forum: ESP8266 boards
Topic: [SOLVED] uasyncio is blocked for 1 hour, 11 minutes on ESP8266
Replies: 26
Views: 880

Re: uasyncio is blocked for 1 hour, 11 minutes (Bug?)

I would also assume that it is something esp8266 specific. Either in micropython firmware or the esp-idf. I'm only running an ESP32 occasionally so I don't have a good comparison but didn't encounter the problem there. Only devices anyone reported this problem yet is the esp8266. If the problem affe...
by kevinkk525
Sun May 19, 2019 7:58 am
Forum: ESP8266 boards
Topic: ESP8266 goes down after sometime [SOLVED]
Replies: 21
Views: 817

Re: ESP8266 goes down after sometime

That's strange. Can you check the wdt only to make sure it works? I'm using the same wdt code and it works all the time.
by kevinkk525
Sat May 18, 2019 8:22 pm
Forum: ESP8266 boards
Topic: ESP8266 goes down after sometime [SOLVED]
Replies: 21
Views: 817

Re: ESP8266 goes down after sometime

The wdt should work. Are you waiting long enough? You have a timeout of 300s (5 minutes).
by kevinkk525
Fri May 17, 2019 6:37 pm
Forum: Drivers for External Components
Topic: convert ds18b20 serial number
Replies: 5
Views: 2076

Re: convert ds18b20 serial number

Always funny when someone revives a thread that is a year old :D

The solution of converting a rom to string is quite simple: ''.join('%02X' % i for i in iter(rom))
by kevinkk525
Fri May 17, 2019 5:45 pm
Forum: ESP8266 boards
Topic: [SOLVED] uasyncio is blocked for 1 hour, 11 minutes on ESP8266
Replies: 26
Views: 880

Re: uasyncio is blocked for 1 hour, 11 minutes (Bug?)

I'm glad you put that much effort into confirming the bug I encountered. I can try to submit it to github. Maybe something will get found although apparently most people don't have the problem and are having trouble confirming it. I accepted that I need a watchdog resetting the board if the freeze h...
by kevinkk525
Fri May 10, 2019 6:19 pm
Forum: ESP32 boards
Topic: Can't connect WiFi after restart
Replies: 9
Views: 383

Re: Can't connect WiFi after restart

You're not using a busy loop are you?

Code: Select all

while not sta_if.isconnected():
    pass
that can cause problems.
by kevinkk525
Thu May 09, 2019 7:20 am
Forum: ESP32 boards
Topic: Can't connect WiFi after restart
Replies: 9
Views: 383

Re: Can't connect WiFi after restart

I never encountered this either. However it does occasionally happen that my Esp32 can't connect to the wifi after a reset. Another resort however fixes that.
My programs all try to connect for 10 seconds and then reset the board if not successful.
by kevinkk525
Wed May 08, 2019 3:55 pm
Forum: Other Boards
Topic: The 'machine' module on Raspberry Pi
Replies: 6
Views: 415

Re: The 'machine' module on Raspberry Pi

There's a low level RPi C library at http://www.airspayce.com/mikem/bcm2835/index.html I could not find anything like the Python RPi.GPIO modules so I am trying to get a MicroPython wrapper working on top of this: https://github.com/hacksterous/micropython/tree/master/ports/unix/mpbcm2835 I have te...
by kevinkk525
Sun May 05, 2019 7:08 pm
Forum: ESP8266 boards
Topic: ESP8266 goes down after sometime [SOLVED]
Replies: 21
Views: 817

Re: ESP8266 goes down after sometime

class WDT: def __init__(self, id=0, timeout=120): self._timeout = timeout / 10 self._counter = 0 self._timer = machine.Timer(id) self.init() def _wdt(self, t): self._counter += self._timeout if self._counter >= self._timeout * 10: machine.reset() def feed(self): self._counter = 0 def init(self, tim...