Search found 28 matches

by aleskeyfedorovich
Thu Nov 25, 2021 9:47 am
Forum: ESP32 boards
Topic: WIRED LAN
Replies: 4
Views: 4295

Re: WIRED LAN

I found no documentation for the network.LAN class.
From which micropython version was it implemented in the firmware?
Is there any documentation on how to use it?
by aleskeyfedorovich
Fri Nov 05, 2021 10:21 am
Forum: ESP32 boards
Topic: compile vs freeze module (with esp32 spiram support enabled)
Replies: 5
Views: 3575

Re: compile vs freeze module (with esp32 spiram support enabled)

thank you for your answers.

So regarding question 1. I interpret that there is no big difference in terms of performance between just compiling modules with mpy-cross and freezing them into the firmware.
by aleskeyfedorovich
Thu Nov 04, 2021 2:44 pm
Forum: ESP32 boards
Topic: compile vs freeze module (with esp32 spiram support enabled)
Replies: 5
Views: 3575

compile vs freeze module (with esp32 spiram support enabled)

I've always used the already compiled micropython firmware for esp32 with spiram support. I investigated the possibility of improving the performance of the microcontroller (ESP32 WROVER) by compiling modules with mpy-cross and/or including (?freezing?) them into the whole micropython firmware. 1. w...
by aleskeyfedorovich
Wed Jul 21, 2021 7:15 am
Forum: ESP32 boards
Topic: ESP32 ADC Range
Replies: 7
Views: 8842

Re: ESP32 ADC Range

Roberthh wrote:
Sun Jun 25, 2017 6:25 am

Code: Select all

import machine
adc = machine.ADC(machine.Pin(36)
adc.atten(adc.ATTN_6DB)
I think there's a typo:

Code: Select all

adc.atten(machine.ADC.ATTN_6DB)
by aleskeyfedorovich
Tue Mar 30, 2021 10:43 am
Forum: General Discussion and Questions
Topic: logging to a log file with limited size
Replies: 2
Views: 1569

logging to a log file with limited size

I'd like to log to a file appending new lines and when a maximum size is reached removing older lines in favor of new ones such that the log file does not occupy too much memory. I know this is possibile in python (https://stackoverflow.com/questions/24505145/how-to-limit-log-file-size-in-python). I...
by aleskeyfedorovich
Tue Mar 30, 2021 8:28 am
Forum: General Discussion and Questions
Topic: Get full stack trace in try: catch:
Replies: 7
Views: 14584

Re: Get full stack trace in try: catch:

the traceback module does not work because sys.exc_info is not available [link](https://github.com/micropython/micropython/issues/5110)
by aleskeyfedorovich
Mon Nov 02, 2020 2:17 pm
Forum: ESP32 boards
Topic: ESP32 ADXL345 (accelerometer) SPI
Replies: 4
Views: 3743

Re: ESP32 ADXL345 (accelerometer) SPI

I decided to put the final library on github at this [link](https://github.com/AlekseyFedorovich/ADXL345_spi)
by aleskeyfedorovich
Mon Nov 02, 2020 2:16 pm
Forum: ESP32 boards
Topic: fast (>1kHz) readings from accelerometers
Replies: 15
Views: 9852

Re: fast (>1kHz) readings from accelerometers

Finally, thanks to SPI protocol, FIFO, and DATA_READY bit I reached 3.2 kHz.
I decided to put the final result on github at this [link](https://github.com/AlekseyFedorovich/ADXL345_spi).
by aleskeyfedorovich
Wed Oct 28, 2020 7:54 pm
Forum: ESP32 boards
Topic: ESP32 ADXL345 (accelerometer) SPI
Replies: 4
Views: 3743

Re: ESP32 ADXL345 (accelerometer) SPI

The key is the SPI diagram in the datasheet (figure 37, figure 38). It's necessary to read at least 2 bytes and the first must be ignored. def read(regaddr, nbytes): wbuf = regaddr | READ_MASK if nbytes > 1: wbuf = wbuf | MULTIBYTE_MASK CS.value(0) value = spi.read(nbytes + 1, wbuf)[1:] CS.value(1) ...