Estimated Completion Time: 15 minutes
In this lab you will:
- learn how to troubleshoot antennas and other RF hardware
- learn about link budget analysis
- experiment with an awesome open source repository to receive communications from tiny satellites
"TinyGS is an open network of Ground Stations distributed around the world to receive and operate LoRa satellites, weather probes and other flying objects, using cheap and versatile modules." (ref 1). If you haven't done the Meshtastic Lab yet to learn more about LoRa (ref 3), the basic overview is that long range (LoRa) uses chirp spread spectrum (CSS) modulation to encode data, an advantage of CSS is that it reduces power consumption and increases the range at which data can be received, but the disadvantage is the data rates are not very high.
There is an example of a Tiny Ground Station (TinyGS) in front of you today, but let's understand more about the nodes in the TinyGS that are sending out the information - the satellites, weather probes, and other flying objects. Most of the nodes are satellites, a full listing of the active, inactive, and future satellites can be found on TinyGS's home page (ref 1).
The pictures above show the TinyGS interface for one of the active satellites, as of FEB2024, RS52SB as it is traveling towards Australia after passing over Antartica. RS52B will orbit the Earth roughly every 90 minutes because it is in low Earth orbit (LEO). The typical satellite orbits are shown in the second picture above. These orbits have high implications on RF propagation. The further out in the orbit, electromagnetic wave take longer to travel round trip from Earth. Furthermore, we'll need more complex equipment with a combination of directional and high power to reach that far. The benefit of LEO is that power and directionality are not much of a problem, but that comes at the cost of a reduced communication time window with our satellite. Passes only last a couple of minutes!
To solve this problem, companies like Starlink employ satellite constellations to guarantee that at least one satellite is orbiting overhead. TinyGS nodes do not work in a cooperative fashion; each nodes communication is independent of all other nodes. However, as a user, there is typically always at least one TinyGS satellite orbiting overhead to receive telemetry from.
The first picture displays a visual representation of the link budget. In essence, the link budget is a calculation of how much RF power will be at the receiver. This calculation provides an estimate for the likelihood that the transmitted signal will be effectively received. A link budget analysis is analagous to figuring out whether you have enough gas in your car to make it to your destination.
As the above diagram shows, there is significant power reduction between the transmitter and receiver. A common misconception is that this power is lost; however, a better mental model to picture is the second diagram shown. Rather than power lost, you can imagine the power spreading the further it is away from the antenna. This spreading is proportional to the distance from the antenna squared (for those savvy math whizzes out there, this is an area measurement) so distance heavily affects received power.
The benefit of LoRa is that the link budget is close to 140 dB! This provides more than enough budget for a satellite to transmit from space and have a low-cost device be able to detect this signal on Earth's surface.
One last note on TinyGS is that its communications are only one-way. Satellites beam down their telemetry to Earth where it is received by our TinyGS's.
While you can interact with the TinyGS web page via desktop and mobile browser, this lab is actually using TinyGS as a lens from which to study link budget analysis and antenna troubleshooting.
To troubleshoot antennas and other RF components, you will need a vector network analyzer. Vector network analyzers can get very expensive, but in front of you is the NanoVNA v2 which runs for close to $140 on Nooelec (ref 4).
The first picture is the NanoVNA v2, and the second picture is a zoomed in version of the connectors. These will be important in the usage section! Short Open Load Thru (SOLT) calibration is a necessary step to measure key characteristics about your RF components. Think about it like zeroing your M4 before qualifying. SOLT calibration improves the quality of your measurement results.
What is important to measure? It depends on what exactly we are measuring. VNAs can grade the quality of antennas, amplifiers, filters, coaxial cables, crystals, and more! Today, we will just focus on antennas to keep things simple. Our NanoVNA will help us answer the question: "Is this a good antenna?"
The second piece of hardware in front of you is the TinyGS itself as well as 3 antenna options. Which should you use to increase your chances at receiving data from a satellite? If you don't know, proceed to the usage section now.
As you might be able to tell, one of the antennas is homemade. Alternatively, you can buy them on Amazon (ref 6) but I thought it would've been much more fun, and a little cheaper, to just make one! I followed the guides in references 7 and 8.
Device | Cost | Notes |
---|---|---|
NanoVNA v2 | $120 | Not necessary for TinyGS itself, but helpful for RF troubleshooting |
Heltec Lora 32 v3 | $26 | Can run TinyGS |
Quarter Wave Ground Plane Antenna | $46 | On amazon this is $46, or you can DIY your own with a SMA solder connector, 3/16" steel rods, brass threaded inserts, some solder, a soldering iron, and a steel cutting tool |
Total with NanoVNA | $192 | Full TinyGS setup with debugging kit |
Just TinyGS | $72 |
By the end of this section, we will determine which antenna is best suited for our TinyGS application. After browsing TinyGS's web page, we notice that most of the satellites operate on either 400 MHz +/-1 MHz, as well as 433 MHz +/-1MHz. Let's pick an antenna with good performance at 400 MHz.
- Pick up the NanoVNA v2 and turn it on via the switch on the side of the device. Please use the provided mechanical pencil for all touch menu interactions and BE GENTLE.
- First, we must select which frequency range we are going to test. Bring up the menu by tapping anywhere on the screen. Select the "Stimulus" option.
Next, select the "Start" tab and enter "300M" to correspond to 300MHz.
Navigate back to the menu, "Stimulus", and then "Stop". Enter "500M" to correspond to 500MHz. This configures a sweep frequency range 300 MHz to 500 MHz. Here is what your menu should look like:
- Now that we have our range selected, we must conduct SOLT calibration as described in the hardware section. If you don't know which connectors are open, short, and load go back and read that section!
- Proceed with SOLT calibration. Bring up the menu by tapping anywhere on the screen and then select "Calibrate". Select "Calibrate" one more time.
Connect the open connector to port 1 and select the menu option for "open". Wait for the menu to un-highlight. Disconnect the open connector and safely store it.
- Connect the short connector to port 1 and repeat the process. Disconnect the short connector and safely store it.
- Finally, connect the load connector to port 1 and repeat the process. Disconect the load connector and safely store it. Congratulations, you've completed calibration! Navigate back to the "Calibrate" menu and confirm there is a check mark next to "Apply"
- To declutter the screen, we will deselect all displays that have nothing to do with the Smith Chart. In order to do this, bring up the menu, select "Display" and then "Trace". Once on this screen, deselect all traces except for "Trace 0". Your screen should look like the following.
- Connect your first antenna to port 1. The NanoVNA will automatically measure the antenna. The lines may seem confusing, but the first plot we are looking at is a Smith Chart. See ref 5 if you want to learn the nitty gritty details of the Smith Chart - for our purposes, you can think of a Smith Chart like a target for target practice. The center is a "bullseye" and is what we strive for. Anything further away from the center is less optimal and can cause damage to RF circuits at higher power.
- Using the buttons at the bottom of the NanoVNA, move the marker until it is set on 400 MHz.
Ideally, this will be as close to the bullseye as you can. It's okay if the line is nowhere close to the bullseye, this just means our antenna might not be well suited for this application! What impedance are you reading? Ideally this would read 50 ohms and 0 Farads/0 Henries. Farads and Henries are measures of capacitance and inductance respectively. We want our antenna to be purely resistive with 50 ohm resistance to best focus our electrical energy into RF energy!
- As a fun experiment, try bringing your hand close to the antenna and even lightly touching it. Do you view any changes in the SWR chart? Why do you think that is? See below for the ideal measurement showing near perfect impedance at the 400 MHz frequency.
- We are now going to view a SWR chart to have another measure of performance. A SWR chart tells us the standing wave ratio (SWR) - i.e. how much of our energy goes from our device into the antenna and out into the air versus how much energy reflects and heads back to our device. In essence, an antenna is a lens that focuses electric energy into electromagnetic energy and we want to focus our lens as best we can at the frequency we wish to target. A good SWR is less than 2, and a SWR of 1 is perfect.
- Navigate back to the main menu and select the "Display" option. From here, choose "Format". Finally, select "SWR".Your screen should look as follows for a perfect SWR reading:
The NanoVNA will automatically measure the antenna again. The marker will remain at the same frequency as you set it before. What is the SWR at the frequency? It is okay if your SWR is higher than 2, this just means the antenna you selected is not well suited for the frequency. What SWR are you reading at 400 MHz? 13. Repeat steps 8-11 for all 3 antennas. Which performs the best for TinyGS? 14. When you are done with the lab, please return all equipment as you found it and power off the NanoVNA.
- TinyGS Home Page
- TinyGS GitHub
- Meshtastic Lab - learn more about LoRa and yet another application of this technology: https://github.com/irongiant33/meshtastic-lab
- NanoVNA v2 from Nooelec
- Introduction to Smith Charts
- Quarter Wave Ground Plane Antenna (https://www.amazon.com/gp/product/B086YV2QLS/)
- Quarter Wave Ground Plane Antenna calculator (https://m0ukd.com/calculators/quarter-wave-ground-plane-antenna-calculator/)
- Andreass Spiess - Building Antennas (https://youtu.be/6cVYsHCLKq8?si=yRtoUs8RdKqU--Ev)