A plugin allowing the Cayenne Pi Agent to read data from and write data to MCP492X devices (MCP4921, MCP4922) and display it in the Cayenne Dashboard.
- Rasberry Pi.
- An MCP492X device, e.g. MCP4922.
- Cayenne Pi Agent. This can be installed from the Cayenne Dashboard.
- Git.
From the command line run the following commands to install this plugin.
cd /etc/myDevices/plugins
sudo git clone https://github.com/myDevicesIoT/cayenne-plugin-mcp492x.git
Specify the device you are using by setting the class
value under the MCP
section in the cayenne_mcp492x.plugin
file.
By default this is set to MCP4922
but it can also be set MCP4921
.
If you use a MCP4921
device instead of a MCP4922
or you do not want the raw channel values to be displayed in the Cayenne
dashboard you can disable any of the individual input sections in cayenne_mcp492x.plugin
.
Restart the agent so it can load the plugin.
sudo service myDevices restart
Temporary widgets for the plugin should now show up in the Cayenne Dashboard. You can make them permanent by clicking the plus sign.
NOTE: If the temporary widgets do not show up try refreshing the Cayenne Dashboard or restarting the agent again using sudo service myDevices restart
.