node-red-contrib-iiot-rpi-mcp342x 1.0.21

A Node-Red node for mcp342x analog to digital converter

npm install node-red-contrib-iiot-rpi-mcp342x

platform platform NPM version NPM Donate

A Node-Red node for mcp342x analog to digital converter

image info

Example MCP3424 hat from AB Electronics UK

image info

Example MCP3421 module

Supported Devices

  • mcp3421 1-channel, 12bit-18bit, one I2C address
  • mcp3422 2-channel, 12bit-18bit, one I2C address
  • mcp3423 2-channel, 12bit-18bit, eight I2C addresses
  • mcp3424 4-channel, 12bit-18bit, eight I2C addresses
  • mcp3425 1-channel, 12bit-16bit, one I2C address
  • mcp3426 2-channel, 12bit-16bit, one I2C address
  • mcp3427 2-channel, 12bit-16bit, eight I2C addresses
  • mcp3428 4-channel, 12bit-16bit, eight I2C addresses

Resolution and conversion time

  • 12bit conversion time 5ms/channel
  • 14bit conversion time 25ms/channel
  • 16bit conversion time 100ms/channel
  • 18bit conversion time 300ms/channel (mcp3421-mcp324)


Install with Node-Red Palette Manager or npm command:

cd ~/.node-red
npm install node-red-contrib-iiot-rpi-mcp342x


  • This node works on Raspberry Pi with 32bit or 64bit OS.
  • The output value is mV or adc raw data.
  • For multi node, all values send as array.
  • Set correct parameter depends on used device.
  • Enable I2C with raspi-config.

Array Index on Multi Node

Input Array-Index
CH1 0
CH2 1
CH3 2
CH4 3


Node Info

Version: 1.0.21
Updated 3 months ago
License: Apache-2.0
Rating: not yet rated




10 in the last week


  • mcp342x
  • mcp342x-m


  • node-red
  • raspberry pi
  • rpi
  • mcp342x
  • mcp3421
  • mcp3422
  • mcp3423
  • mcp3424
  • mcp3425
  • mcp3426
  • mcp3427
  • mcp3428
  • iot
  • iiot
  • analog
  • adc