Search found 317 matches

by kevinkk525
Sat Feb 02, 2019 10:43 am
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 15
Views: 587

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

If you use an official micropython build, uasyncio is already on it.

If you use a daily build, you have to cross compile and copy it onto the device.
by kevinkk525
Wed Jan 30, 2019 3:55 pm
Forum: ESP8266 boards
Topic: rc-car and ESP8266-board: which prtocoll to stuck with
Replies: 9
Views: 292

Re: rc-car and ESP8266-board: which prtocoll to stuck with

Websocket's: Websocket's require a lot of extra overhead for an arduino. Arduino? I thought this was about having esp8266? We need a solution that cares for this "running out of controll" part... This is quite easy, you just have the car expect one command every second. If it does not receive one, ...
by kevinkk525
Tue Jan 29, 2019 1:37 pm
Forum: ESP8266 boards
Topic: rc-car and ESP8266-board: which prtocoll to stuck with
Replies: 9
Views: 292

Re: rc-car and ESP8266-board: which prtocoll to stuck with

Personally I'd use TCP to make sure the commands arrive at the car because with UDP you might end up losing "left" from a command series of "left, forward" in short succession and the car would go forward instead of left and forward but it depends on your implementation. If you send the signal very ...
by kevinkk525
Sat Jan 26, 2019 11:22 am
Forum: Announcements and News
Topic: MicroPython version 1.10 released
Replies: 12
Views: 1811

Re: MicroPython version 1.10 released

I also noticed the performance hit on the esp8266 when using

Code: Select all

"{}{}".format(a,b)
by kevinkk525
Fri Jan 25, 2019 5:31 pm
Forum: Announcements and News
Topic: MicroPython version 1.10 released
Replies: 12
Views: 1811

Re: MicroPython version 1.10 released

That is awesome! Glad we finally get 1.10!
by kevinkk525
Thu Jan 24, 2019 8:33 am
Forum: ESP8266 boards
Topic: Feed hardware watchdog timer while in deep sleep
Replies: 4
Views: 176

Re: Feed hardware watchdog timer while in deep sleep

You should feed the hardware WDT when the esp is running and disabled it before deep sleep if it supports it.
by kevinkk525
Thu Jan 24, 2019 7:39 am
Forum: ESP8266 boards
Topic: Feed hardware watchdog timer while in deep sleep
Replies: 4
Views: 176

Re: Feed hardware watchdog timer while in deep sleep

No you can't work with anything on the esp8266 while in deep sleep. That's why it's called deep sleep.
by kevinkk525
Sun Jan 13, 2019 6:50 pm
Forum: ESP8266 boards
Topic: ESP8266 Code crashes after ~30 hours
Replies: 6
Views: 315

Re: ESP8266 Code crashes after ~30 hours

That is true. Did not catch that. I'd try running it with a socket.close() statement before trying anything else. As you say it is "crashing" I assume it resets itself? This can happen with unstable power supply or just occassionally with the cheap NodeMCUs. Have those too. Does not happen that ofte...
by kevinkk525
Sun Jan 13, 2019 5:00 pm
Forum: ESP8266 boards
Topic: ESP8266 Code crashes after ~30 hours
Replies: 6
Views: 315

Re: ESP8266 Code crashes after ~30 hours

What hardware are you using? I did not look at the code too closely but looks good to me though. The isr is short and should always work.

Try to catch the exception and write it to a file so you can look it up after a crash. Just resetting the esp won't give you much information.
by kevinkk525
Sat Jan 12, 2019 11:01 am
Forum: ESP8266 boards
Topic: Interrupt variable increment problem
Replies: 1
Views: 87

Re: Interrupt variable increment problem

That's a basic python problem. I recommend reading tutorials.

The solution however is to do this:

Code: Select all

def inctmp(p):
    global itemp
    itemp = itemp + 1