¿ªÔÆÌåÓý

Re: Rotary Encoder and latest sketch


 

¿ªÔÆÌåÓý

I¡¯ve heard of software patches but I didn¡¯t know they used duct tape.? ;-)

Mike

K5ESS

?

From: [email protected] [mailto:[email protected]] On Behalf Of AndyH
Sent: Saturday, March 18, 2017 12:23 PM
To: [email protected]
Subject: Re: [BITX20] Rotary Encoder and latest sketch

?

PJH,

? Many of us made our own Arduino/Si5351-based VFOs prior to the introduction of the Raduino concept earlier this year. ?Which way to go depends on how you want to tune. ?There are different types of Arduino boards and they may use different pins for some functions. ?I had an Arduino Micro in the drawer so used that. ?The Micro/Leonardo needed to be wired differently than the Uno, and the interrupt code had to be changed. ?For my Micro, I used digital pins 2 and 3 for the I2C interface (Si5351 and LCD), connected the encoder to digital 10 and digital 11, and the switch to analog 4. ?Most of the code I found for the more-used Uno attached the encoder to D2 and D3.

? I found the following sites to be useful when I was trying to understand Arduino interrupts and encoders (and the differences between devices):

?I used this code to scan the I2C bus to positively identify the addresses for the Si5351 and LCD backpack:

?The code I'm using is an amateur 'mangle' of Tom Hall/AK2B's VFO. ?His page and code are here: ?? and the 'working yet ugly' code for my BITX40 is here:?/g/BITX20/files/KG5RKP%20BITX40

? Rely on Dr. Purdum's advice if you want to 'do it right'. ?Use my example solely as proof that an Arduino noob can get something working with a bit of reading, trial and error(s), and duct tape. :)

? ?Good hunting, ?Andy

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