Search found 23 matches

by physiii
Tue Jan 19, 2021 2:07 am
Forum: ESP-IDF
Topic: ESP32 Hardware Timer Gives Unreliable Results
Replies: 1
Views: 1949

ESP32 Hardware Timer Gives Unreliable Results

I need create a PWM signal using a hardware timer. I would have used RMT or something more native to esp32 but I am using an i2c gpio expander. I wrote the code which was straight forward but am getting unreliable results (eg. pulse width being much to short or the io sticking high or low). To rule ...
by physiii
Wed Oct 07, 2020 5:58 pm
Forum: ESP-IDF
Topic: Not Receiving Correct ESPNOW Payload Values
Replies: 4
Views: 3627

Re: Not Receiving Correct ESPNOW Payload Values

Apparently Send len in the menuconfig refers to the entire struct and not just the payload. So I figured 10 bytes was enough but I had to increase that to account for the payload. I do not understand why they would have the Send len start at 10 bytes. If I want to send 3 bytes I need to set that to ...
by physiii
Tue Oct 06, 2020 3:35 pm
Forum: ESP-IDF
Topic: Not Receiving Correct ESPNOW Payload Values
Replies: 4
Views: 3627

Re: Not Receiving Correct ESPNOW Payload Values

Yes, those are the only two lines that I added. I put them in example_espnow_data_parse and example_espnow_data_prepare functions. See line 120 and line 143 . /* Parse received ESPNOW data. */ int example_espnow_data_parse(uint8_t *data, uint16_t data_len, uint8_t *state, uint16_t *seq, int *magic) ...
by physiii
Tue Oct 06, 2020 10:32 am
Forum: ESP-IDF
Topic: Not Receiving Correct ESPNOW Payload Values
Replies: 4
Views: 3627

Re: Not Receiving Correct ESPNOW Payload Values

This seems like the most basic thing someone would want to do; send a payload using ESPNOW. I did this over a year ago but can't get it to work now.

Can anyone spot the bug?
by physiii
Sun Oct 04, 2020 10:00 pm
Forum: ESP-IDF
Topic: Not Receiving Correct ESPNOW Payload Values
Replies: 4
Views: 3627

Not Receiving Correct ESPNOW Payload Values

Hello, I am using the current master branch version of espnow and trying to transmit and receive a payload. However when I print the value I am receiving on the second esp32 in the example_espnow_data_parse function like printf("PAYLOAD: %u\n", buf->payload[0]); I get a repeating value of 251. I am ...
by physiii
Wed Jun 10, 2020 7:39 pm
Forum: ESP-IDF
Topic: CHANGE I2S ADC ATTENUATION
Replies: 1
Views: 2592

Re: CHANGE I2S ADC ATTENUATION

Asked this recently on here. I'm not getting any replies about my i2s issues. I usually have to post here and then on github to get response.

Check this post I made on github a couple weeks ago.

https://github.com/espressif/esp-idf/is ... -633057910
by physiii
Wed Jun 10, 2020 1:03 pm
Forum: ESP-IDF
Topic: How do I write to I2S/DAC in stereo?
Replies: 3
Views: 3266

Re: How do I write to I2S/DAC in stereo?

Bump.

This seems applicable for many different projects, no one has tried to use I2S DAC1/DAC2 independently?
by physiii
Sat Jun 06, 2020 1:33 pm
Forum: ESP-IDF
Topic: How do I write to I2S/DAC in stereo?
Replies: 3
Views: 3266

How do I write to I2S/DAC in stereo?

The i2s_adc_dac example just mirrors the left and right channels into the built in DAC1/DAC2. But I want to get a 1khz tone from DAC1 and 1khz tone with 180 degree phase shift from DAC2.

How do I i2s_write to left/right channels separately?
by physiii
Tue Jun 02, 2020 5:13 pm
Forum: ESP-IDF
Topic: Can Not Use I2S ADC with Wifi
Replies: 3
Views: 3888

Re: Can Not Use I2S ADC with Wifi

Also tried wrapping i2s_read() in i2s_adc_enable and i2s_adc_disable but that did not work. Here is the entire striped down example file I am using. You can see where I launch the wifi station at the bottom of app_main #include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "f...
by physiii
Mon Jun 01, 2020 11:32 am
Forum: ESP-IDF
Topic: Can Not Use I2S ADC with Wifi
Replies: 3
Views: 3888

Re: Can Not Use I2S ADC with Wifi

I get data for the first couple executions of i2s_read then it outputs a single value, see below. The value it settles on is different each time I reset the esp32. Again, this only happens when running wifi at the same time. I tried changing wifi settings in menuconfig like optimizations, cores, fla...