¿ªÔÆÌåÓý

Rotary Encoder and latest sketch


N7PXY
 

I am very confused. I find several sketches and many references to using an encoder for tuning. Is there a set of complete instructions for installing an encoder (where to hook it up to which raduino pins etc.) and can someone point me to the latest sketch that incorporates code to operate the encoder? I am very shaky and inexperienced with Arduino IDE and programming and need some hand holding.


PJH


Jack Purdum
 

I just uploaded:


and


which are the rotary encoder articles I wrote for QRP Quarterly. Perhaps those will help.

Jack, W8TEE



From: N7PXY <hickspj467@...>
To: [email protected]
Sent: Friday, March 17, 2017 3:11 PM
Subject: [BITX20] Rotary Encoder and latest sketch

I am very confused. I find several sketches and many references to using an encoder for tuning. Is there a set of complete instructions for installing an encoder (where to hook it up to which raduino pins etc.) and can someone point me to the latest sketch that incorporates code to operate the encoder? I am very shaky and inexperienced with Arduino IDE and programming and need some hand holding.

PJH



Graham
 

¿ªÔÆÌåÓý

Jack,

Thank you posting these two files. I was just starting to work my way down the path of integrating a rotary encoder into my project.

Ashar's use of pot and ADC as a control for frequency is a very good bit of creative lateral thinking. Very simple and sometimes simple is all you need. I will have to spend some time playing with the idea.

However, I think perhaps I would prefer a rotary encoder but perhaps using a pot and ADC to implement a RIT function may work well. Nothing ventured, nothing gained.


cheers, Graham ve3gtc


On 2017-03-17 19:46, Jack Purdum via Groups.Io wrote:

I just uploaded:


and


which are the rotary encoder articles I wrote for QRP Quarterly. Perhaps those will help.

Jack, W8TEE



From: N7PXY <hickspj467@...>
To: [email protected]
Sent: Friday, March 17, 2017 3:11 PM
Subject: [BITX20] Rotary Encoder and latest sketch

I am very confused. I find several sketches and many references to using an encoder for tuning. Is there a set of complete instructions for installing an encoder (where to hook it up to which raduino pins etc.) and can someone point me to the latest sketch that incorporates code to operate the encoder? I am very shaky and inexperienced with Arduino IDE and programming and need some hand holding.

PJH




 

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


 

¿ªÔÆÌåÓý

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


Dimitar Pavlov
 

Nice work Mr.? Purdum , I will use parts from Your documents in my next QRP project.

Thank You!


On Friday, March 17, 2017 9:46 PM, Jack Purdum via Groups.Io <econjack@...> wrote:


I just uploaded:


and


which are the rotary encoder articles I wrote for QRP Quarterly. Perhaps those will help.

Jack, W8TEE



From: N7PXY <hickspj467@...>
To: [email protected]
Sent: Friday, March 17, 2017 3:11 PM
Subject: [BITX20] Rotary Encoder and latest sketch

I am very confused. I find several sketches and many references to using an encoder for tuning. Is there a set of complete instructions for installing an encoder (where to hook it up to which raduino pins etc.) and can someone point me to the latest sketch that incorporates code to operate the encoder? I am very shaky and inexperienced with Arduino IDE and programming and need some hand holding.

PJH





 

Yessir. ?It's hard to keep the chads stuck when re-working those punch cards. ;)


 

Good one!!

ROTFL, I remember those days.

At 23/03/2017, you wrote:
Yessir. It's hard to keep the chads stuck when re-working those punch cards. ;)