Assemble the Hardware
How to put a Raspberry Pi IoT hub together: the case, radios and cameras, plus the LoRaWAN card if you want a gateway.
Putting the hub together takes about fifteen minutes and a small screwdriver. Keep the Pi unplugged the whole time.
The first two sections are only for a Pi you are turning into a LoRaWAN gateway. If you did not buy the LoRaWAN parts, skip to How do I put the hub in its case?
How do I fit the LoRaWAN card to the Pi HAT?
Only for a LoRaWAN gateway. The LoRaWAN card (the concentrator card) goes into a slot on the Pi HAT. Connect the antenna before you ever switch on the Pi with the card in place.
Hold the RAK5146 card at a slight angle and push its gold edge all the way into the mPCIe slot on the Pi HAT.
Press the card down flat and fix it with the screw on the HAT.
Connect the antenna cable to the card's LoRa antenna connector. That is the small round connector that is not marked GPS. Press it straight down until it clicks.
If you have a GPS antenna, connect it to the connector marked GPS. GPS gives the gateway its exact time and location. The gateway also works without it.

How do I mount the HAT on the Raspberry Pi?
Only for a LoRaWAN gateway.
Screw the spacers that come with the HAT into the Pi's four mounting holes.
Line up the HAT's 40-pin socket with the row of 40 pins on the Pi. Press it down evenly until it sits all the way on. Every pin must be inside the socket. A HAT that is one row off does not work.
Fix the HAT to the spacers with the remaining screws.
How do I put the hub in its case?
Place the Pi in the case, with the HAT on top if you fitted one.
If you fitted the LoRaWAN card: push the antenna cable's SMA end through the antenna opening in the case and tighten its nut. Screw the LoRa antenna onto it from the outside.
Close the case. Keep the air vents clear.
Mount the LoRaWAN antenna upright, as high as you can, and away from metal. Where the antenna sits matters far more for range than the gateway itself.
How do I connect the Zigbee and Thread radios?
Plug the Zigbee dongle into a USB port through a short USB extension cable.
If you use Thread, plug the Thread radio into another USB port, also on an extension cable, a little apart from the Zigbee dongle.
Use the black USB 2 ports if you can. USB 3 ports and their cables interfere with these radios.
How do I connect the cameras?
Connect each IP camera to the same network as the Pi. If a camera gets its power through the network cable, connect it through a PoE switch or a PoE injector.
Write down each camera's username and password. You need them later, when you connect the camera's recorder to its video stream.
How do I connect the Pi itself?
Connect the network cable.
Connect a screen, a keyboard and a mouse.
Stop here. Don't connect the power yet. You prepare the microSD card and switch the Pi on in the next guide.
Last updated