Configure a renogy Sensor

Configure a renogy sensor to integrate a Renogy battery temperature sensor 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 sensor, select the type sensor, and select the renogy model.

Click Create component.

Creation of a renogy sensor in the Viam app config builder.

Edit and fill in the attributes as applicable.

{
  "components": [
    {
      "name": "<your-renogy-sensor-name>",
      "type": "sensor",
      "model": "renogy",
      "attributes": {
        "serial_path": "<your-serial-path>",
        "serial_baud_rate": <int>,
        "modbus_id": <int>
      },
      "depends_on": []
    }
  ]
}
{
  "components": [
    {
      "name": "your-renogy-sensor",
      "type": "sensor",
      "model": "renogy",
      "attributes": {
        "serial_path": "/dev/serial0",
        "serial_baud_rate": 9600,
        "modbus_id": 1
      },
      "depends_on": []
    }
  ]
}

The following attributes are available for renogy sensors:

AttributeTypeInclusionDescription
serial_pathstringRequiredThe serial port your controller is connected to.
Default: /dev/serial/0
serial_baud_rateintRequiredThe baud rate to use for serial communications.
Default: 9600
modbus_idintRequiredController MODBUS address.
Default: 1


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