Skip to content

keenanjohnson/build-an-iot-fleet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

How to Build an IoT (Internet of Things) Fleet

This is a getting started guide for building your own IoT fleet.

If you are starting to build your own fleet of connected devices, consider this a field guide of sorts. It may also be helpful existing fleets that are exploring expansions or alternatives.

If this is helpful to you, consider giving it a star!

Have a question? Ask in the Discussion Forums.

Hardware

You have a lot of choices to make in hardware. Each of these choices has strengths, weaknesses, and will affect the software system needed to power your fleet.

Compute Unit

One of the most important things to cnsider first, is what your hardware selection will be.

The most impactful choice is whether the compute unit for the project will be a microcontroller (MCU) or more powerful system (example: Raspberry Pi) that can run a full operating system (example: Linux).

Communication Technology

Some options to consider:

  • Wifi - The cheapest, at the expense of lower range and hgher power requirements. The main benefit is that no recurring costs are incurred by the fleet owner as wifi is usually paid for by customers. However, a robust onboarding process will need to be developed to allow users to connect and change the devices wifi.
  • Cellular/GSM/LTE
  • LoRaWAN
  • Amazon Sidewalk - A new network using Bluetooth Low Energy (BLE) and 900 megahertz to create a large mesh network here in the US. This is still very experimental and I don't really reccomend it as a solution quite yet.

Software

Writing software is the secret sauce that powers any excellent fleet. The choices in tools and quality of the software will dominate the user experience of the fleet.

I discuss several functions / features each IoT fleet will need below. I've included some reccomended software tools for helping with each that I personally use and enjoy. This list is intended to be a curated list, and therefore not complete.

If you are familiar with the space, you may notice some offerings from very large companies are missing (AWS IoT for example). It's not that these tools from big corps. aren't functional and useful, but rather I have a hard time reccomending them to anyone looking for advice. My general rule is that a company can focus on only a few key usecases well and IoT is a small market share for most large tech companies. Therefore, it's too easy for a company to shutter a whole division and leave you, the end user, holding the bag. So I generally look for companies that focus only on serving IoT or have a robust open-source policy that will allow you to continue using the tool even if the parent company decideds to cease supporting it.

Over-the-Air Updates (OTA Updates)

Argubably the most important feature of any fleet is that ability to update software on devices in the field or with customers. This helps you continously provide value to customers, fix problems easily, and ensure devices are secure.

Reccomended Tools for Embedded Linux:

  • Balena / Balena Github - Balena is my go to tool for any high level compute IoT project. It is built on top of Yocto linux and allows you to easily deploy one or more docker containers to edge devices. This solves the major headache of embedded linux, ensuring dependancies and the OS are as tightly controlled as the application code.

Reccomended Tools for MCUs / Microcontrollers:

  • Golioth / Golioth Github - Golioth is my go to choice for any microcontroller based project. They have excellent support for devices that run Zephyr RTOS, Espressif devices using esp-idf, infineon devices with Modustoolbox, and a lot more. It's easy and straightforward to push an update to a device and have it reliabily occur.

Sending Data From Your Device to the Internet (Telemetry)

Reccomended Tools for MCUs / Microcontrollers:

Author

Keenan Johnson is an electrical and software engineer with experience building IoT fleets of all shapes and sizes.

Reach out if you need help or are interested in hiring me as a consultant for your project.

About

A guide for building your own IoT fleet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published