Logarithmic applied scale to rotary encoder turbo. Turbo mode start if turning rapidly rotary weel and stop automatically after 3 seconds. Tested with stm32f103c8t6 (blue-pill) and PCA9685. For used scale I added gnumeric spreadsheet for double type value control match with integers in arduino schetch.

You can modify this code according yours own needs. Pls consider this:
a - using for led dimming:
with logarithmic derived scale consider apparent light intensity modulation not of light source but for whole light reflecting 3d area;
with scale range (here 500 steps) and timing for turbo mode, you can adapt this code with whole 3d area regarding light reflecting caracteristics and rotary using mode also reducing 360° rotary turns number not needing very large single step luminosity difference;
b - with motors, ... be careful using turbo. :-)

Project Samples

Project Activity

See All Activity >

Follow rotary-turbo-PCA9685

rotary-turbo-PCA9685 Web Site

Other Useful Business Software
Get the most trusted enterprise browser Icon
Get the most trusted enterprise browser

Advanced built-in security helps IT prevent breaches before they happen

Defend against security incidents with Chrome Enterprise. Create customizable controls, manage extensions and set proactive alerts to keep your data and employees protected without slowing down productivity.
Download Chrome
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rotary-turbo-PCA9685!

Additional Project Details

Registered

2023-12-08