Configure a nanopi board

Configure a nanopi board to integrate FriendlyElec’s NanoPi Mini Board into your robot:

Navigate to the Config tab of your robot’s page in the Viam app. Click on the Components subtab and navigate to the Create component menu. Enter a name for your board, select the type board, and select the nanopi model.

Click Create component.

An example configuration for a nanopi board in the Viam app Config Builder.

Edit and fill in the attributes as applicable.

  "components": [
      "name": "<your-nanopi-board>",
      "type": "board",
      "model": "nanopi",
      "attributes": {},
      "depends_on": []

The following attributes are available for nanopi boards:

analogsobjectOptionalAttributes of any pins that can be used as analog-to-digital converter (ADC) inputs. See configuration info here.
digital_interruptsobjectOptionalAny digital interrupts’s pin number and name. See configuration info here.
spisobjectOptionalAny Serial Peripheral Interface (SPI) chip select pins’ bus index and name. See configuration info here.
i2csobjectOptionalAny Inter-Integrated Circuit (I2C) pins’ bus index and name. See configuration info here.

Have questions, or want to meet other people working on robots? Join our Community Discord.