Search found 2143 matches

by Roberthh
Tue Sep 29, 2020 11:46 am
Forum: General Discussion and Questions
Topic: MicroPython and flash memory issues
Replies: 3
Views: 51

Re: MicroPython and flash memory issues

uos.statvfs returns: (2048, 128, 3056, 2448, 2448, 0, 0, 0, 0, 64) statvfs() talks about the file system and tells nothing about the RAM. The result of the statvfs call says, that the total file system size is 6130 kbyte. Since the CPU is told to have 1 MByte flash, there is obviously some more fla...
by Roberthh
Tue Sep 29, 2020 5:56 am
Forum: ESP32 boards
Topic: ESP32 4 MB flash?
Replies: 1
Views: 38

Re: ESP32 4 MB flash?

The WROOM device has 4 MB of Flash and about 500k of RAM. The Flash memory is used for the firmware and the file system. Most of the RAM is used by the RTOS and MicroPython interpreter itself, such that for the Python Heap 110k of RAM remain. That is the working space for Python scripts.
by Roberthh
Thu Sep 24, 2020 7:18 pm
Forum: ESP32 boards
Topic: Newbie with bme280 issues
Replies: 12
Views: 1041

Re: Newbie with bme280 issues

Maybe trying another board it could helps find the problem
The boards directly sold by espressif should be fine, like the esp32-pico-kit. Look for a trusted vendor, like mouser.
I had also good experience with boards made by Wemos.
by Roberthh
Thu Sep 24, 2020 8:13 am
Forum: ESP32 boards
Topic: Newbie with bme280 issues
Replies: 12
Views: 1041

Re: Newbie with bme280 issues

So it does not seem to be a memory problem. But I remember having made a long test run comparing various sensors including the BME280 with up to 6000 tests in a row, 20000 samples in total. Board ESP32. I have not seen any of the sensors failing. So it might be a combination of the board/sensor you ...
by Roberthh
Wed Sep 23, 2020 6:07 pm
Forum: ESP32 boards
Topic: Newbie with bme280 issues
Replies: 12
Views: 1041

Re: Newbie with bme280 issues

You could try to add a call to gc.collect() in the loop.
by Roberthh
Wed Sep 23, 2020 3:06 pm
Forum: ESP32 boards
Topic: Newbie with bme280 issues
Replies: 12
Views: 1041

Re: Newbie with bme280 issues

The freq value of 40000 seems low. I guess the intention is 400000. But that should not matter, since the is no lower limit for the frequency.
by Roberthh
Wed Sep 23, 2020 2:32 pm
Forum: Programs, Libraries and Tools
Topic: Unable to import machine module
Replies: 2
Views: 539

Re: Unable to import machine module

Because the machine module does not exist in CPython. You can ignore that warning.
by Roberthh
Tue Sep 22, 2020 8:24 pm
Forum: General Discussion and Questions
Topic: Rabbit Hole??
Replies: 4
Views: 570

Re: Rabbit Hole??

It's a Python topic: You have to add the module name:
either:

import classTesting
dd = classTesting.nothingMuch()

or:

from classTesting import nothingMuch
dd = nothingMuch()
by Roberthh
Sun Sep 20, 2020 7:35 pm
Forum: ESP8266 boards
Topic: ESP8266 serial comm. by UART() upython class
Replies: 3
Views: 272

Re: ESP8266 serial comm. by UART() upython class

Try:
uart.init(115200, rxbuf=128) # or whatever you baudrate & buffer size should be

See also: http://docs.micropython.org/en/latest/l ... chine.UART
by Roberthh
Fri Sep 18, 2020 6:27 pm
Forum: ESP8266 boards
Topic: ESP8266 repeatedly reboots after flash [RESOLVED]
Replies: 4
Views: 174

Re: ESP8266 repeatedly reboots after flash

You could also try to use a different/better cable, if it is a power issue. The Capacitor at the EN pins helps. But most board have that anyhow, albeit a smaller value, like 100 nF + a pull-up resistor. Under stable power conditions that should be sufficient.