Keyboard Shortcuts
Likes
- BITX20
- Messages
Search
Re: V4.3 arduino code description...
#arduino
Thanks Jerry,
Its one I never use as it make code less readable.? As a result the brain locked. It was just to cryptic for me. For a test I did try digitalRead() and two things happened, it works, and the compiled code is smaller.? Less gnashing and mashing. Trying to figure out the encoder stuff so I can substitute a pair of buttons with the logic of? tap (up) or tap (down) for a single increment/decrement of frequency or menu item. Push and hold does the key repeat.? Least that what I want to replace... Allison |
|||
Re: V4.3 arduino code description...
#arduino
The ternary operator has been around since the 70's
toggle quoted message
Show quoted text
? ?? This equivalent (but untested) function might be easier to read. // Returns a value of 0,1,2, or 3 // If ENC_A is high, the LSB is turned on // If ENC_B is high, then the MSB is turned on byte enc_state (void)? ?{ ? ? byte rval = 0; ? ? if (analogRead(ENC_A) > 500) ? ? ? ? rval =1; ? ? if (analogRead(ENC_B) > 500) ? ? ? ? rval = rval + 2; ? ? return(rval); } ? ? Would be better to use your digitalRead(), not the analogRead(). Not sure why it was done this way. Only the nano analog pins A6 and A7 have no digital IO mode, but perhaps having done battle with those it was assumed that the others were the same? Jerry On Thu, Jul 19, 2018 at 03:02 PM, ajparent1/KB1GMX wrote:
|
|||
V4.3 arduino code description...
#arduino
byte enc_state (void) {
? ? return (analogRead(ENC_A) > 500 ? 1 : 0) + (analogRead(ENC_B) > 500 ? 2: 0);
} That's the code from the UI section...? My brain does not want to parse it. Best I get is analogread(ENC_A) returns greater than 500 its either a 1 or 0 returned. No where can I find the "?" or ":" usage and meaning.? ? Any ideas...? My brain says the library function turns that into something intelligible. Also why can't it be? byte enc_state (void) {
? ? return (digitalRead(ENC_A) ? 1 : 0) + (digitalRead(ENC_B)? ? 2: 0);
}
Allison |
|||
Re: S meter wiring
¿ªÔÆÌåÓýBill, Here is a link to one of Ian's pages which describes it.? Once you go to it you won't go back.? Ignore what I said about it and the s meter.? You are on the right track.
Pat Griffin, CPA, PhD
http://www.cahabatechnology.com
From: [email protected] <[email protected]> on behalf of Bill Carpenter <nz0tham@...>
Sent: Thursday, July 19, 2018 2:33:49 PM To: [email protected] Subject: Re: [BITX20] S meter wiring ?
Pat,
I appreciate it but I have no idea what a Nextion screen is. 73,Bill NZ0T |
|||
Re: uBitx Modulation only lows no highs in frequency response
Allison is suggesting that the 100pf caps at C217, C218, C219, C220, C221, C222
toggle quoted message
Show quoted text
be swapped out with something smaller. The board is laid out for 1206 sized surface mount caps, though 0805 sized parts could be used. These sizes are in imperial units, something near that size in metric should work fine. ? ??https://en.wikipedia.org/wiki/Surface-mount_technology#Rectangular_passive_components Dielectric should be C0G or NP0. Voltage rating doesn't matter much here, anything 25v or more should be fine. Use caps of 5% tolerance (preferably better), or measure them with a capacitance meter. ? ??/g/BITX20/message/52471/g/BITX20/message/52471 Standard values that might be tried include the current 100pf, or Allison's 91pf, or? 82pf. they lower the value the wider the bandwidth. Though changing those capacitance values may change the shape of the filter response with frequency, ideally we would sweep the filter shape somehow to make measurements before and after the mod. As you know, crystal filters in an SSB transceiver like this are a trade-off. A wider filter may sound better, but may not be suitable when there are many stations operating on nearby frequencies. ? Would be interesting to measure the capacitance of any 100pf caps removed, with 10% or worse tolerance parts we would see significant variations n performance. Jerry On Thu, Jul 19, 2018 at 01:20 PM, Bj?rn Pasteuning wrote:
|
|||
Re: uBitx Modulation only lows no highs in frequency response
Hi Allison, I have tried about 7 electrets after my last posting, some sounded a minor bit better others worse. No significant big improvement. |
|||
Re: uBitx Modulation only lows no highs in frequency response
You may have to move the BFO down more for better audio.?
Its the first thing everyone tries, 100 to 200 cycles may help greatly.? Also more than a few have narrower than expected 12mhz filters.?? Mine swept on the analyzer at under 1700hz wide and reducing the parallel caps from 100pf to 91pf got it out to over 2100hz. Allison |
|||
Re: RF power chain mods and improvements..
This string is 275 entries and counting long for those that use email rather than web site you loose a
huge amount of context and replies never mind the ability to look back. I stopped writing on improvements over 20mhz as any increase in power makes the over 20mhz spur a greater issue. Do so at your own risk. For Q90 the BFR106or a similar high FT part is a winner.? Keep Ie under 20ma. For the pre-driver and driver.... THe whole point is to get more gain at higher frequencies as the 3904s can be pretty dismal at 10M.? The 2n2222s are better that but for better 10M you need 2n3866 or 2n5109 and transformer optimizations.? Even with that it wants to do stupid high power at 80m and less than half at 10M.? So the C81/r83 mod is needed to tame down 80m (470pf/8.2ohms from memory). If your not interested in over 20mhz 2N2222A(to18). Ie 20ma max per device. If you are interested in over 20mhz 2n3866 or 2n5109. Ie can be higher but take care for heating. The various transformers need help too.? Look back for specific winding info.?? Memory test of what I used:? T8 (q90) 5t #30 bifilar on FB43-2402?? T9 FB43-302 4t trifilar #28 t10 FB43-302 4t trifilar #26 T11 FB61-202 3T/4T #24 To take advantage of the transformer mods you needs ot make other changes.... See the progression! 2n3866 kitsandparts. com 6.00$ for two.? RFparts.com 1.95ea 2n2222A RFparts.com? 65 cents Biggest issue with RFparts is I believe the have a 25$ minimum, for me I take advantage of that and stock up on various other pats like Arco trimmers, metal clad mica caps and other itms useful to a VHF/UHF RF person. Other suppliers Mouser, Digikey, Jameco. FYI MPSH10 kits and parts have them for 25/$5.00 and BS170 25/$5.00? reliable source and they have Ferrite and toroids! Allison |
|||
Re: QST review of the Bitx40
Farhan, taking a quote from one of our most beloved movies here in the
toggle quoted message
Show quoted text
States, "...you're gonna have to get a bigger boat!" -- Rich WB2GXM On 7/19/18, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:
Just now got my August 2018 copy of QST, a ham publication by the ARRL here |
|||
Re: uBitx Modulation only lows no highs in frequency response
Bj?rn, If you are using the electret element that came with the uBitx, I would try a different one. I haven't been able to use the mics that came with any of my Bitx kits because of bad audio quality. I bought a whole bag of them from a eBay vendor for just a few dollars that work perfect.
Joel N6ALT |
|||
Re: RF power chain mods and improvements..
On Wed, Jul 18, 2018 at 07:02 PM, ajparent1/KB1GMX wrote:
In context they worked in that they were marginally better than the 2n3904s, but comparedHi Allison, So it sounds like you found the 2n3866 superior to the 2n2222a ?at some point in the chain. To avoid having to repeat what you have already tried could you share with us at which point in the chain, i.e. driver, predriver & did you use one or two or four? 2n3866¡¯s are pretty pricey but not unobtainium from a reliable source. And do tnis superiority apply to all bands or just to the higher frequencies? If this is obvious or you have already stated it, I apologize for having missed it (and it¡¯s obviously not obvious to me...) please do not give up, your opinions knowledge and findings are well respected here and elsewhere. Thanks. And thank you for your patience. Sincerely, Jerry aa1of |