Search found 3667 matches

by Roberthh
Thu Oct 08, 2020 4:41 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4744

Re: newbie issue with i2c

Looks like the pullup resistors are missing.
by Roberthh
Thu Oct 08, 2020 11:52 am
Forum: ESP32 boards
Topic: Uart wait_tx_done function in ESP32 Micropython
Replies: 9
Views: 4544

Re: Uart wait_tx_done function in ESP32 Micropython

According to the specs, wait_tx_done() waits for the UARFT FIFO to be empty. But when you write in Python, the data goes to the tx_buffer first, and then into the UART fifo. So it may be, that you call wait_tx_done() before the UART FIFO has been filled. Could you try to insert a short sleep() betwe...
by Roberthh
Wed Oct 07, 2020 4:08 pm
Forum: ESP32 boards
Topic: Uart wait_tx_done function in ESP32 Micropython
Replies: 9
Views: 4544

Re: Uart wait_tx_done function in ESP32 Micropython

Did you try to increase the timeout to the worst value expected depending on message length & baud rate? That is the second parameter of wait_tx_done.
by Roberthh
Mon Oct 05, 2020 4:35 pm
Forum: ESP32 boards
Topic: Upload file of 250kB or more
Replies: 10
Views: 4819

Re: Upload file of 250kB or more

Gerne
by Roberthh
Sun Oct 04, 2020 9:27 am
Forum: MicroPython pyboard
Topic: Can we flash micropython on lower chips like atmega85
Replies: 4
Views: 3628

Re: Can we flash micropython on lower chips like atmega85

The answer is: No. The Attiny85, as much as I like it, has way to little memory, both flash & RAM. If you look for low cost chips, go for the WinnerMicro W600 (Chip costs << 1 USD, modules at about 2 USD) or ESP8266 or .....
by Roberthh
Thu Oct 01, 2020 7:54 pm
Forum: General Discussion and Questions
Topic: Circular buffer not working as expected
Replies: 16
Views: 7175

Re: Circular buffer not working as expected

The ADC output is an integer. Can you stay with integers in the range +/.- 2**30 and integer arithmentic? Small integers in that range do not require to allocate memory.
by Roberthh
Thu Oct 01, 2020 4:52 pm
Forum: ESP8266 boards
Topic: [SOLVED] ESP8266, read 80 [MHz] counter
Replies: 4
Views: 2694

Re: ESP8266, read 80 [MHz] counter

With Viper code you should be able to access the register directly, if it is memory mapped. But, sorry for that, I have a different concern: Since on the ESP8266 with MicroPython the variation of ISR latency time is several 100 µs, looking for 12.5ns resolution is not needed. You can go as well for ...
by Roberthh
Thu Oct 01, 2020 11:22 am
Forum: General Discussion and Questions
Topic: MicroPython and flash memory issues
Replies: 19
Views: 9531

Re: MicroPython and flash memory issues

suggest that I break the file into many partial ones or use methods like seek, in order to position the point of reading/writing (does that mean that by positioning those points I manage not to load the whole file in RAM?) Yes, you can do so. Please note, that on XBEE write always writes to the end...
by Roberthh
Wed Sep 30, 2020 8:23 pm
Forum: General Discussion and Questions
Topic: Circular buffer not working as expected
Replies: 16
Views: 7175

Re: Circular buffer not working as expected

A few observations: a) it's quite challenging to go for a 3 kHz acquisition rate. That leaves only about 3 ms per value, which is not a lot. b) the IRQ response time of the ESP32 varies a lot. You cannot expect the data to be acquired equidistant timed. The irq response time I have seen went up to 1...
by Roberthh
Wed Sep 30, 2020 7:26 pm
Forum: ESP32 boards
Topic: ESP32 4 MB flash?
Replies: 3
Views: 2152

Re: ESP32 4 MB flash?

You are getting this error because WROOM device has no SPIRAM. The SPIRAM is an additional RAM chip, connected by an high speed SPI interface. This the name. And therefore you see no difference between the two versions. With the WROOM device better use the GENERIC firmware.