Search found 2272 matches

by Roberthh
Fri Jan 15, 2021 9:18 pm
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 10
Views: 6368

Re: DS18B20 error

What I understand: While the above script is running, you disconnect the sensor. In that case, the read function will read invalid data, obviously with a wrong CRC, and raises a CRC error. That is the expected behavior. In your script you can catch the CRC error with try/except clause around read.te...
by Roberthh
Wed Jan 13, 2021 7:39 pm
Forum: Programs, Libraries and Tools
Topic: Can't import PMW
Replies: 2
Views: 61

Re: Can't import PMW

The PWM module is called PWM, like you wrote in the first box, not PMW.
by Roberthh
Tue Jan 12, 2021 8:43 pm
Forum: General Discussion and Questions
Topic: ESP8266 WiFi client
Replies: 12
Views: 861

Re: ESP8266 WiFi client

Two notes. I do not recommend a busy wait in the loop for wait connected. better add a small delay, like: import time def connectToWifi(SSID, PW): print(ubinascii.hexlify(network.WLAN().config('mac'),':').decode()) client = network.WLAN(network.STA_IF) client.active(True) print(client.scan()) if not...
by Roberthh
Mon Jan 11, 2021 8:43 pm
Forum: General Discussion and Questions
Topic: Does the cross sompiler make your code run slower?
Replies: 6
Views: 538

Re: Does the cross sompiler make your code run slower?

Execution times on an ESP32 can vary quite a bit, even for the same code. The reason is the virtual style of memory. Both flash and SPI RAM are mapped to a virtual memory space through limited sized cache area, form which it is executed or through which it handles data. The interface to flash and RA...
by Roberthh
Sun Jan 10, 2021 7:05 pm
Forum: ESP8266 boards
Topic: esp8266 resetting while using MQTT
Replies: 1
Views: 171

Re: esp8266 resetting while using MQTT

You should check the power supply. At poor reception conditions the send level has to be higher, which consumes more current.
by Roberthh
Fri Jan 08, 2021 8:16 pm
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 52
Views: 3406

Re: ESP-Now support for ESP32 (and ESP8266)

I do not see a call to sta_if.connect(). Without that, the module will not connect,
by Roberthh
Tue Jan 05, 2021 3:00 pm
Forum: ESP32 boards
Topic: issues regarding UART on TTGO-T-Call
Replies: 4
Views: 690

Re: issues regarding UART on TTGO-T-Call

uart.read() does not block. It returns immediately with the data being present, or None if no data is available.
Ar you sure that data has been sent? An easy test is to connect tx and rx, write data first and then read it back.
by Roberthh
Tue Jan 05, 2021 1:02 pm
Forum: ESP8266 boards
Topic: Got trouble from most beginning after flashing
Replies: 1
Views: 53

Re: Got trouble from most beginning after flashing

Maybe you need to flash with a different flash mode. Try the various variants of the -fm option, as there are:

Code: Select all

  --flash_mode {keep,qio,qout,dio,dout}, -fm {keep,qio,qout,dio,dout}
                        SPI Flash mode
by Roberthh
Sat Jan 02, 2021 1:59 pm
Forum: Development of MicroPython
Topic: Maybe Micropython needs more people?
Replies: 9
Views: 759

Re: Maybe Micropython needs more people?

There are a few people working on Micropython. Especially contributtion to ports are in control other people too than Damien. But it is also true that Damien controls the core software of MicroPython. And that is good. It ensures consistent quality. The feedback time is reasonable, the quality of fe...
by Roberthh
Tue Dec 29, 2020 9:12 pm
Forum: ESP8266 boards
Topic: wlan.connect timeout
Replies: 9
Views: 3664

Re: wlan.connect timeout

Sorry. I should have looked into my code. That stops waiting for a connect after about 15 seconds and assumes a fail.