Family Encyclopedia >> Electronics

How to Turn Your Raspberry Pi 4 into an Edge Gateway

If you want to transmit large amounts of data to the cloud, you can improve performance and response times by using your Raspberry Pi as an edge gateway. EdgeX Foundry is a platform you can use to build custom Internet of Things (IoT) solutions, by consuming and processing data from the various smart devices and sensors in your home automation network.

ContentsWhat You'll NeedFlash Ubuntu to Your Raspberry PiBoot Your Raspberry Pi in UbuntuInstalling the EdgeX FoundryAdding a Raspberry Pi as an Edge GatewayConclusion

In this article, you'll learn how to save your data more efficiently by turning your Raspberry Pi 4 into a connection point between the cloud and all the sensors, smart devices, and controllers on your network.

Logging your data in the cloud can help you identify trends:for example, use your smart scale to log your daily weigh-ins or your smart exercise bike to log the number of miles you've cycled. When transmitting large amounts of data to the cloud, you can often reduce response times and network transmission costs by pre-processing that data locally.

What you'll need

To complete this tutorial you will need:

  • Raspberry Pi 4
  • SD card
  • Laptop or computer where you will download the Ubuntu system image
  • Power cable compatible with your Raspberry Pi
  • Ethernet cable
  • Micro HDMI cable
  • External monitor
  • External keyboard and way to connect it to your Raspberry PI
  • A mouse is optional or use the trackpad on your external keyboard

Flash Ubuntu on your Raspberry Pi

To turn your Raspberry Pi into an Edge Gateway, you will need Ubuntu 19.10. Later versions of Ubuntu will likely support EdgeX Foundry as well, but the process for setting up your Raspberry Pi as an Edge Gateway may differ.

In this tutorial, we will flash the Ubuntu system image using the free balena Burner application.

  1. Go to the Ubuntu website and download the 64-bit version of Ubuntu 19.10 for Raspberry Pi 4.
  2. Insert the SD card into the laptop or computer.
  3. Launch the Etcher app.
  4. In Etcher, click "Select Image", then choose the Ubuntu file that was just downloaded.
  5. Click "Select target", then choose the target bootable media, which in this case is the SD card.
How to Turn Your Raspberry Pi 4 into an Edge Gateway

To provision the Raspberry Pi as an Edge Gateway:

  1. From the console menu on the left, select "Gateway".
  2. Create a new gateway by clicking "Add".
  3. Give a name and description to your gateway.
  4. Enter the IP address of the Raspberry Pi device.
  5. Click "Submit"

The Raspberry Pi should now appear in the console, ready to use.

How to Turn Your Raspberry Pi 4 into an Edge Gateway


In this article, you learned how to configure a Raspberry Pi 4 as an Edge Gateway.

If you've followed this tutorial, we'd love to hear how you're using Raspberry Pi as a connection point between the cloud and your smart home network, so be sure to share your gateway projects in the comments below!