simplefoc / Arduino-FOC-drivers

Drivers and support code for SimpleFOC
https://docs.simplefoc.com/drivers_library
MIT License
146 stars 63 forks source link

Add ESP32 Hardware Encoder Class #44

Closed mcells closed 3 months ago

mcells commented 3 months ago

This adds a PCNT-powered hardware encoder class for ESP32. (Should support all ESP32 variants with that peripheral) I could not reproduce the angle dependent execution time i mentioned on Discord, meaning this code has no issues that I am aware of right now. The step/dir mode is however untested, but I am fairly confident this works.

Cheers!

runger1101001 commented 3 months ago

Thank you very much for this contribution!