Uploaded February 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 50 of the LoRa/LoRaWAN tutorial.
In this tutorial I will explain the different types of enclosures and what IP ratings are.
This subject is not specific LoRa or LoRaWAN related but I find it interesting enough to make a tutorial.
Your electronic project can be put inside an enclosure.
These enclosures are called:
- project boxes,
- PVC boxes (PVC = Poly Vinyl Chloride),
- ABS boxes (ABS = Acrylonitrile Butadiene Styrene)
- plastic boxes,
- electronic boxes,
- etc...
These enclosures are made of plastic or a metal.
When plastic is used, it is often ABS or PVC.
ABS is always black and PVC is white or grey.
ABS and PVC can be used above or below the ground, but ABS is more likely to deform when exposed to the sun.
Both plastics are resistant to chemical and water degradation.
ABS is highly durable with high impact strength.
PVC is less durable, it is flexible and softer than usual plastics.
For metal enclosures often steel, stainless steel or aluminium is used.
LoRaWAN outdoor gateways often uses PVC or die cast aluminium enclosures.
Die casting is a metal casting process where molten metal, under high pressure, is forced into a mould cavity.
There is no international standard for these enclosures.
If you have a 3D printer you can print your own enclosure or you can just buy one.
Enclosures have:
- no mounting possibilities or
- have some slots to slide appropriately sized PCBs or
- have built-in standoffs to attach the PCB using self-tapping screws.
If there are no mounting possibilities, drill holes in the enclosure and attach the PCB to the enclosure with screws and standoffs.
IP (Ingress Protection) ratings defines level of sealing effectiveness of electrical enclosures against intrusion from solids (hand, tool, dirt, etc.) and water.
IP ratings are defined in the International Standard EN 60529.
The IP rating consists of two numbers.
The first number specifies the level of protection against solids, the second number specifies the level of protection against water, for example IP67.
IP ratings are assessed in lab conditions, which means they can’t always account for real-life situations.
Some manufacturers err on the side of caution and will not highlight a product’s IP rating or will understate the level of protection.
RakWireless outdoor gateway enclosure - 5x N-type antenna connectors
store.rakwireless.com/products/outdoor-gateway-enclosure
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 50 of the LoRa/LoRaWAN tutorial.
In this tutorial I will explain the different types of enclosures and what IP ratings are.
This subject is not specific LoRa or LoRaWAN related but I find it interesting enough to make a tutorial.
Your electronic project can be put inside an enclosure.
These enclosures are called:
- project boxes,
- PVC boxes (PVC = Poly Vinyl Chloride),
- ABS boxes (ABS = Acrylonitrile Butadiene Styrene)
- plastic boxes,
- electronic boxes,
- etc...
These enclosures are made of plastic or a metal.
When plastic is used, it is often ABS or PVC.
ABS is always black and PVC is white or grey.
ABS and PVC can be used above or below the ground, but ABS is more likely to deform when exposed to the sun.
Both plastics are resistant to chemical and water degradation.
ABS is highly durable with high impact strength.
PVC is less durable, it is flexible and softer than usual plastics.
For metal enclosures often steel, stainless steel or aluminium is used.
LoRaWAN outdoor gateways often uses PVC or die cast aluminium enclosures.
Die casting is a metal casting process where molten metal, under high pressure, is forced into a mould cavity.
There is no international standard for these enclosures.
If you have a 3D printer you can print your own enclosure or you can just buy one.
Enclosures have:
- no mounting possibilities or
- have some slots to slide appropriately sized PCBs or
- have built-in standoffs to attach the PCB using self-tapping screws.
If there are no mounting possibilities, drill holes in the enclosure and attach the PCB to the enclosure with screws and standoffs.
IP (Ingress Protection) ratings defines level of sealing effectiveness of electrical enclosures against intrusion from solids (hand, tool, dirt, etc.) and water.
IP ratings are defined in the International Standard EN 60529.
The IP rating consists of two numbers.
The first number specifies the level of protection against solids, the second number specifies the level of protection against water, for example IP67.
IP ratings are assessed in lab conditions, which means they can’t always account for real-life situations.
Some manufacturers err on the side of caution and will not highlight a product’s IP rating or will understate the level of protection.
RakWireless outdoor gateway enclosure - 5x N-type antenna connectors
store.rakwireless.com/products/outdoor-gateway-enclosure
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 8: Link Budget and Link Margin
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 8 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 video I will explain what link budgets, maximum link budgets and link margins are.
If an input signal (=message) is imposed onto a carrier signal this process is called modulation.
The modulated signal is broadcasted to the receiver.
Demodulation is the opposite, where the original signal (= message) is recovered from the modulated carrier wave.
A link budget is the sum of all of the gains and losses from the transmitter, through the medium (aka free space), to the receiver in a telecommunication system.
It is a way of quantifying the link performance.
Transmitter
The radio transmitter value must be specified in dbm, otherwise you do not know its absolute value.
Gains
Antenna (Unit: dbi)
Losses
Cables, connectors, signal propagating thru the medium (Unit: db)
When a signal propagates thru the medium, the signal loses strength.
This is called the path loss or path attenuation.
A simple link budget equation looks like this:
Received Power = Transmitted Power + Gains − Losses
For example: Received Power = 20 - 5 + 10 - 115 + 12 - 2 = -80 dBm
The receiver sensitivity is the lowest power level at which receiver can receive or demodulate the signal.
For example: Receiver sensitivity = -90 dBm
The link margin is the difference between the received power and receiver sensitivity.
Link margin = Received power - Receiver sensitivity
Link margin in dBm
Received power in dBm
Receiver sensitivity in dBm
For example:
Received power = -80dBm
Receiver sensitivity = -90
dBmLink margin = -80 - (-90) = 10 dBm = 10 mW
Question:
There are two receivers:
Receiver A with receiver sensitivity = -120 dBm
Receiver B with receiver sensitivity = -130 dBm
Which receiver is better?
Answer:
Receiver B is better because it can demodulate a RF signal at a lower power level.
If the link margin is too big, or too small, corrective actions can be applied to ensure the system will operate satisfactorily.
The link margin must be positive (Received Power must be greater than the Receiver sensitivity) and should be at least a few dB for the receiver to successfully demodulate the signal.
LoRa receivers are very sensitive and are offering a sensitivity down to -148 dBm [2], due to the use of Chirp Spread Spectrum.
More information:
https://www.semtech.com/products/wireless-rf/lora-transceivers/SX1276
The maximum link budget can be used as a baseline value to compare one radio to the next.
Maximum link budget = Maximum transmitter power - Lowest receiver sensitivity
Maximum link budget in dBm
Maximum transmitter power in dBm
Lowest receiver sensitivity in dBm
For example:
Max transmitter power = 20 dBm [2]
Lowest receiver sensitivity = -148 dBm [2]
Max link budget = Max transmitter power - Lowest receiver sensitivity
Max link budget = 20 - (-148) = 168 dBm [2]
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 8: Link Budget and Link Margin](https://i.ytimg.com/vi/jMFa3AiDbcI/mqdefault.jpg)







