2.0.1 • Published 3 years ago
node-red-contrib-iiot-rpi-mcp342x v2.0.1
node-red-contrib-iiot-rpi-mcp342x
A Node-Red node for mcp342x analog to digital converter.

Example MCP3424 hat from AB Electronics UK

Example MCP3421 module
Supported Devices
| Type | Channel | Resol. | Address | 
|---|---|---|---|
| mcp3421 | 1 | 18bit | 68H | 
| mcp3422 | 2 | 18bit | 68H | 
| mcp3423 | 2 | 18bit | 68H-6FH | 
| mcp3424 | 4 | 18bit | 68H-6FH | 
| mcp3425 | 1 | 16bit | 68H | 
| mcp3426 | 2 | 16bit | 68H | 
| mcp3427 | 2 | 16bit | 68H-6FH | 
| mcp3428 | 4 | 16bit | 68H-6FH | 
Installation
Install with Node-Red Palette Manager or npm command:
cd ~/.node-red
npm install node-red-contrib-iiot-rpi-mcp342xNodes
- mcp342x: Sends adc inputs as number array.
 - mcp342x-m: Sends adc inputs as number on each multiple outputs.
 
Usage
- Read is triggered on cycle.
 - To prevents locks only one node is allowed per i2c address.
 - Input voltage more than VCC can damage adc input.
 - The output values are mV or adc raw data.
 - This node works on Raspberry Pi with 32bit or 64bit OS.
 - Enable I2C with raspi-config.
 
Array Index
| Input | Array-Index | 
|---|---|
| CH1 | 0 | 
| CH2 | 1 | 
| CH3 | 2 | 
| CH4 | 3 |