Build a Balena Cloud using Raspberry Pi

1 minute read

We can simply work on microservice and different other projects in Balena Cloud which is nothing but a collection of Raspberry Pi devices.

Here, in this post we will learn how to install BalenaOS in Raspberry Pi and connect to the Balena Cloud. Anyone can access the devices from anywhere given the username and password for the dashboard.

Requirements

Download Balena OS

  1. Create an account in balena
  2. Click -> Create Application
    • Put any name for your application
    • Set Device type -> Raspberry Pi 4
    • Set Application type -> Starter
    • Click -> Create new application
  3. Click -> Add device
    • Set Device type -> Raspberry Pi 4
    • Set OS type -> balenaOS
    • Select the recommended version
    • Set edition -> Production
  4. Edit Network Connection
    • Set Connection -> Wifi+Ethernet
    • Set your Wifi SSID
    • Set your Wifi Password

Now, download your image file. You should have a zipped image file.

Install image in Raspberry Pi

Download BalenaEtcher

We can flash the OS in a microSD is using different system and third-party tools. The easiest way to do it is using balenaEtcher, which is a cross platform tool and it can flash an OS in a microSD within minutes. It can be downloaded from the balena official site

Flash the MicroSD

Insert the memory card in a card reader and attach to your working computer. Then, launch balenaEtcher; and flash in three steps:

  1. Select the downloaded Image file from your downloaded location
  2. Select the flash drive from the options
  3. Click Flash and wait for the success notification.

Note, you can flash multiple Raspberry Pi device with the same image file.

Find device in Dashboard

After powering up the device(s), the devices will connect to the Wifi automatically. Now, check your dashboard and wait for the device(s) to show up.

I added three devices and the dashboard looks like as follows:

Reference:

  1. Get started with Raspberry Pi 4 and Python

Leave a Comment