Building a complete serverless IoT solution with CICD and in scale: smart light availability indicator using AWS, ESP32 & Xamarin (Part 1)

Part 1: Introduction & High Level Architecture

How to build a complete internet of things product that spans over embedded, mobile and cloud development (and even 3D modeling!) to create a wireless LED indicator that connects to your cloud apps like Google Calendar and shows your availability status to keep your meetings private and undisturbed, wherever you are.

Final product in action

Why?

The reason I came up with this so much needed product
  1. The kids interrupt your meetings?
  2. Your partner needs something right when you’re presenting?
  3. Disruptions from others ruin your concentration?

If you can resonate with these type of situations, you’ll understand why you need an indicator outside your room to let your household or colleagues at the office know when you are busy.

Architecture

Solution architecture

Cloud Backend (serverless):

  1. AWS DynamoDB (users and things data)
  2. AWS Cognito (users and authentication)
  3. AWS IoT Core (things management, + automation utilities in Python)
  4. AWS Fleet Hub (things monitoring)
  5. AWS Amplify (backend in NodeJS & express, CICD)
  6. AWS S3 (OTA firmware update storage for things)
  7. AWS Route53 (DNS)
  8. Bitbucket (git)
  9. Lumigo.io (backend app monitoring and debugging)
  10. XKit.co (3rd party integrations and token management)

Cloud Frontend (serverless):

  1. AWS Amplify (frontend in ReactJS)

Website:

  1. AWS Lightsail (Wordpress)
  2. Sendinblue (email campaigns)
  3. Elementor Pro (UX Design)

Mobile:

  1. Xamarin Forms (C#)

Embedded:

  1. Device: ESP32
  2. Framework: Arduino using PlatformIO (C++)
  3. MQTT-based communication
  4. OTA capabilities (internet & LAN)

Programming Languages

  1. NodeJS: cloud backend
  2. Python: tools
  3. JavaScript & React: frontend
  4. C++: embedded device
  5. C#: mobile application

IDEs

VSCode

  1. Amplify frontend and backend (javascript, NodeJS)
  2. ESP32 development (PlatformIO with Arduino, C++)
  3. Utilities: Python3

Visual Studio 2022

  1. Mobile development (C#, Xamarin)

My main focus in this project was to use the latest cutting edge technologies, developing at scale from the beginning using serverless technology and full continuous integration and deployment while keeping the highest security level according to the best practices.

--

--