-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 S3 Pulse Counter Skipping Steps (IDFGH-14317) #15108
Comments
Hi @anagnostouJohn |
imagine the max rpm of the rottary encoder will be 2000rpms. I have set
Also i remove from my code the glitch filter. Theoretically PCNT doesent have a problem when a rottary encoder runs at 2000rpms. |
If the max RPM of the rotary encoder is 2000, I believe this frequency is not an issue. Instead, you could try increasing the |
There should be a possibility that the problem is at ESP_LOGI(TAG, "Pulse count: %d", pulse_count); Or the ESP_LOGI delays the pulse_count to increase its number or it is increased but it skips some prints |
This is possible.You can try turning the baud rate up, and if that still doesn't work, you can store pulse_count in an array and print it out at once when you stop counting. |
Answers checklist.
General issue report
I am running the simple example of rottary encoder and as i can see when rottary spins fast some steps are skipped. I dont know if it is due to ESP_LOGI or i am missing something. I am using ESP-32 S3 and the rottary encoder has 600 steps per rotation.
Further more why i cannot use more than 5 watch_points and why they have to have the High_Limit Zero and the Low_Limit
The text was updated successfully, but these errors were encountered: