Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Encoder issue
John,
I did the same. Also reinstalled my IDE from scratch just to be sure. The program works just fine now. It is a great looking tool. Now, I have to decide why my encoder is not changing frequencies. Everything seems to be working fine with the uBitx except the encoder function. The pushbutton work fine, the unit receives, your check of the I2C and the Si5351 chip are a big help. Ensures that works. Here is a copy of the results on the test of the encoder inputs. Not sure what it is supposed to be but it oscilates from Incrementing to Decrementing, though I am turning it the same way. I have tried 2 types of encoders and more than one of each. Same results, so I don't think I have a batch of bad encoders, though that is possible. I guess I need to breadboard a device to check the encoder functions. Thanks for your help and encouragement., Keep up the good work. Copy of results... Input tests Options. Type number and <enter>: ?1. Test Encoder inputs ?2. Test Encoder push - button ?3. Test PTT ?4. Test Keyer ?5. Test Spare Analogue Input ?e or E for exiting Encoder inputs analogue value read by Arduino: ?? 0V --------- 1V --------- 2V --------- 3V --------- 4V --------- 5V AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBB ? Incrementing ?? 0V --------- 1V --------- 2V --------- 3V --------- 4V --------- 5V AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB ? ?? 0V --------- 1V --------- 2V --------- 3V --------- 4V --------- 5V AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB ? Decrementing ?? 0V --------- 1V --------- 2V --------- 3V --------- 4V --------- 5V AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB ? Incrementing -- 72 and God bless KD4EPG |
John,
Ran across this neat little sketch to test encoders. I used a new NANO and used this sketch straight up. All? of my encoders test good. However, I did learn a thing or two. One batch of encoders, the KY-40 version, occasionally puts in a 255 for the value when you are expecting a 0, 1, 2 or 3 for the output. The other batch never did do that.. The one without the board .. However those don't have the switch, so I will order me some from Mouser or Digi and get a replacement... Still, that doesn't answer my questions about the frequency. think maybe an input on the nano is bad? -- 72 and God bless KD4EPG |
Thanks for the suggestion, Bob. I tried that. The ground is fine, the voltage is near +5v as supplied by the NANO as a reference. I took the power down, disconnected from power source and checked the ground to chassis ground and it is good. Great idea, just not the solution here.
The good news is, I am learning more than I wanted to know about encoders.. lol.. -- 72 and God bless KD4EPG |
John,
I failed to include the link to the encoder test routine.. here it is.. I changed the pins from 2,3 and 4, to 14, 15 and 16 to accomodate the Raduino. I took the board off the mother board, disconnected the cable, used a bread board and wires to connect up directly from breadboard to Raduino and ran your program and the Encoder test. I can get the button to work but nothing on the encoding. I am becoming more convinced I have a bad Nano board. The encoder and breadboard works just fine when I use a new Nano and your program and the encoder check program. Thanks for your help. Guess I will have to learn how to solder SMD right quick and get one of Jim Sheldon's kits working. here.. or make my own.. -- 72 and God bless KD4EPG |
Jack Purdum
Does the Blink or ASCII Table example programs run? Jack, W8TEE
On Saturday, May 19, 2018, 11:32:40 PM EDT, Kd4epg@... <Kd4epg@...> wrote:
John, I failed to include the link to the encoder test routine.. here it is.. I changed the pins from 2,3 and 4, to 14, 15 and 16 to accomodate the Raduino. I took the board off the mother board, disconnected the cable, used a bread board and wires to connect up directly from breadboard to Raduino and ran your program and the Encoder test. I can get the button to work but nothing on the encoding. I am becoming more convinced I have a bad Nano board. The encoder and breadboard works just fine when I use a new Nano and your program and the encoder check program. Thanks for your help. Guess I will have to learn how to solder SMD right quick and get one of Jim Sheldon's kits working. here.. or make my own.. -- 72 and God bless KD4EPG |
Base on that diagnostic and the other test you run I would say definitely the Nano has an analog input issue.
In my test, when you turn the encoder only one way it should always say either incrementing or decrementing but not alternating between the two. That would explain why your frequency hardly changes when you turn the encoder. Jim Sheldon (W0EB) had a few defective Nanos, some brand new, and they failed the encoder test of the diagnostic software too. So it looks like it's (de)soldering time unfortunately. I had to change my Nano for a different reason and I didn't manage to remove it as cleaning as yesterday's example, but it works. Regarding SMDs, I until now, always used through hole, but I am sold on SMDs now, thanks to the advice on this forum. I really like the density of the circuits and if you get the few inexpensive tools to handle them it is not difficult. I bought one of these 1206 size component sample books from eBay (or elsewhere) which contains all valuable values and more of resistors and some of even capacitors.? You'r right, maybe time to upgrade the Raduino too.? Thanks for the link. I will see how that is done and maybe get some ideas to improve my test software. All the best, 73, John (VK2ETA) |
Mike aka KC2WVB
I've been out for two days, just got back. It was connected to common ground but thanks for the thought. Right now its out and the one side under a continuity test reads: open, closed, open, closed.....and the other reads open continuously while the shaft is rotated. So that spells defective encoder. I should have a replacement encoder tomorrow but I am trying to test the Rudino board tonight because I have a nasty feeling it may be corrupted too. I am searching for the voltages to expect on its pin outs. I have the info, I just need to find it. At least I have the BitX40 up and running so last weekend was not a total bust. Mike On Sat, May 19, 2018, 6:14 PM Bob Smallwood <datamedic@...> wrote:
|
Mike aka KC2WVB
I was away for a few days and just tested the voltage off the 8 Pin outs of the Raduino board using a wall wart for power and yellow number 4 as ground. From pin out 3 to 8 the voltage read 4.68 volts dc. Pin out 1 is not used but was giving random mil volt readings and so was pin out 2 which maps to the keyer. With the encoder removed and the radio powered up I grounded red, pin out 6 to yellow which is what the encoder does when the shaft is depressed. This, I think, should have taken me into the standard menu but it did not seem to. It gave me two options one was do you want to change bands? The next momentary grounding of red to yellow said press to confirm and the last momentary grounding of red to yellow took the radio back to the frequency display. This does not seem right unless you have to unlock all the other menu features, so in spite of the voltage readings being seemingly OK I am thinking the Raduino is out to lunch. Could you be so kind as to give me the contact information or web page from which you ordered your new Raduino from? I think I will have to do the same and can't seem to find the spare parts page. Thanks and good luck on your radio. Mike On May 18, 2018 5:55 PM, "kj6etl" <pa1zz@...> wrote: I have almost the exact same issue with my uBitx!!!! |
Mike aka KC2WVB
New encoder arrived today. Replaced the old with the new and wala the UBitX works perfectly now. On Mon, May 21, 2018, 6:26 PM Mike aka KC2WVB <rb5363@...> wrote:
|
Update on the Saga of the lifeless encoder...
I have been chasing encoder issues for a couple of weeks now. We have tried everything, almost. I even ordered the good Bourn encoders in two flavors, they got here and no help. The CEC software would not respond to the encoder to change the frequence for love or money. It would allow menu selection and sub menu selection but not frequency. To make a long story short, I found the problem and have a fix for it... get a NEW NANO. After breadbording a UNO and LCD and KY-040, loaded the software and it worked as it should. awesome. So, I laid the two NANOs that I had been using to find the issue aside and stole one from another project. It worked flawlessly... first time, every time.. Moral of the story, when you think you have done everything, there is always something else to do. Moral #2, keep plenty of NANOs around... lol. PTL for that solution. I can only give Him credit. Now I can resume getting my uBitx on the air.. Thanks to everyone for their assistance, advice and encouragement. -- 72 and God bless KD4EPG |
Mike aka KC2WVB
I am glad you got it in the end. Nice perseverance. Lucky for me it was the encoder that was at issue in my uBitX. Now, I have a spare Raduino from Mike Hagen's shop that when I find the time I may turn into a signal generator for the fiddle shop.? I also found a Telefunken am/fm-stereo/sw/turntable model for $40?at a thrift store. The console is cosmetically an A minus and electronically a B plus. The only thing that seems to be an issue are the volume and tone controls that are, in a sense, stuck at a constant output. If it's as simple as replacing two potentiometer's and perhaps recapping the receiver it was one heck of a fantastic deal. Even as is, its a marvel. On Fri, Jun 15, 2018, 6:16 PM <Kd4epg@...> wrote: Update on the Saga of the lifeless encoder... |
to navigate to use esc to dismiss