Set up an ESP32

Viam maintains a lightweight version of viam-server for microcontrollers.

Supported microcontrollers

ESP32 microcontrollers must have at least 2 cores, 384kB SRAM, 2MB PSRAM and 8MB flash to work with Viam. The following microcontrollers have been tested with Viam:

About ESP32 microcontroller setup

Because microcontrollers do not run operating systems and are instead flashed with firmware, the setup process is different than for regular computers and SBCs.

To use an ESP32 controller with custom hardware, you build a firmware version from the Micro-RDK and modules to support your hardware.

To quickly try out Viam for microcontrollers, you can use the pre-built binary viam-micro-server which supports the following components:

Quickstart

To get started quickly with the pre-built viam-micro-server binary, follow these steps:

  1. Create a Viam app account. The Viam app is the online hub for configuring and managing devices as well as viewing data.

  2. Add a new machine using the button in the top right corner of the LOCATIONS tab in the app. A machine represents your device.

  3. From your machine’s page in the Viam app, follow the setup instructions to install viam-micro-server on your device and connect it to the cloud.

    A secure connection is automatically established between your machine and the Viam app. When you update your machine’s configuration, viam-micro-server automatically gets the updates.

    You are ready to configure any of the components listed above on your machine.

Advanced setup

If you are using your ESP32 with resources that are not supported by the pre-built binary, you can build your own firmware with the Micro-RDK and your choice of modules.

See Create or use a Micro-RDK module to install required software and build custom firmware.