-
Just starting out on a project to make a control panel for ham radio project. I found EncoderTool and looks like it's a perfect fit and very well done. Not having much experience with the Arduino (Nano) looking for a feel for how it would work with an optical encoder with 360 PPR using the 74HC165 multiplexer board. The Nano would only be used to capture Encoders, and set LED's state, so not much otherwise. The idea is to use an optical encoder with 360PPR for the main tuning/frequency control, and the possibly using 6 of the more common mechanical encoders for slower and less resolution (24PPR) for other settings like Volume, etc. Likely want to capture the switches so I'm guessing Polling mode? Would that be fast enough for a fast spin of the frequency select knob? Sorry fast is pretty subjective :) Thanks for any feedback before I start ordering parts! Sandy |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think a nano might be too slow for your 360ppr + 6 low-res encoders. I did a quick experiment with a nano and the 74165 code. I measured some 160 µs per tick. That gives you a reading frequency of 1/160E-6 = 6.25 kHz, which might be a bit slow for your 360ppm encoder. |
Beta Was this translation helpful? Give feedback.
I think a nano might be too slow for your 360ppr + 6 low-res encoders. I did a quick experiment with a nano and the 74165 code. I measured some 160 µs per tick. That gives you a reading frequency of 1/160E-6 = 6.25 kHz, which might be a bit slow for your 360ppm encoder.
Any reason why you want to use that ancient processor? If your project is cost-sensitive, you could use a SEED XIAO (~5 EUR), which can tick in 68 µs (14 kHz). Or, if you can spend about 30 EUR, a Teensy 4.X, which would do the same in 3 µs. (Depending on what you're trying to do, using a Teensy probably won't require a second processor, which might reduce the complexity and saves the cost for the second processor)