Hi. I need to count high frequency pulses. On the internet i found that the esp32 has such a thing as PCNT (Pulse Counter)
even found its description but nowhere can find an example that could ideally output the number of pulses per second in compor. Please help )
PCNT (Pulse Counter) example (arduino ide)
Re: PCNT (Pulse Counter) example (arduino ide)
Hi,
I am also looking for a similar solution where I can count pulses for quadrature encoder running on 1500RPM.
I also found some code and look at the description on ESP-IDF of PCNT, but not able to understand how to connect my A,B,Z pulses encoder with it.
Also feel difficult to understand tasks. is there any good tutorial with example? or at-least a simple example of using quadrature encoder.
any help will be highly appreciated.
Thanks
I am also looking for a similar solution where I can count pulses for quadrature encoder running on 1500RPM.
I also found some code and look at the description on ESP-IDF of PCNT, but not able to understand how to connect my A,B,Z pulses encoder with it.
Also feel difficult to understand tasks. is there any good tutorial with example? or at-least a simple example of using quadrature encoder.
any help will be highly appreciated.
Thanks
Re: PCNT (Pulse Counter) example (arduino ide)
Any help in this regard?
Re: PCNT (Pulse Counter) example (arduino ide)
I googled: "esp32 pulse count"
This looks promising: https://docs.espressif.com/projects/esp ... /pcnt.html
What did you look for?
Tom
This looks promising: https://docs.espressif.com/projects/esp ... /pcnt.html
What did you look for?
Tom
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Re: PCNT (Pulse Counter) example (arduino ide)
Yes I looked at it, but I am not able to understand it properly.
could you please provide a sample program for arduino ide in which I can connect a encoder using PCNT along with hardware pin schematic?
could you please provide a sample program for arduino ide in which I can connect a encoder using PCNT along with hardware pin schematic?
Re: PCNT (Pulse Counter) example (arduino ide)
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Who is online
Users browsing this forum: No registered users and 52 guests