Search found 1 match

by toxicpsion
Sun May 06, 2018 9:03 pm
Forum: General Discussion
Topic: using pulse counter to read optical (quadrature) decoder?
Replies: 6
Views: 17002

Re: using pulse counter to read optical (quadrature) decoder?

you can read a Quadrature decoder using only PCNT without interrupts in 1X mode using:: pcnt_config_t r_enc_config = { .pulse_gpio_num = GPIO_NUM_32, //Rotary Encoder Chan A (GPIO32) .ctrl_gpio_num = GPIO_NUM_33, //Rotary Encoder Chan B (GPIO33) .unit = PCNT_UNIT_0, .channel = PCNT_CHANNEL_0, .pos_m...