this post was submitted on 16 Feb 2025
21 points (95.7% liked)

Ask Electronics

3481 readers
1 users here now

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


founded 2 years ago
MODERATORS
 

Hi all! I'm a firmware developer with little knowledge in analog electronics.. I deal with firmware for IOT projects all the time.

I had to make a breakout board with an off the shelf RF module with self contained PCB antenna. Now I'm intrigued in the hardware side. I'm inclined to design them from scratch myself. (Obviously ignoring the EMI and FCC certifications for the time being).

What concepts should I be familiar with to achieve this? Starting on I figured to brush up on circuit theory and signals. Where do I go from here? What materials would you recommend? Hopefully I don't need to get into hardcore RF theory to design these PCBs (I know kicad already has these premade antenna blocks).

Thank you.

you are viewing a single comment's thread
view the rest of the comments
[–] remotelove@lemmy.ca 10 points 6 days ago* (last edited 6 days ago) (15 children)

Start looking for YouTube videos with Eric Bogatin. He is a professor at CSU Boulder and has re-written the book on proper PCB design. (He does have a book, but he debunked a ton of old theories on high frequency board design and signal integrity.) If there is anything you must do, is follow his work on ground and power plane design or anyone that references his work. If someone uses a ground plane to just "fill in gaps" or have it act as a generic fix-all "shield", ignore them. (Many RF/HF myths came from the way boards were fabricated, not because of a specific circuit function.)

Once your signals get past a certain speed, you need to learn how electricity actually flows while understanding that both AC and DC theory applies. If you didn't know that energy flows in the field around a wire, you probably need to step back a little before you step forward. (Reference Veritasium on YouTube: The Big Misconception About Electricity )

You don't really need to get into heavy RF theory, but it helps. If there is anything you must learn about, it's impedance matching and why it matters. To summarize quickly, if there is an impedance mismatch between your transmitter and your antenna, you could easily blow out your transmitter due to excessive power draw and signal reflection. (That is somewhat rare for low power devices, but not uncommon once you start to transmit above 5-10 watts.) If a device needs an antenna, use it, even if were are talking about something as common as WiFi.

For your first designs, respect trace lengths and recommended components. Most of all, respect the keep out areas around an antenna diagram and ensure your ground plane is properly designed and away from the antenna. There are many shitty designs that do work, but you want to strive for precision for your first few iterations.

Also, decoupling becomes more than just a thing to do that might improve stability of your MCU or other components. It's entirely possible to get the rest of your PCB resonating which will cause all kinds of noise. This is partially negated with proper decoupling.

High frequency design just takes a little more care. Just remember the basic saying: Everything is a resistor, capacitor and inductor.

Now, if you just work with modules (and ESP32 with an integrated antenna comes to mind), almost all of the hard work is done. Make sure you have proper clearances, slap the thing on a board and you are good to go.

For the absolute basics, impedance matching with proper antenna length is what you need to learn first. (Receivers are much more forgiving than transmitters, btw.)

I am fully aware that some key details are missing here and just summarized as best as I could. If something I said turns out to be misleading, that isn't the intent and I apologize in advance. The intent was just to kick start more curiosity.

Edit: RF design and high frequency board design share some design considerations. Not all signals on an RF project are going to be high frequency and not all high frequency designs use RF, but, all high frequency designs can quickly become RF designs.

Also edited a time or two for clarification, grammar and spelling.

[–] ntn888@lemmy.ml 2 points 6 days ago (3 children)

Wow, thank you for the very detailed post! I see that impedance matching is an important base subject. Is it covered in standard circuit theory textbooks. I'm looking to use this book. I tried to skim the contents but couldn't find it... Maybe I need to separately learn it? Thanks.

[–] remotelove@lemmy.ca 4 points 6 days ago* (last edited 6 days ago) (2 children)

That book is a great start, actually. AC theory is critical in understanding RF circuits.

I noticed there were dedicated sections in that book for LC/RLC circuits. In regards to RF, you might see those referenced as resonant tank circuits, so keep that in mind as you move forward.

You aren't going to see too much about impedance matching until you start working with transmission lines, as far as I know.

I just looked this up and read through it and it seems like a good intro. It'll be confusing unless you have a basic understanding of AC: https://resources.system-analysis.cadence.com/blog/msa2021-understanding-impedance-matching-in-transmission-lines

[–] ntn888@lemmy.ml 2 points 6 days ago (1 children)

Okay great! Thanks for all the great insight!

[–] remotelove@lemmy.ca 3 points 6 days ago

Any time! Just learn what you can now and pass the knowledge forward later.

load more comments (11 replies)