¿ªÔÆÌåÓý

Re: raduino v1.27 released (improved suppression of spurious burst) Rotary Encoder Version?


 

¿ªÔÆÌåÓý

I did that on an old (1.09) Allard Version.? I made a tuning function with the same name as he has.

I can switch back and forth with the conditional assembly.

It works but I don't get any of the functions with the Push Button that use some other functions that involve the pot.

Like Calibration and such.? So it is a hack, in needing of lots of attention to get the options with the Push Button.

I moved the frequency change directly into the interrupt, I seemed at the time to have to much lag setting and reading an interrupt flag?

Still sometimes it seems to jump 2 steps when I tune.? I got pull-ups and 0.01uf de-bounce on the encoder.? Since the encoder

has resistors and my RaduinoX has them, I need to experiment with them at a higher value.? I think it is 10K in both place, meaning 5K pull-ups.? I may take them completely off or go up on the caps.? I use it for now.? I also have NO dynamic step changes.? The encoder bump switch sets 4 levels of steps.? I have it boot up at 1 KHz?? I know Jack has some fancy code for that.

Mike, WA6ISP


On 11/6/2017 5:23 AM, Michael Babineau wrote:
Allard :?

The only way I could see that you could cram in support for an encoder for tuning would be via conditional compilation.?
i.e. something like :?

#if defined (ENCODER_TUNING)
? ?// code for encoder ?
#else
? // code for tuning pot?

Since you either use the pot or an encoder for tuning, not both, ?this would potentially work ?but it has the disadvantage of cluttering the code up
and making it a bit more convoluted.?

The default could remain as tuning pot to maintain compatibility. Anyone wanting to use an encoder would need to?
uncomment a define for ENCODER_TUNING (or whatever you would call it) so that code is compiled and used instead.?

Cheers

Michael VE3WMB?

P.S. My idea doesn't consider the necessary pin assignments needed for the encoder and the encoder switch, which might conflict with?
existing PIN usage on the Nano. Since this might involve PIN reassignments, my suggestion would be to defer any?consideration for this
until Raduino V2.?


-- 
Mike Hagen, WA6ISP
10917 Bryant Street
Yucaipa, Ca. 92399
(909) 918-0058
PayPal ID  "MotDog@..."
Mike@...

Join [email protected] to automatically receive all group messages.