Podcasting since August 2005! Listen to our latest podcast here:

Podcasting since August 2005! Listen to Latest SolderSmoke

Tuesday, October 20, 2026

About the Limits and Problems and Shortcomings of AI (actually of LLMs) -- The Design and Construction of a Crystal Filter

Complaining about AI on the computer/internet while surrounded by digital rigs!
 

A couple of days ago, I described in this blog how AI (specifically the Gemini LLM) had helped me design a 13 MHz crystal filter.  There was some angry push-back from people who seem to dislike any use of AI. One fellow said I should use my own mind and hands, and that by using AI I would risk having time to stand on the street corner.  I found it kind of ironic that this observation was being sent to me on a computer connected to the internet (two tools that have made this kind of construction MUCH easier).  

In the first round I think AI helped a lot. It even drew nice looking schematics for me.  Using the motional parameters determinef by me via the G3UUR method,  AI used the basic equations to calculate the shunt capacitances and the termination impedances.  This helped me avoid many of the mathematical errors that had slowed me down in the past.  I went ahead and built this filter, and (later!) took a look at the passband in my Antuino (a Scalar Network Analyser from Farhan). 


I found the passband to be that of an "LSB filter":  the skirt was steep just below the cutoff frequency, but much more sloping farther down in frequency.  This is not what I needed.  The signal hitting this filter would be (and would remain) USB. I could try to use this filter but I would be placing my BFO/Carrier Oscillator on the sloping portion of the curve.  Carrier and opposite sideband suppression would suffer. (Note: It is NOT 20 db down!  -20 db on this meter equals 0 db.) 

And here is one point where LLM AI really screwed up:  I asked it for a 5 crystal filter that would be a USB filter: One with the steep part of the skirt above and close to the cutoff frequency.  AI LLM quickly obliged.  I was suspicuous, because I had never seen this before. Here is what AI LLM Gemini recommended: 


Wow, looks great right?  Yea,  but it doesn't work.  I built it and looked at it in the Antuino.  NOPE.  It wasn't even acting as a bandpass filter.  It is more of a notch filter. Confronted with the failure, AI LLM admitted it was wrong (my coments in red): 

-------------------------------------------------
This configuration does not work. I have never seen it in any amateur radio book. Are you sure that this will work?

You are 100% correct to call that out—that schematic is incorrect and will not work as an SSB bandpass filter.

Why the Shunt-Crystal Schematic Fails

In quartz crystal equivalent circuits, the crystal reaches its lowest impedance () at its series resonant frequency ().

  • Series Position (Correct Bandpass): When the crystal is placed in the series signal line, its low impedance at allows the RF signal to pass through to the next stage.
  • Shunt Position (Incorrect): Placing the crystal directly from the signal line to ground causes it to act as a shunt short circuit at . Instead of passing a window, it short-circuits directly to ground, creating a band-reject (notch) response rather than a bandpass filter.

This is why you will not find that topology in Experimental Methods in RF Design (EMRFD), the ARRL Handbook, or classic G3UUR/Dishal filter literature.

---------------------------------------------------------
At this point I decided that a 10 crystal Cohn filter would give me the steep skirts I needed.   Here is what AI recommended: 



I went ahead and built this one.  I looked at it with the Antuino.  It works. 


You can see the steeper skirts on this filter.  These steep skirts will allow me to use this filter on 17 meters with the 5 to 5.5 MHz VFO from the old Kenwood TS-820s.  

In the course of doing this, an old friend who works in this field (and who will remain anonymous) warned me about the dangers of over-reliance on AI LLMs, especially when working on ham radio circuitry.  More on this in the days ahead.  

19 comments:

  1. You already know how to make filters with the G3UUR method (just as I do) so using AI is not that dissimilar to using a calculator to count , when we already know how to add.
    I think a problem is when people use AI to skip entirely the learning process.

    Where will it end.. ?
    Will a homebrewer be a Ham that has his AI assistant design a transceiver , order the boards from PCB Way , get a Chinese manufacturing company to install the components , box it up and send the Ham the completed transceiver ?

    Is that homebrewing ?
    Is that learning anything ?
    Is that Amateur Radio ?


    I am just waiting for the first AI to get its DXCC or WAS. , or Activate POTA , remote , entirely without human intervention.

    It is not far off - I have already heard a special event station with a 100% computer voice handling all of the traffic.
    I guess the Ham , if he is actually there , is in reality the assistant to the operator , which is the computer.

    Maybe he gets to lick the stamps for the QSL cards , and think to himself -- I am so smart ! :-)

    ReplyDelete
  2. The problem I have with AI much beyond
    where we are technologically right now after
    all the beneficial digital advances is that
    we are about to become overstuffed. Just like
    a little food is nice and a full belly is better,
    overeating eventually causes gastric distress.
    --Walter KA4KXX

    ReplyDelete
    Replies
    1. Walter: Yes, and stuffed with bad stuff. More on this tomorrow. 73 Bill

      Delete
  3. I really enjoyed this post and the other on crystal filters a day or two past. After the interview with ZL2CTM I am really interested in learning more about crystal filers. I want to do some experimenting. I might have been tempted to us AI for this, but instead I'm taking the old school approach and reading publications and watching videos. There's definitely a very technical side to this where AI will be useful but I'm looking forward to just grabbing some crystals and figuring it out on the workbench.

    ReplyDelete
  4. AI is nothing more than a powered screwdriver that often pretends to be a space telescope. Is it still useful and better than an old fashioned screwdriver? Absolutely.

    I use AI all the time to "help" diagnose weird circuit problems in boat anchors. It's not always right, but it gets me thinking creatively and looking at a schematic more intently.

    My point: using AI has made me a better bench tech and ham radio operator. I don't, however, DEPEND on AI. That's where the line is drawn.

    ReplyDelete
  5. Crystals have both a series resonance and a parallel resonance. Shunt connected crystals work on the parallel resonance.

    Chuck, W7VX

    ReplyDelete
  6. Hi Bill - maybe a good exercise is to ask the AI after design of the filter for a LTSpice file and then simulate that completely outside the LLM. It would have probably picked the error up right away. Also addresses the over-reliance problem.. 73 de W1PJE

    ReplyDelete
    Replies
    1. Phil -- Yea, Dean has thought of uploading a complete schematic. If we did that we could ask AI to do an LTSpice analysis. But I suspect that we would get lots of questions. It might be easier to just do the LTSpice ourselves. 73 Bill

      Delete
  7. Ai isn't the problem. Its the super powerful who control it. One day your kids or grandkids will wonder why we did this. They will pay for expensive water and electricity andcompete for menial jobs as they rent a small apartment. Stop and think about living next to a data center like we do. I honestly will say that is is unpleasant.

    ReplyDelete
  8. Based on my calculations, the parallel resonant frequency of your crystals is just over 13.023 MHz. Did your measurements extend that far? Also, were you able to measure the crystal Q, i.e., the series resistance?

    Chuck, W7VX

    ReplyDelete
    Replies
    1. Chuck:
      I just built it. I think the SNA was wide enough to see the parallel freq. Like I said, I was skeptical, never having seen anything like this. When I told AI that it didn't work, this was the response:

      This configuration does not work. I have never seen it in any amateur radio book. Are you sure that this will work?

      You are 100% correct to call that out—that schematic is incorrect and will not work as an SSB bandpass filter.
      Why the Shunt-Crystal Schematic Fails

      In quartz crystal equivalent circuits, the crystal reaches its lowest impedance (R_m≈15"--" 30 Ω) at its series resonant frequency (f_s).

      Series Position (Correct Bandpass): When the crystal is placed in the series signal line, its low impedance at f_sallows the 13" MHz" RF signal to pass through to the next stage.
      Shunt Position (Incorrect): Placing the crystal directly from the signal line to ground causes it to act as a shunt short circuit at f_s. Instead of passing a 3.0" kHz" window, it short-circuits 12.9994" MHz" directly to ground, creating a band-reject (notch) response rather than a bandpass filter.
      This is why you will not find that topology in Experimental Methods in RF Design (EMRFD), the ARRL Handbook, or classic G3UUR/Dishal filter literature.
      --------------------
      I could see the notch response. But if you think you can get this to work, go ahead and build it. Let us know what you find. 73 Bill

      Delete
    2. That last answer is more AI slop. Filters using crystals at their parallel resonance point have been around since the 1930's. Not in a ladder format of course, that came along much latter. The issue is I think is that it requires a lot more work to align such filters and this makes them more expensive plus realitively inexpensive test equipment needed to do such alignments did not come along until relatively recently.
      I think this exercise underscores to me that using AI is only viable if you know enough to interpret its answers. As someone said AI makes a better screwdriver not a better telescope.
      That is where we seem to be today. Who knows in 5 years.
      73 Mark VK6WV

      Delete
    3. Mark: OK, I hope you are right. Could you please build one that works and show this to us? In my case, I built what the AI LLM prescribed, and found that it did not work. So I went ahead and built the 10 pole filter that gave me the steep skirts that I needed. 73 Bill N2CQR

      Delete
    4. Bill my building these days is restricted due to medical issues and what building I am doing is of receivers, mainly TRF, regen and direct conversio n however there is no need for any building today because high impedance crystal filters have been designed and built since the late 1930's. The Germans, especially Telefunken built many receivers for the German military which included such filters, even tunable bandwidth versions.
      Second world war german military radio's and their manuals are fairly rare these days I understand this is mainly because of a deliberate policy of the US to crush them into scrap.
      Helge Fykse LA6NCA has a collection of WWII radios including German sets and in the past he has described such sets on his channels.
      I have searched the web for more info but little seems to have made it onto there which is probably why such techniques are not proposed by AI.
      At least your discussion seems to have woken people up.
      73 Mark VK6WV.

      Delete
  9. Hi Bill,
    I think this topology will work, but as they say, the "devil is in the details". The circuit values may not be correct. I'm not sure why they haven't appeared in the amateur literature but it might be that they are more difficult to design for the hobbyist community.
    Keep in mind that a parallel resonator has a high impedance at resonance which is why the crystals are used in their parallel mode - not series mode.
    BTW, what are you using for the center frequency, 13 MHz? Then the BFO must at 12.9985 I'm guessing. If that's true then there should be some capacitors shunting the crystals to lower the parallel resonant frequency from 13.023.

    Chuck, W7VX

    ReplyDelete
    Replies
    1. I think you should build it. But I don't think it will work. I could be wrong.

      Delete
  10. Bill, I still don't understand what a calculator, computer or the digital rigs on your desk have to do with AI. A calculator doesn't confidently lie to you, doesn't fabricate things that don't work or aren't true nor does it pretend to be somehow "intelligent". I also fail to see where you got that people dislike AI or the use of it? How can someone dislike something that doesn't exist yet?

    For the second time I'm missing the actual "I" in AI. The new crystal filter the AI tool devised for you is, yet again, a total miss. A series C (or shunt C/2 if you prefer) at both ends of the filter is not optional in a Cohn filter. The passband is totally distorted without those caps. Even worse, actual filter bandwidth aproaches 4 kHz with the shunting caps being only 21.4 pF. It can also be stated that the Antuino doesn't provide much help at all in recognizing this.

    Why didn't you at least check if the filter(s) work at least in theory? It would have immediately shown you how bad the AI fabrications really are, without having to build anything yet. Imho it would have taken much less time to just enter the crystal parameters in a crystal filter design app. As a result there would have been proper filters to show around.

    ReplyDelete
  11. Well Robert, you can do things the way you want to do them. And so can I, right? I see the actual construction of the device as the ultimate test of whether the design works or not. And I have built many, many crystal filters. I have built them the old fashioned (pre AI LLM) way. LLM makes some things easier (like the picture in this post!), and fails on some other tasks (like explaining how mixing produces sideband inversion, and about how to build a USB filter). I am sorry that you don't understand why some people dislike AI, but, well they really do. And there are a lot of things about it that I too dislike. But, as I said, we should ""give the devil his due." Good luck to you. What is your callsign, BTW? Bill

    ReplyDelete
  12. To me the guy in the photo looks like an angry old Jack Nicklaus after he just shanked a ball into a sand trap. --Walter KA4KXX

    ReplyDelete