Hi, im trying to build a function generator, using ad9833, the range is 1Hz - 1MHz (ad9833 should rise until 12,5MHz but increase over 1MHz gives me a distorted signal.
Then, i want to increase/decrease frequency using a rotary encoder (using a potentiometer its not posible, because is I map an analog pin from 0-1023 to 0-1000000 the value will fluctuate a lot (ever point from the initial range will be 1000 values in the second range, so the final result is an ustable value)
Thats easy, i got it working as i want, with a bit of bounce.. but working.
But, i want to modify the frequency, and if i rotate with a determinated speed, change a multiplier, and instead of increase by 1, do it by 10, 100, 1000, 10000 and 100000 (trying to reach 1000000 increasing freq by 1 could be... a pain xD)
Its there any way to achieve that without messing with bounces? I mean, i know that if i rotate the encoder a lot... it will miss some clicks, because bounce library will mix real clicks with bounces.
So the question is... its possible, or maybe I need to throw that idea, and think another?
Thanks.