Keyboard Shortcuts
Likes
- BITX20
- Messages
Search
Re: Help with rotary encoder code, please, anyone?
Jack Purdum
At least part of the problem is that my encode is using a Mega 2560 Arduino, which has 5 external interrupts while the Nano and Uno only have two. Near the top of my code (line 120) are: #define ENCODERPINA ? ? ? ? ?19 ? ? ? // Encoder pin A, interrupt 5 #define ENCODERPINB ? ? ? ? ?20 ? ? ? // Encoder pin B, interrupt 4 #define ENCODERSWITCH ? ? ? ?22 ? ? ? // Encoder switch pin which are the pins used for the encoder. You need to use interrupts 0 and 1, which means pins 2 and 3. Try: #define ENCODERPINA ? ? ? ? ?2????????// Encoder pin A, interrupt 0 #define ENCODERPINB ? ? ? ? ?3????????// Encoder pin B, interrupt 1 #define ENCODERSWITCH ? ? ? ?22 ? ? ? // Encoder switch pin If the encoder rotation is "backwards", reverse pins 2 and 3. (I can't remember which is which.) The ENCODERSWITCH is the switch that's part of the Ky-040 encoder and you can set that to whatever empty pin you want to use. See what these changes do. Jack, W8TEE From: John P <j.m.price@...> To: [email protected] Sent: Sunday, July 30, 2017 1:21 PM Subject: [BITX20] Help with rotary encoder code, please, anyone? So, I've been trying to get my Arduino UNO to read a rotary encoder. And have been having zero success (beyond a clean compilation). I'm using the , which is the?same one Jack uses in his VFO code, and I basically cloned the code to read the encoder from Jack's VFO code. No matter which way I turn the encoder, the Rotary.process() function always returns zero. In Jack's code, he calls the Rotary constructor with PinB first, which I found a little confusing. But, I tried both ways and neither works. I tried with HALF_STEP both enabled and disabled in the Rotary.h file. That didn't make any difference either. Using a voltmeter, I can see both the A & B pins changing state as I turn the knob and even tried a different encoder just in case. Didn't matter. So, I'm about to throw my Arduino at the wall! Just kidding! If anyone can see what I'm doing wrong in the attached code, please tell me. I've spent about 8 hours fiddling with it so far, and can't figure it out! Thanks in advance! -- John - WA2FZW |
||
Help with rotary encoder code, please, anyone?
John P
So, I've been trying to get my Arduino UNO to read a rotary encoder. And have been having zero success (beyond a clean compilation).
I'm using the , which is the?same one Jack uses in his VFO code, and I basically cloned the code to read the encoder from Jack's VFO code. No matter which way I turn the encoder, the Rotary.process() function always returns zero. In Jack's code, he calls the Rotary constructor with PinB first, which I found a little confusing. But, I tried both ways and neither works. I tried with HALF_STEP both enabled and disabled in the Rotary.h file. That didn't make any difference either. Using a voltmeter, I can see both the A & B pins changing state as I turn the knob and even tried a different encoder just in case. Didn't matter. So, I'm about to throw my Arduino at the wall! Just kidding! If anyone can see what I'm doing wrong in the attached code, please tell me. I've spent about 8 hours fiddling with it so far, and can't figure it out! Thanks in advance! -- John - WA2FZW |
||
Re: On the Air! Finally!
Eric KB1VNA wrote...
Attached are a couple of photos of the completed unit.I like your case! The only thing I'm not keen on is the travel of theAre you sure it isn't going to 10 KHz steps when you get to the ends of the pot? I was originally going to do the mod adding a fixed resistor on the top and bottom ends of the pot with a push-button across each resistor to manually step up and down, but I have a 10-turn pot on the way that will actually do away with "galloping" or manually stepping up and down. /g/BITX20/topic/fixing_the_galloping_vfo/4552318?p=,,,20,0,0,0::Relevance,,galloping,20,2,0,4552318 Raduino is up to v1.20.1 now, but the following description from 1.04 should still apply. /g/BITX20/topic/raduino_v1_04_allowing/4694574?p=,,,20,0,0,0::Relevance,,10+turn+pot,20,2,0,4694574 I should be back on the air with a BITX40 within a day or two. I'm waiting for a replacement IRF510 to show up. However, I'll be listening on 7277 KHz this evening. -- 73 Keith VE7GDH |
||
On the Air! Finally!
Good afternoon all.
I've finally got a Bitx40 on the air! Another local ham had acquired a Raduino version and decided he had too many projects to get it going so he sold it to me for just under cost. I swapped it out with the original version Bitx40 in the case that I'd already made and hooked it up as directed. It appears to be working exactly as designed. Phew! It's been a long time getting something on the air! Attached are a couple of photos of the completed unit. The only thing I'm not keen on is the travel of the pot before it switches to 100 kHz steps. Has anyone had any success with mods that folks have done to give more travel? I tried a 1meg pot but it didn't seem to make much difference. Aside from that, I'm thrilled to have it on the air. I'll keep working on the original non-radiuno version, but at least it's not keeping me from getting contacts. I made a couple yesterday immediately after finishing the build.? All the best! 73 de KB1VNA Eric |
||
Re: I7SWX PTT Pop Mute
I checked my work and found a wrong connection on my part.? I fixed the connection and the circuit now works as described, reducing the PTT pop and noise on initial transmit. ? I did not experience an issue with transmit, it seems to be working normally.? There is a slight click when entering TX and a slightly louder pop when exiting TX, but neither are as loud as the PTT pop before adding this modification. The audio is silent during transmission.
Sorry about the false alarm in #30619. This modification is a worthwhile addition to any BITX40. /g/BITX20/attachment/21876/0/BITX-40%20PTT%20CLICKS.png |
||
Re: BitX on Display at HamQuest in Lebanon TN
Doug Paulson
Excellent advocacy David. Happy to be one of the followers. Doug? KA4DXX? On Sat, Jul 29, 2017 at 4:37 PM Dave Matthews <dave@...> wrote:
|
||
Re: VK3YE AGC questions, description of how it works? and how to make it more effective?
chris gress
Look how I connected mine in the post before the one you posted my audio was bad till I changed the input to the AGC circuit I also dropped the audio gain of the audio amp between pins 1,8 there's a cap add a 1,2k ohm ? ie ?----l l----R----- ?it makes the audio lower but I only use headphones so its OK ? On 30 Jul 2017 02:45, "KC8WBK via Groups.Io" <cruisenewsnet=[email protected]> wrote: I think that I had the VK3YE AGC installed correctly, but the audio output had the high tones clipped off, and there was a motorboating sound with the audio that I could hear. I could understand, but there was distortion. ? Could this be because I used ceramic capacitors and not electrolytic? |
||
Re: BitX on Display at HamQuest in Lebanon TN
hey, that is a very nice picture of the bitx40 break down! - f On Sun, Jul 30, 2017 at 3:40 AM, Doug Paulson <Canpilot1@...> wrote:
|
||
Re: Finished to build but LCD noise.
开云体育About “ground loops” please read...
?
?
? Sent: Saturday, July 29, 2017 11:08 PM
Subject: Re: [BITX20] Finished to build but LCD
noise. ?
I'm just getting started with Diptrace,
so this is the best I can do right now.
All of the electrolytic capacitors are 330uF 16V and all the rest are 0.1uF disk ceramics. I separated out J1's 12V in case I want to up the voltage and throw a 7812 into the other leg. I probably should have used higher voltage caps, but it's what I have on hand and, so far, seems to work fine. Each set of ground pins associated with each connector is tied to the ground leg of the final bypass capacitor. That is, the ground pins for J2 tie to the ground leg of C4, for J3 it's C13, and for J1 it's C12. I had connectors on the schematic for the ground pins, but I thought it cluttered it up. The single ground point is important. I'm sure someone with real EE skills
can do a better job with the schematic and explanation of avoiding a ground
loop. I've attached a JPG of the schematic, too.
Jack,
W8TEE
From: CX8ABF Carlos Molina <cx8abf@...> To: [email protected] Sent: Saturday, July 29, 2017 11:57 AM Subject: Re: [BITX20] Finished to build but LCD noise. ?
Thanks Jack
73 Carlos
?
Sent: Saturday, July 29, 2017 12:05 PM
Subject: Re: [BITX20]
Finished to build but LCD noise. ? I'll try to get
that done this weekend and then post it.
Jack,
W8TEE
From: CX8ABF Carlos Molina <cx8abf@...> To: [email protected] Sent: Saturday, July 29, 2017 10:55 AM Subject: Re: [BITX20] Finished to build but LCD noise. ?
Please Jack,
send us the schematic
of the modified PSU.
?
73 Carlos
CX8ABF
?
?
|
||
Re: Finished to build but LCD noise.
Jack Purdum
I'm just getting started with Diptrace, so this is the best I can do right now. All of the electrolytic capacitors are 330uF 16V and all the rest are 0.1uF disk ceramics. I separated out J1's 12V in case I want to up the voltage and throw a 7812 into the other leg. I probably should have used higher voltage caps, but it's what I have on hand and, so far, seems to work fine. Each set of ground pins associated with each connector is tied to the ground leg of the final bypass capacitor. That is, the ground pins for J2 tie to the ground leg of C4, for J3 it's C13, and for J1 it's C12. I had connectors on the schematic for the ground pins, but I thought it cluttered it up. The single ground point is important. I'm sure someone with real EE skills can do a better job with the schematic and explanation of avoiding a ground loop. I've attached a JPG of the schematic, too. Jack, W8TEE From: CX8ABF Carlos Molina <cx8abf@...> To: [email protected] Sent: Saturday, July 29, 2017 11:57 AM Subject: Re: [BITX20] Finished to build but LCD noise. Thanks Jack
73 Carlos
?
Sent: Saturday, July 29, 2017 12:05 PM
Subject: Re: [BITX20] Finished to build but LCD
noise. ? I'll try to get that done
this weekend and then post it.
Jack, W8TEE
From: CX8ABF Carlos Molina <cx8abf@...> To: [email protected] Sent: Saturday, July 29, 2017 10:55 AM Subject: Re: [BITX20] Finished to build but LCD noise. ?
Please Jack,
send us the schematic of the
modified PSU.
?
73 Carlos
CX8ABF
?
|
||
Re: VK3YE AGC questions, description of how it works? and how to make it more effective?
I think that I had the VK3YE AGC installed correctly, but the audio output had the high tones clipped off, and there was a motorboating sound with the audio that I could hear. I could understand, but there was distortion. ? Could this be because I used ceramic capacitors and not electrolytic?
|
||
Re: A little off topic, but does anyone know?
开云体育1/4inch - 28tpi? is UNF 1/4inch - 20tpi is UNC Ted ZL1BQA On 30/07/17 6:03 AM, Larry Smith wrote:
|
||
Re: I7SWX PTT Pop Mute
Hi,
The LM386 has no inhibit control so we have to find different solutions, if possible. As Jerry reported "Dumping 12v into the bypass pin of the LM386 to quiet it down is a bit unorthodox". If you look at the internal schematic of the LM386 you will see that taking pin1 to +12V will block the amplification of signals to the output push-pull stage. The relay commutation should take a few tens of mSec to switch and the LM386 gain being zero, as the PTT is de-pressed, will block any pop up plus the RX +12V will quickly go to zero, NO audio output available. No interference with TX stages is expected. 73 Gian I7SWX |
||
Re: BitX on Display at HamQuest in Lebanon TN
Excellent advocacy David. Happy to be one of the gang. Doug? KA4DXX? On Sat, Jul 29, 2017 at 4:37 PM Dave Matthews <dave@...> wrote:
|
||
BitX on Display at HamQuest in Lebanon TN
lostfrogsrecords
开云体育I had a lot of fun showing off the BitX40 at this local ham fest
at the WCARES table. I did it just as an excited advocate of this fun and quirky
little radio, and also to rehearse for presenting it at the
Nashville Mini Maker Faire.? It is a great kit for the maker
movement, and I will also promote the ARRL at the maker faire.? Today's rehearsal went very well, the hamfest was well attended.?
I passed out over 75 flyers I made from text on the HFSIGS.COM
website, and inspired at least a dozen hams to buy the kits and
join us in the fun.? What was surprising however was the number of
hams that came to the table and said that they already had the
BitX40, or two of them, or it just arrived! Every one of them said
it was a fun radio!? In WCARES we have over 10 on the BitX mailing
list and at least that many who are ordering and building the
BitX.? A Boy Scouts troop visited and were very excited about the rig. I gave away 8 3D printed microphone holders that I made from a
Thingiverse STL file. W4DML and KC4LRR showed off their BitX radio builds, and I had
two of mine to show as well.? I also built a display in a shadow
box that was well received.? That box housed my third BitX
purchase.? Finally I had a BitX40 still in the box and DHL pouch
that I showed to reveal that all of the parts on the shadow box
were included, and explained the shipping from India.? That is my
fourth BitX40! Many thanks to Ashhar Farhan, VU2ESE as a part of Paradigm
E-commerce Pvt. Ltd for the service to the ham community by making
this fun radio available for a great price, and giving a
livelihood to those building the boards.? An important part of my
presentation is to echo the text from the website:
HF Signals is founded by Ashhar Farhan, VU2ESE as a part of Paradigm E-commerce Pvt. Ltd to encourage people all over the world to get more active in amateur radio, analog electronics and self-learning. Building and modifying radios is a great education. Lack of access to elmers and and radio builders' community, absence of test equipment : all impede the spread of homebrewing. With the BITX40, we hope to recover that ground and encourage more and more people to get on air, modify, experiment, build and learn. Dave, KI4PSR WCARES, Brentwood TN On 7/18/2017 4:33 PM, Dave Matthews
wrote:
|
||
Re: A little off topic, but does anyone know?
Another screw thread site 73 Larry On Fri, Jul 21, 2017 at 7:52 AM, John P <j.m.price@...> wrote: I recently got a couple of Jennings vacuum variable capacitors on eBay, which I hope to use on the magnetic loop antenna I'm building to go with my Bitx-40. |
||