Search found 47 matches

by Christian Walther
Fri Jul 05, 2019 6:39 pm
Forum: General Discussion and Questions
Topic: reconfigure UART on the ESP8266
Replies: 5
Views: 142

Re: reconfigure UART on the ESP8266

Good point (and that was also the reason why I still haven’t tested it). I was specifically referring to the OP’s ESP-01 module, which does not include a USB-to-serial converter.
by Christian Walther
Fri Jul 05, 2019 5:13 pm
Forum: General Discussion and Questions
Topic: reconfigure UART on the ESP8266
Replies: 5
Views: 142

Re: reconfigure UART on the ESP8266

I probably misunderstood what you meant by “reconfigure”. What I’m saying is that you cannot use other pins than 1 and 3 for UART 0. However, you should indeed be able to use pins 1 and 3 for other purposes than UART 0. (If there is anything else to discuss, let’s continue in the other topic you ope...
by Christian Walther
Wed Jul 03, 2019 11:06 am
Forum: General Discussion and Questions
Topic: reconfigure UART on the ESP8266
Replies: 5
Views: 142

Re: reconfigure UART on the ESP8266

I can’t test it right now, but from memory: You cannot reconfigure the pins of UART 0 because they are hardwired, however what you want to do should be possible using UART 1, which transmits on GPIO2 (and cannot receive). To switch the terminal output to a different UART, use uos.dupterm() . I2C and...
by Christian Walther
Sun Jun 30, 2019 12:22 pm
Forum: General Discussion and Questions
Topic: Is there a difference between usocket and socket?
Replies: 1
Views: 152

Re: Is there a difference between usocket and socket?

Unless you have a socket.py on your filesystem, there is no difference, they will both give you the same thing: MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266 Type "help()" for more information. >>> import usocket >>> import socket >>> socket <module 'lwip'> >>> usocket <modul...
by Christian Walther
Sat Jun 29, 2019 12:53 pm
Forum: General Discussion and Questions
Topic: ESP8266: instead of main.py start from REPL an script
Replies: 5
Views: 230

Re: ESP8266: instead of main.py start from REPL an script

BigMan wrote:
Sat Jun 29, 2019 11:32 am
the main.py may be started but I cannot see any error messages while main.py is executed.
There must be something wrong here. You should see error messages or anything else printed to stdout on the serial output while main.py is running.
by Christian Walther
Fri Jun 28, 2019 4:51 pm
Forum: ESP32 boards
Topic: Standard library inclusions
Replies: 2
Views: 137

Re: Standard library inclusions

Many of the basic library modules (like machine ) are integrated in the firmware and do not need to be installed on the filesystem. Run help('modules') to see which. Additional libraries can be installed either using upip (which is built-in as well, if I remember correctly) or by copying them to the...
by Christian Walther
Sun Jun 23, 2019 3:32 pm
Forum: ESP8266 boards
Topic: ESP8285 ESP-01M
Replies: 4
Views: 154

Re: ESP8285 ESP-01M

I presume MicroPython will work on any of these devices. Yes. They are all the same chip. The regular D1 mini has an ESP8266 with external 4 MB flash, not an ESP8285. I just see that there is a “D1 mini Lite” with an ESP8285 though. I am not familiar with that one. (There is also a “D1 mini Pro” wi...
by Christian Walther
Fri Jun 21, 2019 6:19 pm
Forum: ESP8266 boards
Topic: Only power sensor when not in deep sleep
Replies: 9
Views: 253

Re: Only power sensor when not in deep sleep

Only slightly larger than an ESP-01 module, this is the smallest full-featured ESP8266 (actually, ESP8285 = ESP8266 + 1 MB flash) board I have: https://www.tindie.com/products/onehorse/esp8285-development-board/ For the ESP32, I would check out the TinyPICO: https://www.crowdsupply.com/unexpected-ma...
by Christian Walther
Thu Jun 20, 2019 11:54 am
Forum: General Discussion and Questions
Topic: Need help freeing memory from unused modules
Replies: 13
Views: 421

Re: Need help freeing memory from unused modules

My program runs for about 10 seconds and goes into deep sleep for about 10 minutes, then repeats. It seems like the memory is getting fragmented from this behaviour. I would consider that unlikely. The wake from deep sleep is a reset, so you are starting with a fresh heap every time. Does micropyth...
by Christian Walther
Thu May 30, 2019 11:16 am
Forum: General Discussion and Questions
Topic: OSError: no available NIC after Soft-Reset
Replies: 5
Views: 263

Re: OSError: no available NIC after Soft-Reset

Neither of you state what hardware you are using, so nobody can tell whether it’s something they are familiar with and could answer. You’d probably get a better chance at useful answers by posting in a board-specific forum rather than “General Discussion”.