1.0.4 • Published 3 years ago

node-red-contrib-redplc-mcp23sxx v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

node-red-contrib-redplc-mcp23sxx

redPlc module node for MCP23S08 and MCP23S17 I/O Expander.

Install

Install with Node-Red Palette Manager or npm command:

cd ~/.node-red
npm install node-red-contrib-redplc-mcp23sxx

Features MCP23S08

  • 8x Digital inputs/outputs
  • Digital input with pullup resistor
  • 4 address set with jumper
  • SPI bus (Max. 10Mhz)

Features MCP23S17

  • 16x Digital inputs/outputs
  • Digital input with pullup resistor
  • 7 address set with jumper
  • SPI bus (Max. 10Mhz)

Usage

Wire this node to first output of redPlc cpu node. Global variable I are updated with digital inputs. Global variable Q sets digital output. This node works only on Raspberry Pi with Raspberry Pi OS. Enable SPI with raspi-config.

I/O Mapping

MCP23S08

Digital Input (Variable I):

Digital Output (Variable Q):

PinBit
GP00
GP11
GP22
GP33
GP44
GP55
GP66
GP77

MCP23S17

Digital Input (Variable I):

Digital Output (Variable Q):

PinBitPinBit
GPA00GPB08
GPA11GPB19
GPA22GPB210
GPA33GPB311
GPA44GPB412
GPA55GPB513
GPA66GPB614
GPA77GPB715

Donate

If you like my work please support it with donate:

Donate