Search found 4 matches

by michaelk
Tue Jul 04, 2023 3:28 am
Forum: ESP-IDF
Topic: Why are WebSockets so painfully slow?
Replies: 11
Views: 6451

Re: Why are WebSockets so painfully slow?

How is your latency?
The packet latency can be a few hundred ms when in low power mode. Without low power its ~15ms. This may account for the poor throughput.

Code: Select all

 esp_wifi_set_ps(WIFI_PS_NONE);
by michaelk
Sun Feb 20, 2022 4:54 pm
Forum: ESP-ADF
Topic: I2S sample rate not acting logically
Replies: 1
Views: 4055

I2S sample rate not acting logically

I am attempting to generate low frequency sine waves using the I2S system and the internal DAC of the ESP32 (on ESP32-WROOM). There are 100 samples of the sine wave in ROM that are sent to the DAC through the I2C DMA system. The sample rate is 100 times the frequency (because there are 100 samples p...
by michaelk
Mon Feb 14, 2022 6:20 pm
Forum: General Discussion
Topic: Cannot get I2S to internal DAC to work.
Replies: 1
Views: 1600

Re: Cannot get I2S to internal DAC to work.

One typo .. line should read

Code: Select all

  usample = ((uint32_t)((sin( 2.0 * M_PI * ((double)i / NOofSAMPLESperSINE)) + 1.0) * (double)AMP_DAC/2.0 + 0.5)) << 8;
but this is not the problem.
by michaelk
Mon Feb 14, 2022 4:16 pm
Forum: General Discussion
Topic: Cannot get I2S to internal DAC to work.
Replies: 1
Views: 1600

Cannot get I2S to internal DAC to work.

I have not been able to get the I2S system to output through the internal DAC. I'm using the ESP WROOM 32 but see nothing on output 25 or 26. I'm precalculating the samples of one period of a sinewave with a frequency of 124.1 Hz. I then continuously send this to the I2C system in a task with two bu...