Search found 20 matches
- Wed Oct 09, 2024 6:36 pm
- Forum: ESP-IDF
- Topic: Possible to use LEDC Fade along with GPIO_SET_LEVEL() on the same PIN
- Replies: 1
- Views: 444
Possible to use LEDC Fade along with GPIO_SET_LEVEL() on the same PIN
I'm working on some code and can't seem to figure out how to get these two functions to work together. I have a LED on GPIO_25 I have the ledc fade code working and can get the fades to happen as I want. I have a component that was wrote that takes a GPIO pin number and blinks a LED using gpio_set_l...
- Fri Jun 07, 2024 5:38 pm
- Forum: ESP-IDF
- Topic: Does HTTPD offer anyway to see the RAW header?
- Replies: 1
- Views: 511
Re: Does HTTPD offer anyway to see the RAW header?
I found a solution though, I think it is very weird you can not access this information directly through the API I copied this structure from esp_httpd_priv.h which I could not figure out how to included in my main.c. struct httpd_req_aux { struct sock_db *sd; /*!< Pointer to socket database */ char...
- Thu Jun 06, 2024 10:10 pm
- Forum: ESP-IDF
- Topic: Does HTTPD offer anyway to see the RAW header?
- Replies: 1
- Views: 511
Does HTTPD offer anyway to see the RAW header?
Hello, So I'm porting over my janky little HTTP server library I home brewed. It fully functions with IOS captive portal and when I try to port that code to the HTTPD server it does not function exactly as it should. It does about 95% like it should but then just keeps reloading the page over and ov...
- Thu Jun 06, 2024 10:05 pm
- Forum: ESP-IDF
- Topic: Dedicated GPIO - Assembly code for reading pin
- Replies: 11
- Views: 2751
Re: Dedicated GPIO - Assembly code for reading pin
ESP32-S3: static uint32_t read_dedic_gpio() { uint32_t r; asm volatile ( "EE.GET_GPIO_IN %[r]" : [r] "=r" (r) ); return r; } Alternatively, #include "hal/dedic_gpio_cpu_ll.h" uint32_t input = dedic_gpio_cpu_ll_read_in(); I have not used ASM for GPIO pins but does it give a boost in speed compared t...
- Wed Feb 07, 2024 2:12 pm
- Forum: ESP-IDF
- Topic: I2C Read returns incorrect data while Physical Bus has correct Data.
- Replies: 3
- Views: 1385
Re: I2C Read returns incorrect data while Physical Bus has correct Data.
I have tried lowering the i2c clock to 50khz and 25khz and still getting incorrect values returned from the i2c. On the physical Bus the data is correct.
- Tue Feb 06, 2024 9:35 pm
- Forum: ESP-IDF
- Topic: I2C Read returns incorrect data while Physical Bus has correct Data.
- Replies: 3
- Views: 1385
I2C Read returns incorrect data while Physical Bus has correct Data.
I am experiencing a situation very similar to https://esp32.com/viewtopic.php?t=35508 https://esp32.com/viewtopic.php?t=30427 I am reading data from a DPS310 sensor. I read from it every 1 second. On average the device runs for 2+ to 3+ hours and then I get an Assert thrown because the value read fr...
- Fri Jan 26, 2024 1:51 pm
- Forum: Hardware
- Topic: Using I2C causes issues with MCPWM Capture.
- Replies: 0
- Views: 790
Using I2C causes issues with MCPWM Capture.
Hello everyone! So while working on a project I came across something I can't seem to explain. The Scope of work is as follows: I retrieve data from a sensor over I2C. (I use this library https://github.com/UncleRus/esp-idf-lib to help make things easier) Using MCPWM Capture 0, I capture a PWM input...
- Wed Oct 11, 2023 2:02 pm
- Forum: ESP-IDF
- Topic: ESP-IDF TWAI Queue implementation advice
- Replies: 2
- Views: 2571
Re: ESP-IDF TWAI Queue implementation advice
Hello, Have you gotten any further with these questions or concepts? I am also in your same shoes. I am trying to find the best way to implement TWAI for RX. I'm pretty confident that the way I'm doing it isn't the cleanest way to handle twai RX but it was what I originally follow from a example. Wh...
- Sun Aug 13, 2023 1:56 am
- Forum: Hardware
- Topic: Is there a way to reset an RMT channel if the buffer has been filled?
- Replies: 10
- Views: 13060
Re: Is there a way to reset an RMT channel if the buffer has been filled?
I found that changing conf0.idle_thres will make RMT on my ESP32-D0WD-V3 leave Wait state and resume RX. uint32_t status = RMT.status_ch[RMT_CHANNEL_0]; int state = (status >> RMT_STATE_CH0_S) & RMT_STATE_CH0_V; if(state == 4) { //4 is "Wait" state ESP_LOGI(TAG, "rmt status %x", RMT.status_ch[RMT_C...
- Sat Aug 12, 2023 9:08 pm
- Forum: General Discussion
- Topic: Does anyone have a good solution for measuring a continues PWM signal?
- Replies: 3
- Views: 3778
Re: Does anyone have a good solution for measuring a continues PWM signal?
I haven't tried with PWM, but I did use RMT peripheral on the ESP32 to receive a multi-channel PPM signal from an RC receiver. I guess with PWM it should be even easier. Can you describe the issues you ran to when trying to use RMT to receive PWM? Thank you for taking time to respond. I have gotten...