Uploaded January 2020 | Updated September 2026, 2 weeks ago
If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
youtube.com/c/mobilefish/about
This is part 47 of the LoRa/LoRaWAN tutorial.
In this tutorial I will explain the pros and cons of using PCB antennas and ceramic antennas.
In an RF system the antenna is a key component and can have a major impact on the device performance.
Selecting which antenna to use depends on: size of the device, costs and performance.
In general PCB antennas (aka trace antennas) and ceramic antennas (aka chip antennas) have an average antenna performance compared to an external antenna.
External antenna
An external antenna is mounted outside the device or it can be mounted on a remote location.
PCB or ceramic antennas are internal antennas and are built inside the device.
Pros:
- Good antenna performance compared to PCB or ceramic antennas.
Cons:
- Larger size.
- More expensive compared to PCB or ceramic antennas.
PCB antenna
A PCB antenna is a trace antenna printed on a circuit board.
A PCB antenna is feeded by a micro strip line from the radio module.
Pros
- Smaller size.
- Cheaper to manufacture.
- Costs less than an external antenna and ceramic antenna.
Cons
- Average antenna performance compared to an external antenna.
- Components in close proximity of the antenna severely detune the antenna.
An area around the antenna must be kept clear of components.
- A PCB antenna is highly susceptible to environmental interferences, for example when it is in close proximity of humans or animals.
- A PCB antenna can only be tuned by redesigning and manufacturing the PCB board again.
- Designing a PCB antenna requires a simulation tool.
To create a PCB antenna, check out this PCB UCA antenna layout created by Fabien Ferrero:
github.com/FabienFerrero/UCA_Board
Check out his presentation at the Things Conference in Amsterdam in 2018 where he discusses the UCA antenna layout:
youtu.be/AhFy4-kForA
Ceramic antenna
A ceramic antenna (aka chip antenna) is a small module made of a ceramic material.
Pros
- Smaller size compared to a PCB antenna.
- Components in close proximity of the ceramic antenna does not cause severe detuning.
- A ceramic antenna is less susceptible to environmental interferences (humans or animals).
- Less PCB area is needed compared to a PCB antenna.
- A ceramic antenna can be tuned or even replaced without redesigning the PCB board.
Cons
- Average antenna performance compared to an external antenna.
- A ceramic antenna costs more compared to a PCB antenna.
Performance tests
A PCB, ceramic and monopole antenna performance is compared with a sleeve dipole antenna.
For the PCB antenna test, the Things UNO is used.
For the ceramic antenna test, the Things UNO (Beta version) is used.
For the monopole antenna test, the monopole antenna is used as described in tutorial 42.
For the sleeve dipole antenna, antenna C is used as demonstrated in tutorial 33 and 43.
For both The Things Uno (with PCB antenna) and The Things Uno Beta (with ceramic antenna) the same sketch is used:
mobilefish.com/download/lora/SendOTAA.ino.txt
More information about this sketch and which libraries to use, see:
youtu.be/28Fh5OF8ev0
The sketch transmits 10 messages per minute.
For both the monopole antenna and sleeve dipole antenna tests the same end node is used, see:
mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_rfm95_arduino_pro_mini.html
The end node uses the MCCI LoRaWAN LMIC Library:
github.com/mcci-catena/arduino-lmic
The end node uses the following sketch:
mobilefish.com/download/lora/ttn-otaa-pro-mini-sensors.ino.txt
The sketch is modified to transmit 2 messages per minute.
For all four tests the transmission power is not modified and all the devices are positioned at the same location.
The logged data can be found at:
mobilefish.com/download/lora/pcb_ceramic_antenna_test_results.txt
Note: I am only interested which gateways have received the transmitted data.
One or more gateways were able to receive my transmitted sensor data, see:
drive.google.com/open?id=18SKbHVEIFHU6YjzYpgZL98vuHcmV4OPQ&usp=sharing
The sleeve dipole antenna clearly has a better performance compared to the PCB, ceramic and monopole antenna.
My conclusion is: PCB, ceramic and monopole antennas are great antennas for short distances.
Check out all my other LoRa/LoRaWAN tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g
Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1
The presentation used in this video tutorial can be found at:
mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html
#mobilefish #lora #lorawan
If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
youtube.com/c/mobilefish/about
This is part 47 of the LoRa/LoRaWAN tutorial.
In this tutorial I will explain the pros and cons of using PCB antennas and ceramic antennas.
In an RF system the antenna is a key component and can have a major impact on the device performance.
Selecting which antenna to use depends on: size of the device, costs and performance.
In general PCB antennas (aka trace antennas) and ceramic antennas (aka chip antennas) have an average antenna performance compared to an external antenna.
External antenna
An external antenna is mounted outside the device or it can be mounted on a remote location.
PCB or ceramic antennas are internal antennas and are built inside the device.
Pros:
- Good antenna performance compared to PCB or ceramic antennas.
Cons:
- Larger size.
- More expensive compared to PCB or ceramic antennas.
PCB antenna
A PCB antenna is a trace antenna printed on a circuit board.
A PCB antenna is feeded by a micro strip line from the radio module.
Pros
- Smaller size.
- Cheaper to manufacture.
- Costs less than an external antenna and ceramic antenna.
Cons
- Average antenna performance compared to an external antenna.
- Components in close proximity of the antenna severely detune the antenna.
An area around the antenna must be kept clear of components.
- A PCB antenna is highly susceptible to environmental interferences, for example when it is in close proximity of humans or animals.
- A PCB antenna can only be tuned by redesigning and manufacturing the PCB board again.
- Designing a PCB antenna requires a simulation tool.
To create a PCB antenna, check out this PCB UCA antenna layout created by Fabien Ferrero:
github.com/FabienFerrero/UCA_Board
Check out his presentation at the Things Conference in Amsterdam in 2018 where he discusses the UCA antenna layout:
youtu.be/AhFy4-kForA
Ceramic antenna
A ceramic antenna (aka chip antenna) is a small module made of a ceramic material.
Pros
- Smaller size compared to a PCB antenna.
- Components in close proximity of the ceramic antenna does not cause severe detuning.
- A ceramic antenna is less susceptible to environmental interferences (humans or animals).
- Less PCB area is needed compared to a PCB antenna.
- A ceramic antenna can be tuned or even replaced without redesigning the PCB board.
Cons
- Average antenna performance compared to an external antenna.
- A ceramic antenna costs more compared to a PCB antenna.
Performance tests
A PCB, ceramic and monopole antenna performance is compared with a sleeve dipole antenna.
For the PCB antenna test, the Things UNO is used.
For the ceramic antenna test, the Things UNO (Beta version) is used.
For the monopole antenna test, the monopole antenna is used as described in tutorial 42.
For the sleeve dipole antenna, antenna C is used as demonstrated in tutorial 33 and 43.
For both The Things Uno (with PCB antenna) and The Things Uno Beta (with ceramic antenna) the same sketch is used:
mobilefish.com/download/lora/SendOTAA.ino.txt
More information about this sketch and which libraries to use, see:
youtu.be/28Fh5OF8ev0
The sketch transmits 10 messages per minute.
For both the monopole antenna and sleeve dipole antenna tests the same end node is used, see:
mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_rfm95_arduino_pro_mini.html
The end node uses the MCCI LoRaWAN LMIC Library:
github.com/mcci-catena/arduino-lmic
The end node uses the following sketch:
mobilefish.com/download/lora/ttn-otaa-pro-mini-sensors.ino.txt
The sketch is modified to transmit 2 messages per minute.
For all four tests the transmission power is not modified and all the devices are positioned at the same location.
The logged data can be found at:
mobilefish.com/download/lora/pcb_ceramic_antenna_test_results.txt
Note: I am only interested which gateways have received the transmitted data.
One or more gateways were able to receive my transmitted sensor data, see:
drive.google.com/open?id=18SKbHVEIFHU6YjzYpgZL98vuHcmV4OPQ&usp=sharing
The sleeve dipole antenna clearly has a better performance compared to the PCB, ceramic and monopole antenna.
My conclusion is: PCB, ceramic and monopole antennas are great antennas for short distances.
Check out all my other LoRa/LoRaWAN tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g
Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1
The presentation used in this video tutorial can be found at:
mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html
#mobilefish #lora #lorawan








![LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot Gateway
If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
https://www.youtube.com/c/mobilefish/about
This is part 28.1 of the LoRa/LoRaWAN tutorial.
In this video series different topics will be explained which will help you to understand LoRa/LoRaWAN.
It is recommended to watch each video sequentially as I may refer to certain LoRa/LoRaWAN topics explained earlier.
In this tutorial I will show you how to install all the required software on a micro SD card.
The result is a bootable micro SD card which can be used in the RAK831 Pilot Gateway.
I have forked https://github.com/RAKWireless/RAK831-LoRaGateway-RPi and simplified the installation procedure.
The repository https://github.com/robertlie/RAK831-LoRaGateway-RPi contains just a few files.
The install.sh script:
- Creates the gateway EUI.
- Allows the user to set the gateway hostname.
- Allows the user to select the region the gateway will operate in.
Dependant on the selected region the correct global_conf.json is copied from the configuration_files folder.
- The local_conf.json is copied from the configuration_files folder and the gateway EUI is set in this file.
- Allows the user to set the gateway latitude and longitude coordinates and its altitude.
- Installs the Semtech LoRa library and the Semtech UDP Packet Forwarder and build both packages.
- Makes the packet_forwarder a service, which means when the Raspberry Pi boots the packet_forwarder is started.
- Disables the onboard Raspberry Pi bluetooth.
Before you start with the installation procedure, you must know which frequency plan to use in your country.
See the list of frequency plans by country list:
https://www.thethingsnetwork.org/docs/lorawan/frequencies-by-country.html
Installation procedure:
git clone https://github.com/robertlie/RAK831-LoRaGateway-RPi ~/rak831-loragateway
This repository is installed in: /home/pi/rak831-loragateway
Execute the install script:
cd ~/rak831-loragateway
sudo ./install.sh
The following is displayed. Press Enter to keep the default value or change it:
Host name [ttn-gateway]: Enter
Region AS1, AS2, AU, CN, EU, IN, KR, RU, US [EU]: EU
Latitude [0]: Enter
Longitude [0]: Enter
Altitude [0]: Enter
As mentioned earlier, the install.sh script installs the following git repositories and build these packages.
Semtech LoRa library (V5.0.1)
https://github.com/Lora-net/lora_gateway
/opt/ttn-gateway/lora_gateway
Semtech UDP Packet Forwarder (V4.0.1)
https://github.com/Lora-net/packet_forwarder
/opt/ttn-gateway/packet_forwarder
The RAK831 Pilot Gateway can be connected to any LoRa network servers.
In this tutorial the RAK831 Pilot Gateway will be connected to The Things Network server.
The Semtech Packet Forwarder is configured via a file called global_conf.json and if provided an additional file called local_conf.json.
The global_conf.json is the main configuration file and contains for example the LoRa network server address, which uplink and downlink ports to use, which frequencies to use and the TX power LookUp Table (LUT).
The local_conf.json file contains more gateway specific parameters.
The local_conf.json will override the settings in the global_conf.json.
The ~/rak831-loragateway/install.sh script creates the global_conf.json and local_conf.json files in this folder:
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd
Several other global_conf.json file examples can be found in this folder:
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/cfg
but these files are not used.
The https://github.com/robertlie/RAK831-LoRaGateway-RPi/blob/master/configuration_files/README.md file explains where the global configuration files originates from and what modifications were made to these files.
In Tutorial 28 is explained which parameters to set in the local_conf.json file to enable GPS and for beaconing.
In the local_conf.json these parameters are commented out.
Uncomment these parameters if needed.
The gateway is now running without errors.
Next steps:
Register the gateway to The Things Network, watch:
https://youtu.be/bea7g5isD0w?t=1779
Optionally enable WiFi, watch:
https://youtu.be/bea7g5isD0w?t=1844
More information about the RAK831 Pilot Gateway:
https://www.aliexpress.com/store/product/IoT-in-a-Box-Powered-Pilot-Gate-way-with-Semtech-SX1301/2805180_32951841630.html
Interested in the RAK831 components:
https://www.aliexpress.com/store/product/RAK831-LoRa-LoRaWAN-Gateway-Module-base-on-SX1301-433-868-915MHz-range-of-up-to-49200ft/2805180_32821411294.html
Check out all my other LoRa/LoRaWAN tutorial videos:
https://www.youtube.com/playlist?list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g
Subscribe to my YouTube channel:
https://www.youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1
The presentation used in this video tutorial can be found at:
https://www.mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html
#mobilefish #lora #lorawan LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot Gateway](https://i.ytimg.com/vi/aR9-gbZvBh0/mqdefault.jpg)

