Search found 3667 matches
- Mon Jan 18, 2021 8:08 pm
- Forum: ESP32 boards
- Topic: sdcard doesn't work with SoftSPI
- Replies: 2
- Views: 1888
Re: sdcard doesn't work with SoftSPI
It may also be of SD cards. Micropyton is a little bit picky about SD card. They have to be formatted with a single FAT32 partition. Brand new SD cards are sometimes formatted differently. I had good experience with Samsung, Transcend and Sandisk cards in sizes of 8, 16, and 32 GB. And try to a) ins...
- Sun Jan 17, 2021 2:42 pm
- Forum: ESP32 boards
- Topic: Why UART2 read do not work after hard reset?
- Replies: 10
- Views: 4730
Re: Why UART2 read do not work after hard reset?
Pins 34 - 39 are input only. You can use them for RX but not for TX.
- Sun Jan 17, 2021 1:58 pm
- Forum: ESP32 boards
- Topic: Why UART2 read do not work after hard reset?
- Replies: 10
- Views: 4730
Re: Why UART2 read do not work after hard reset?
If you still use Pins 16 and 17: on some boards these are used for flash or SPIRAM. Normally the board crashes when you try to use them for other purposes. In your case obviously not. But there may still be a side effect. You could try to use other pins for the UART.
- Sat Jan 16, 2021 3:22 pm
- Forum: ESP32 boards
- Topic: Adding modules at firmware build
- Replies: 4
- Views: 2270
Re: Adding modules at firmware build
Addign C libraries is possible, but definitely more work. You have to build the Python API too.
You may both add C modules to the firmware, and have native runtime modules added. There is a lot of discussion and hints about the in the forum.
You may both add C modules to the firmware, and have native runtime modules added. There is a lot of discussion and hints about the in the forum.
- Sat Jan 16, 2021 2:54 pm
- Forum: ESP32 boards
- Topic: Adding modules at firmware build
- Replies: 4
- Views: 2270
Re: Adding modules at firmware build
You can add python scripts to the firmware as so called frozen modules by placing them into the 'modules' subdirectory in the esp32 port source tree. After compile & build, the can be imported like the built-in modules. And they will be listed in a call to help("modules"). You can as well just put t...
- Fri Jan 15, 2021 9:18 pm
- Forum: ESP8266 boards
- Topic: DS18B20 error
- Replies: 11
- Views: 13991
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...
- Wed Jan 13, 2021 7:39 pm
- Forum: Programs, Libraries and Tools
- Topic: Can't import PMW
- Replies: 2
- Views: 1466
Re: Can't import PMW
The PWM module is called PWM, like you wrote in the first box, not PMW.
- Tue Jan 12, 2021 8:43 pm
- Forum: General Discussion and Questions
- Topic: ESP8266 WiFi client
- Replies: 12
- Views: 5989
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...
- 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: 3039
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...
- Sun Jan 10, 2021 7:05 pm
- Forum: ESP8266 boards
- Topic: esp8266 resetting while using MQTT
- Replies: 1
- Views: 1284
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.