Search found 10 matches

by BivvyCoder
Thu Oct 03, 2024 5:52 pm
Forum: Hardware
Topic: ESP32 GPIO Interrupts Missing
Replies: 7
Views: 422

Re: ESP32 GPIO Interrupts Missing

Thanks - I've used this code as a starting point and now have a reasonably consistent pulse count per revolution https://github.com/espressif/esp-idf/tree/v5.3.1/examples/peripherals/pcnt/rotary_encoder Still puzzled why the interrupts didn't work and I need to think hard about how the counters oper...
by BivvyCoder
Thu Oct 03, 2024 12:54 pm
Forum: Hardware
Topic: ESP32 GPIO Interrupts Missing
Replies: 7
Views: 422

Re: ESP32 GPIO Interrupts Missing

I'm sorry - I don't understand why that should happen.
The original code was handling a rotary shaft encoder - this was miss-counting the number of revolutions of the shaft, which also appeared to be because the interrupt handler was not being called.
by BivvyCoder
Thu Oct 03, 2024 12:00 pm
Forum: Hardware
Topic: ESP32 GPIO Interrupts Missing
Replies: 7
Views: 422

Re: ESP32 GPIO Interrupts Missing

Thanks
In my attempt to get to the bottom of the problem I tried POS / NEG / ANY and had forgotten to change the code back before I posted.
With ANYEDGE I'm still getting missed interrupts. Very repeatable - every third edge is missed.
IMG20241003125657.jpg
IMG20241003125657.jpg (426.79 KiB) Viewed 363 times
by BivvyCoder
Thu Oct 03, 2024 10:40 am
Forum: Hardware
Topic: ESP32 GPIO Interrupts Missing
Replies: 7
Views: 422

ESP32 GPIO Interrupts Missing

I'm working on a problem encountered with a interrupt handler that should trigger on rising and falling edges on a gpio pin configured as as an input. The original code appeared to be missing some edges, so I've stripped it down to the bare minimum and wired up the ESP32 to 1kHz square wave generato...
by BivvyCoder
Mon Jul 15, 2024 2:38 pm
Forum: ESP-IDF
Topic: Problems with ESP32 Web Server handling POST requests
Replies: 3
Views: 1104

Re: Problems with ESP32 Web Server handling POST requests

Thanks - works perfectly now
by BivvyCoder
Tue Jul 09, 2024 1:38 pm
Forum: ESP-IDF
Topic: Problems with ESP32 Web Server handling POST requests
Replies: 3
Views: 1104

Problems with ESP32 Web Server handling POST requests

I'm developing a very basic web server as part of an IoT project on an ESP32-S3. I have a web page with an input box and up / down buttons. My aim is to get the value in the input box to change each time the button is pressed and then POST the new value to the web server for processing. The web page...
by BivvyCoder
Tue Jul 09, 2024 1:19 pm
Forum: ESP-IDF
Topic: Help Need - PWM Servo Control with ESP32-S2
Replies: 2
Views: 690

Re: Help Need - PWM Servo Control with ESP32-S2

That's great - thanks
Managed to use LEDC to create the required PWM signals
by BivvyCoder
Tue Jun 11, 2024 2:49 pm
Forum: ESP-IDF
Topic: Help Need - PWM Servo Control with ESP32-S2
Replies: 2
Views: 690

Help Need - PWM Servo Control with ESP32-S2

I'm doing some development with an ESP32-S2 dev board and have been asked to add a servo motor. I've tried the mcpwm_servo_control example in the IDE but can't get it to compile, for instance I get an error MCPWM_TIMER_CLK_SRC_DEFAULT undeclared The code has the motor control PWM library included #i...
by BivvyCoder
Mon Jan 29, 2024 8:44 am
Forum: ESP-IDF
Topic: undefined reference when linking .obj files in Visual Studio Code and ESP32 IDE
Replies: 2
Views: 748

Re: undefined reference when linking .obj files in Visual Studio Code and ESP32 IDE

Thanks @boarchuz. That fixed it.
What's the correct emoji for embarrassed rookie? :oops:
by BivvyCoder
Sun Jan 28, 2024 5:38 pm
Forum: ESP-IDF
Topic: undefined reference when linking .obj files in Visual Studio Code and ESP32 IDE
Replies: 2
Views: 748

undefined reference when linking .obj files in Visual Studio Code and ESP32 IDE

I'm trying to break my project down into separate files to make it more manageable. Working in Visual Studio Code using the ESP32 IDE. The code works fine if I have everything in one file (app_main.c) but fails when I try to break it into more manageable components. I've split out the GPIO configura...