1.0.10 • Published 3 years ago
node-red-contrib-redplc-rpi-mcp23s08 v1.0.10
node-red-contrib-redplc-rpi-mcp23s08
Node-Red node for mcp23s08 8bit I/O Expander.
Node Features
- 8 x Digital Inputs or Digital Outputs
- Add Pullup Resistor to Digital Inputs
- Four selectable Spi channels
- Four selectable Device Addresses
Install
For using with Ladder-Logic install redPlc nodes
For using with other nodes, install module nodes
Install with Node-Red Palette Manager or npm command:
cd ~/.node-red
npm install node-red-contrib-redplc-rpi-mcp23s08
Usage
This node reads/writes from/to Node-Red global variables Update is triggered by redPlc cpu node or module-update node This node works only on Raspberry Pi with Raspberry Pi OS Enable SPI with raspi-config Consult datasheet for absolute maximum ratings
Digital Input (Variable I):
Digital Output (Variable Q):
Pin | Bit |
---|---|
GP0 | 0 |
GP1 | 1 |
GP2 | 2 |
GP3 | 3 |
GP4 | 4 |
GP5 | 5 |
GP6 | 6 |
GP7 | 7 |
Donate
If you like my work please support it with donate: