Keyboard Shortcuts
Likes
- BITX20
- Messages
Search
Sidetone
All,
The CW sidetone is extremely loud. Is it adjustable? Don't think so. It comes out of an Arduino pin and is fed directly into the receive audio chain just before the volume control. OK, is it adjustable with software? Also no. It's produced by a call to "tone()" which is part of the Arduino standard library. And tone() can only do 50-percent duty cycle square waves. Otherwise, I would have been able to adjust it in software by shortening the duty cycle. There is a low-pass filter consisting of 3 resistors and 3 caps - R252,R251,R250, C252,C251,C250. It should be possible to tame it by increasing the value of R250. Another possiblity - the CW sidetone is produced by pin D6. This is a PWM ( Pulse Width Modulation ) pin. PWM works by varying the duty cycle of the output pulse. Tone() is surely using the built-in PWM functionality. I could just bypass tone() and use the PWM directly. Shorter duty-cycle pulses SHOULD sound softer. And the lowpass audio filter should make it not sound too horrible. I think. - Jerry KF6VB |
Re: CNC encoder for ubitx
Jack, W8TEE
Hi Arv: I misunderstood what you were saying for the?clear dumb terminal. Your solution works fine, is easy to code...what's not to like? If the column does come into existence, I hope readers will write in with questions. Unfortunately, I won't always have the answer, but perhaps I can find someone who does. I hope it happens! Jack, W8TEE
On Friday, May 14, 2021, 5:35:18 PM EDT, Arv Evans <arvid.evans@...> wrote:
Jack At the risk of giving away some content that may have been better saved for your column, I was talking about the pseudo dumb terminal that is part of the Arduino IDE.? To the best of my knowledge there is no command that be sent by the attached Arduino to clear this pseudo-terminal screen. My solution is to have the Arduino code send a series of "\n" commands to the dumb terminal emulator.? At 9600 or above this happens so fast that existing screen content is simply scrolled off the screen and disappears without even a flicker.? Code has been added to BitLash to allow it to poll and write to various ports in modes that provide ham radio type interfaces (i.e. SWR, PWR, REV, FWD, MODE, FREQUENCY, FREQUENCY STEP SIZE, FREQUENCY STEP RATE, VFO-A, VFO-B, VFO-C, VFO-D, and so on).? BitLash can be rebuilt to be both attached computer with, or without CAT controls for various type of CAT...even the Schr?dinger's version! ? As you know, many of those here have only recently started to teach themselves C-language.? My typical mistakes may be of interest to them as they make similar mistakes and have related questions.? Others are like me, old codgers with poor memories, and need all the help we can get. Arv _._ On Fri, May 14, 2021 at 2:51 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:
--
Jack, W8TEE |
Re: CNC encoder for ubitx
Jack, W8TEE
Joe: There are a lot of optical encoders that can approach 200 ppr, but they're not cheap. I think I saw one on eBay for less that $30, but that was several weeks ago. Some go as high as several hundred dollars...probably way overkill for your needs. What is a "better encoder" to you? I'm working on an SDT and I have a $1.50 encoder in it and it's fine for me. However, I like detents as they prevent me from "coasting" past a desired frequency. As to buying a subscription, truth be told, almost anything you see in print today can be slightly modified and then posted on the Net. My publisher once told me that for every book I sell, 5 are downloaded for free. The real cost is not what I lose, but the books that don't get written because it's just not worth it anymore. However, we really do need to support the magazines that interest us. Ham Radio, Electronics Illustrated, 73 Magazine, Radio News and others...gone. Give up a dinner out and buy a subscription to one that still exists: CQ, QST, QRPQ, Sprat, RadCom and others...any one of them is worth it. Jack, W8TEE
On Friday, May 14, 2021, 6:34:29 PM EDT, jereed@... <jereed@...> wrote:
Jack, That would be very cool.? But darn, I¡¯d have to subscribe to CQ.? If they go for it let me know and I¡¯ll subscribe. I¡¯ve been wondering about a better encoder.? Something like 200 PPR so a dial rotation would come out at 2KHz at 10 Hz.? I bought one on eBay but it is for industrial counting of things and not smooth enough for a VFO.? So most def, I am interested in such a column. And I like your topic immensely, Joe N9JR -- Jack, W8TEE |
Re: Tuning
All,
toggle quoted message
Show quoted text
As a first cut toward reasonable tuning, I tried disabling the "momentum" stuff in encoder.cpp. Not too bad. It tunes fairly slow, and is not at all "skittish". But I wouldn't want to scan to the other end of the band with it. And I'd like to be able to tune a little finer - so when I tune across a carrier, it sounds like a smooth tune with no jumps. Having a bit of a challenge finding out where tuning is actually done. It looks like there's a 200ms ( 5 times a second ) interrupt where the encoder is read, but the frequency is not actually set there. Whups, the nitty gritty is in doTuning(). Cscope wasn't seeing it because it's in a .ino file, and cscope ( a VERY old C analysis tool ) doesn't know about .ino files. I tried halving the constants in doTuning - much smoother. But you won't be spinning from one end of the band to the other with it. Fast tune mode is still available however. And actually, fast tune is just too fast for my taste also. I changed the increment from 500001 to 200001. Even at that, it pops from one end of 40M to the other in about a quarter turn. OK, I changed it to 100001... then 50001. Now it goes from one end of 40M to the other in about a turn and a quarter of the knob. I set the increment down to 20001.... Now it goes from one end of 40 to the other in a bit over 3 turns. This I can live with. This is fun. This kind of stuff is why I bought the uBITX. Because it's hackable. - Jerry KF6VB On 2021-05-14 13:34, jerry@... wrote:
All, |
Re: Tuning
Mark - N7EKU
Hi Jerry, |
Re: Strange drop in sensitivity on V6
#ubitxv6
Justin,
That is the same way that I connected the AGC for my friend's ?BITX.? Was not sure if you did the connection to the board or the volume control. I complain about keyboards and spellcheckers all the time!? Of course, it isn't my typing skills that are at issue ;-) 73 Evan AC9TU |
Re: CNC encoder for ubitx
Jack,
That would be very cool. But darn, I¡¯d have to subscribe to CQ. If they go for it let me know and I¡¯ll subscribe. I¡¯ve been wondering about a better encoder. Something like 200 PPR so a dial rotation would come out at 2KHz at 10 Hz. I bought one on eBay but it is for industrial counting of things and not smooth enough for a VFO. So most def, I am interested in such a column. And I like your topic immensely, Joe N9JR |
Re: micro bitx kit from 2018
#ubitx
I would be interested in this topic. I put together one that I got a couple of years ago (a v4).
|
Re: CNC encoder for ubitx
Jack At the risk of giving away some content that may have been better saved for your column, I was talking about the pseudo dumb terminal that is part of the Arduino IDE.? To the best of my knowledge there is no command that be sent by the attached Arduino to clear this pseudo-terminal screen. My solution is to have the Arduino code send a series of "\n" commands to the dumb terminal emulator.? At 9600 or above this happens so fast that existing screen content is simply scrolled off the screen and disappears without even a flicker.? Code has been added to BitLash to allow it to poll and write to various ports in modes that provide ham radio type interfaces (i.e. SWR, PWR, REV, FWD, MODE, FREQUENCY, FREQUENCY STEP SIZE, FREQUENCY STEP RATE, VFO-A, VFO-B, VFO-C, VFO-D, and so on).? BitLash can be rebuilt to be both attached computer with, or without CAT controls for various type of CAT...even the Schr?dinger's version! ? As you know, many of those here have only recently started to teach themselves C-language.? My typical mistakes may be of interest to them as they make similar mistakes and have related questions.? Others are like me, old codgers with poor memories, and need all the help we can get. Arv _._ On Fri, May 14, 2021 at 2:51 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:
|
Re: Strange drop in sensitivity on V6
#ubitxv6
Evan,
The AGC board I installed is at this link which shows how it is conjnected to the uBITX PCB. 73, Justin B. KI5GKD |
Re: CNC encoder for ubitx
Jack, W8TEE
Hi Arv: All of those would be interesting, but I don't know anything about BitLash other than what it is. Usually, a device being used as a screen (e.g., 16x2 display or TFT color display) will have doc sheets telling what the commands are for a clear screen (and other things, like cursor positioning). Reading push buttons or a keyboard is really the same thing, only a keyboard usually has more switches that the microcontroller has pins, so some kind of interface is normally used. The current project I'm working on (an SDT) uses one pin to control 16 switches, saving me 15 pins for other uses. Those are the kinds of things I want to highlight. I do have to keep in mind that I need to provide a solution in a fairly small number of paragraphs. Still, I think it would be nice to have a place where software topics can be discussed. If it does happen, I would also like to present the ideas/solutions of others, too. Jack, W8TEE
On Friday, May 14, 2021, 4:30:42 PM EDT, Arv Evans <arvid.evans@...> wrote:
Jack Of course I would be interested.? I might even be able to contribute some problems and maybe some solutions for the column. Things that immediately come to mind:
Arv? K7HKL _-_ On Thu, May 13, 2021 at 8:49 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:
--
Jack, W8TEE |
Re: Question about voltage regulator
Might help _._ On Fri, May 14, 2021 at 5:51 AM Jonas Sanamon <sanamon@...> wrote:
|
Tuning
All,
So the reason I wanted to upload sketches is as follows: I find the tuning of the uBITX troublesome. Say I'm at the top of 40M and I want to get down to the CW segment: I spin the knob, and down she goes. But before I get to where I'm going, it shifts into this "hyper-tune" mode, and all the sudden I'm down at 6MHz. I'd like it to act more like my old SB-34 transceiver. This has a mechanical vernier mechanism. The "fine" vernier area is about 15 kHz wide. You tune fairly fast to get more or less where you're going, you pass it, and then when you reverse the knob, it starts tuning really slow. As long as you're in the slow-tune area, it tunes fine & slow. When you get to the end of the 15kHz fine tune area, it starts tuning fast again. By "fast", I mean a convenient speed for scanning across the segment, looking for signals. By "slow", I mean a speed that's good for zero-beating an SSB signal, or zeroing in on a CW signal. I have no use at all for the "hyper speed" tuning mode. If I wanted to move a MHz or more, I'd just change bands or punch in the frequency. - Jerry KF6VB |
Re: CNC encoder for ubitx
Jack Of course I would be interested.? I might even be able to contribute some problems and maybe some solutions for the column. Things that immediately come to mind:
Arv? K7HKL _-_ On Thu, May 13, 2021 at 8:49 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:
|
Re: Parasites noises
Hello,
I¡¯ve read a lot about the isolation of analog and digital masses and their star connection. For me and for the digital masses, I see at least 4. The arduino, the SI535, the Nextion and the encoder. Knowing that my Arduino and my SI5351 are on individual tulip support for each leg, it¡¯s easy to isolate them (desolder the tulip for each leg) and connect them alone together and after to the ground. What do you think about it. Is it the design of the Ubitx with the card in front? If you have any other ideas., tell me. cdt |
Re: Upload sketch
Woo hoo! It worked!
toggle quoted message
Show quoted text
I also changed the code a bit - added an extra printout just to convince me that it had actually uploaded. I was fooled because the IDE didn't display anything like "upload finished". And the LCD display didn't change. - Jerry KF6VB On 2021-05-14 09:40, Jack, W8TEE via groups.io wrote:
Jerry: |
Re: Strange drop in sensitivity on V6
#ubitxv6
Even and Ashhar - The middle leg of D5 produces a small "squeal" (about the same level as that of pin 3 of the amp) as well so maybe everything is OK.? As soon as I find my USB cable I'll re-calibrate the S-meter and consider it done.? Not really set up to do any fine soldering up here so any testing that requires soldering on the board will have to wait until this fall when I'm back in civilization! :-)
Thanks for the help and sanity check. 73, Justin B. KI5GKD |
Re: Upload sketch
Jack, W8TEE
Jerry: What happens if you try to run the following code: char message[128]; void setup() { ? // initialize serial: ? Serial.begin(9600); } void loop() { ? int charCount; ? ? // if there's any serial available, read it: ? while (Serial.available() > 0) { ??? charCount = Serial.readBytesUntil('\n', message, sizeof(message) - 1); ??? if (charCount > 0) { ????? message[charCount] = '\0';????? // It's now a string... ????? Serial.println(message); ????? break; ??? } ? } } Just type a short sentence into the serial monitor's textbox and press Enter. Jack, W8TEE
On Friday, May 14, 2021, 12:30:38 PM EDT, jerry@... <jerry@...> wrote:
Now on a different PC.? Results the same.? Yes, the CH340 driver is loaded.? Anybody know what's the baud rate? ? Playing with the Serial Monitor at 9600 baud, I type "hello" into the "send" box and it responds with a string of non-ascii characters - actually, the upside down question mark that Spanish people put at the beginning of a question. ? ? ? ? ? ? ? - Jerry On 2021-05-14 08:59, Evan Hand wrote: > Jerry, > > I would go to the Windows Device Manager (right-click on the Windows > Start Icone) and verify that the CH340 driver is connected and the com > port assigned.? It should show up under Ports (Com & LPT). > > Also, note that you need to have the Nano connected BEFORE you open > the IDE for communication.? Not all software will recognize an added > drive after it is opened. > > 73 > Evan > AC9TU > > > Links: > ------ > [1] /g/BITX20/message/88331 > [2] /mt/82826925/243852 > [3] /g/BITX20/post > [4] /g/BITX20/editsub/243852 > [5] /g/BITX20/leave/10189903/243852/952924773/xyzzy -- Jack, W8TEE |