Previous
Set up a computer or SBC
Viam maintains a lightweight version of viam-server
for 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:
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:
gpio
: A servo controlled by GPIO pins.two_wheeled_base
: A robotic base with differential steering.free_heap_sensor
: Reports the amount of free heap memory on the microcontroller.wifi_rssi_sensor
: Reports the signal strength of the ESP32’s WiFi connection.To get started quickly with the pre-built viam-micro-server
binary, follow these steps:
Create a Viam app account. The Viam app is the online hub for configuring and managing devices as well as viewing data.
Add a new machine using the button in the top right corner of the LOCATIONS tab in the app. A machine represents your device.
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.
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.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!