A small dual channel 2.4Ghz LORA wireless module

Designing My Own 2.4 GHz Transceiver PCB

As an electronics engineer, and even as an ordinary person, you are constantly surrounded by high-frequency transmitters and receivers. It doesn't matter whether it's the mouse or keyboard you're using right now, your mobile phone, or some component in your car. Wireless communication is everywhere. So, I thought: why not build a transceiver myself?
Nowadays, these transceivers are available as highly integrated circuits, meaning there's relatively little work required to get them up and running. Naturally, I wanted to take advantage of this and design my own transceiver PCB. Maybe one day I'll even try designing my own analogue transmitter, but who knows what the future holds!
As with all my projects, I started by defining a few requirements the design should fulfil:
  1. Single supply voltage: The board should require only one supply voltage.
  2. Low power consumption: It should be suitable for mobile applications.
  3. Decent range: It should provide a reasonable communication range.
  4. 2.4 GHz frequency band: The transceiver should operate in the widely used 2.4 GHz ISM band.
  5. Diversity: It should support antenna diversity and/or frequency diversity to improve communication reliability.
  6. Compact design: The PCB should be as small as reasonably possible.
  7. Low cost: And, of course, it should be cheap! :)

Choosing the Transceiver

Operating in the 2.4 GHz band comes with some inherent limitations, particularly when it comes to communication range. Compared with lower frequencies, signals at 2.4 GHz generally experience greater free-space path loss over the same distance. Obstacles, reflections, and interference can further affect the signal quality. Another issue is short-term fading, which can cause the received signal strength to fluctuate significantly over relatively short periods or distances. To mitigate these effects, I decided to make diversity a key requirement for the design. Unfortunately, I couldn't find a single chip that met all my requirements out of the box. Therefore, I decided to use two separate transceiver ICs. My choice fell on two SX1280 LoRa transceivers. These are well-established, widely used devices, and I already had confidence in their capabilities. Additionally LoRa is known for good transmission ranges. However if I were designing a second version today, I would also consider newer alternatives, such as the LR2021, as it claims to have even more sensible receivers. However, the SX1280 is a well-tested solution that should do the job perfectly well for this project. Using two transceivers gives me the flexibility to experiment with diversity techniques, whether by using separate antennas or different operating frequencies. This allows for redundancy in both the frequency domain and the spatial domain, improving communication reliability under challenging conditions.

PCB Design

The SX1280 is a highly integrated transceiver, so the external circuitry required to get it up and running is relatively straightforward. Apart from the necessary decoupling capacitors and the inductors required by the power supply circuitry, there isn't much additional hardware to worry about. Of course, the main challenge lies in the RF input and output paths, which require careful design to ensure good performance. In my case, I opted for the simpler approach, particularly when it came to the RF filtering network: I used a prebuilt RF front-end network instead of designing the individual components myself. This saved me a considerable amount of time while also reducing the PCB's size and overall complexity. The result can be seen in the PCB layout shown in the figure on the right. As you can see, the capacitors are packed quite tightly. For a daughterboard of this size, the layout is certainly pushing the limits a little, but it should still be manageable. One interesting aspect of this design is the board-to-board connection. I wanted to experiment with a PCB that resembles a BGA package. The underside of the board features dedicated solder pads for the power supply and ground connections. These provide direct electrical connections to the corresponding pads on the motherboard while also helping to establish a solid connection between the two boards. The remaining signals, such as SPI and the other control lines, are routed through castellated holes along the edges of the PCB. Looking back, I would probably route the signal connections through pads on the underside as well. This would simplify the board-to-board interface and potentially allow for an even more compact design. Furthermore it would reduce the amount of traces going across the whole PCB.... But, of course, hindsight is always 20/20! By the time I considered this improvement, the motherboard was already finished. Ouch! :)

RF Layout and Isolation

Both transceiver sections use essentially identical layouts, making the two modules almost a copy-and-paste version of each other. However, there is one thing I would change if I were to redesign the board: I would rotate one of the transceiver sections by 90 degrees. Why? Because isolation between the two RF sections is important, particularly when operating at the same time or in close proximity to one another. Depending on the antenna placement, PCB geometry, and coupling paths, rotating one section could help reduce unwanted coupling between the two channels. Of course, a 90-degree rotation alone does not guarantee better isolation. But there is a good chance that it would improve it. The actual improvement would depend on the complete RF layout and the antenna cabeling orientation and antenna orientation. Unfortunately, implementing this change would have required modifying the motherboard as well as i was not able to fit it in the given formfactor. So, for this revision, I decided to stick with the existing layout. Both transceiver sections are covered by metallic shielding cans to help reduce unwanted electromagnetic coupling and interference.

The Importance of the Reference Clock

Another important consideration is the reference oscillator. At first glance, the oscillator might seem like a relatively minor component compared with the transceiver itself. However, its performance can have a significant impact on the overall RF behaviour. In particular, the oscillator's frequency accuracy and stability influence the frequency at which the transceiver operates. This becomes especially important when using LoRa at 2.4 GHz. Since LoRa communication can use frequency hopping, frequency inaccuracies can lead to reduced performance. This is particularly relevant when using a narrow bandwidth, as the frequency tolerances become tighter and even relatively small frequency errors can have a greater impact on reception. For this reason, the reference oscillator is not a component I would want to save money on unnecessarily. Choosing a suitable component with good frequency stability is important, especially if the application requires reliable communication under varying environmental conditions. Of course, the oscillator's characteristics are only one part of the equation. The transceiver's internal frequency synthesis, modulation scheme, receiver bandwidth, and overall system design also influence the final performance. Nevertheless, it is worth paying attention to the reference clock rather than treating it as an afterthought.

Ground Planes and Power Distribution

Since this is an RF design, I tried to maximise the available ground-plane area wherever possible. A continuous ground plane provides a low-impedance return path for high-frequency currents and helps control the electromagnetic behaviour of the PCB. It also supports a more predictable RF layout and can reduce unwanted coupling between different circuit sections. I also placed numerous vias throughout the design to connect the ground planes and provide additional return paths between layers. These vias help maintain a low-impedance ground connection and reduce the size of the current loops. At high frequencies, minimising loop area is particularly important because it helps reduce unwanted inductance and electromagnetic radiation. The power supply routing received similar attention. I tried to keep the current paths as short as possible and provide solid connections to the supply rails. Combined with appropriate decoupling capacitors, this should help ensure that the transceivers receive a stable supply voltage while minimising unwanted noise and interference. After all, even though modern transceivers integrate an impressive amount of functionality, good PCB layout is still essential for achieving reliable RF performance.

Conclusion

This project is my attempt to build a compact, low-power 2.4 GHz transceiver board using readily available, highly integrated radio ICs. By combining two SX1280 transceivers on a small daughterboard, I can experiment with diversity techniques while keeping the external circuitry relatively simple. The design also gave me the opportunity to explore some interesting PCB concepts, including a compact board-to-board interface, metallic RF shielding, and careful ground-plane and power-distribution design. Of course, there are already a few things I would change in a future revision. Rotating one of the transceiver sections, reconsidering the signal connections, and further optimising the RF layout would all be worth investigating. But that's part of the fun of hardware development: there is almost always something you would do differently once the first version is finished. Now, the interesting part will be finding out how well the board performs in practice! After all, a good-looking PCB is nice, but a good-looking PCB that actually works is even better. :)


The Schematic

The design uses a hierarchical schematic structure. At the top level, there are only two main elements: the previously mentioned castellated connector for the data signals and the two identical SX1280 transceiver modules. The details are hidden inside the individual module schematics, where all the important circuitry can be found. Besides the decoupling capacitors, which could arguably have been a little larger, each module contains the reference oscillator section and the RF transmitter and filtering circuitry, which is located beneath the shielding can. The reference oscillator has its own ferrite bead in the supply line, along with two decoupling capacitors. This arrangement helps isolate the oscillator's supply from high-frequency disturbances and reduces the risk of unwanted noise coupling into the oscillator output. The oscillator is connected to the transceiver's XTA input through a 1 nF capacitor for AC coupling, as specified in the datasheet. The design also uses the transceiver's internal switching converter. An additional 100 nF capacitor is used to further stabilise the converter's output voltage. The I/O and battery supply voltages are set to match the supply voltage provided by the motherboard. This allows the transceiver's I/O levels to remain compatible with the rest of the system, avoiding the need for additional level-shifting circuitry. Finally, the RF output uses a 2450FM07D0034001T integrated filter. I chose this component because its performance curves in the datasheet looked promising, and its highly integrated design allows the filtering network to be implemented using a single component. This saves valuable PCB space while keeping the RF circuitry relatively simple. The RF transmission lines are designed for a characteristic impedance of 50 Ω, which requires careful consideration during PCB layout.

The PCB

Starting from the RF output and working backwards, one of the important layout decisions was the placement of the shielding can. I positioned it to cover as much of the transceiver circuitry as possible, including the areas around the RF output. The intention was to minimise unwanted electromagnetic coupling between the RF circuitry and the rest of the board. The RF filter was placed as close as possible to the transceiver. This serves two purposes: first, it helps suppress unwanted harmonics before they can propagate further along the RF path; second, it keeps the RF traces before the filter short, reducing the opportunity for unwanted coupling and interference into the small track. The PCB uses calculated 50 Ω transmission lines for the RF paths, together with a dense arrangement of ground vias to provide a low-impedance RF return path. This is particularly evident around the RF output, where maintaining a well-defined return path is essential. The placement of the decoupling capacitors was also carefully considered. They are positioned as close as possible to the corresponding supply pins and other critical points to minimise parasitic inductance and improve their effectiveness at high frequencies.

Layer Stack-Up and Ground Planes

Like the Top layer the inner layer, In1, is implemented as a ground plane. In1 is in fact a unbrocke ground plane. This provides a solid return path for RF currents and helps maintain predictable electromagnetic behaviour across the PCB. The only interruptions are in the areas beneath the RF output traces, where copper clearance is necessary to maintain the required 50 Ω characteristic impedance. These clearances are also important around the U.FL connector, whose RF performance depends on an appropriate PCB footprint and transmission-line geometry. The second inner layer, In2, has a slightly different arrangement. Within the ground guard ring, a 3.3 V power plane supplies the transceivers. Looking back, I would make one important change here: I would use separate power planes for the two transceiver modules. This would give me greater control over the power distribution and could help reduce unwanted coupling between the modules through their supply network. Finally, the bottom layer is also used as a ground plane. Unfortunately, the SPI signal traces cut through this layer, creating interruptions in what would otherwise be a useful return path. To be honest, the SPI routing looks a little unfortunate in hindsight. A different connector style like the previouse mentioned bga style might have preserved more of the ground plane's continuity and improved the overall layout. As always, there are a few things I would do differently in the next revision. But that is part of the learning process: every PCB teaches you something new, even before you power it up for the first time. As always the source to the project can be found on Github. The software for testing the module can be found on the following page An STM32 HAL-Based Interface Library for RadioLib. Part 2 wich contains LoRa measurements can be found here Part 2.