1.0.10 • Published 3 years ago

node-red-contrib-redplc-rpi-gpio v1.0.10

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

node-red-contrib-redplc-rpigpio

Node-Red node for Raspberry Pi gpio.

Node Features

  • Each gpio pin can be set as input or output
  • Shows alternate function for pin if not set
  • Add pulldown or pullup resistor to input
  • Set output to active high (source) or active low (sink)

Install

For using with Ladder-Logic install redPlc nodes

For using with other nodes, install module nodes

Install with Node-Red Palette Manager or run npm command:

cd ~/.node-red
npm install node-red-contrib-redplc-rpi-gpio

Usage

Update is triggered by redPlc cpu node or module-update node This node reads/writes from/to Node-Red global variables This node works only on Raspberry Pi with Raspberry Pi OS For prevent malfunction, check with raspi-config if pins set as I2C, SPI or UART

GPIO modes

  • --: Pin is untouched.
  • input: Floating input. Must connect to +3.3V or ground.
  • input-pulldown: Input with pulldown resistor. True if connected to +3.3V.
  • input-pullup: Input with pullup resistor. True if connected to ground.
  • output: Output. Is connected to +3.3V on true (source).
  • output-activelow: Output active low. Is connected to ground on true (sink).

I/O Mapping

BitFunct.PinPinFunct.Bit
3V3125V
2GPIO02345V
3GPIO0356GND
4GPIO0478GPIO1414
GND910GPIO1515
17GPIO171112GPIO1818
27GPIO271314GND
22GPIO221516GPIO2323
3V31718GPIO2424
10GPIO101920GND
9GPIO092122GPIO2525
11GPIO112324GPIO088
GND2526GPIO077
2728
5GPIO052930GND
6GPIO063132GPIO1212
13GPIO133334GND
19GPIO193536GPIO1615
26GPIO263738GPIO2020
GND3940GPIO2121

Donate

If you like my work please support it with donate:

Donate