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

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
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