1.0.26 • Published 2 years ago

node-red-contrib-iiot-rpi-gpio v1.0.26

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

node-red-contrib-iiot-rpi-gpio

platform platform NPM version NPM Donate

A Node-Red node for Raspberry Pi gpio

Installation

Install with Node-Red Palette Manager or npm command:

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

Nodes

  • gpio-in: Reads GPIO input.
  • gpio-out: Sets GPIO output.
  • gpio-pwm: Generate pwm on GPIO output.
  • gpio-cnt: Counts GPIO input pulse.
  • gpio-enc: Counts rotary encoder pulse.
  • gpio-kbd: Reads 4x4 keypad.

Usage

  • This node works on Raspberry Pi with 32bit or 64bit OS.
  • No additional library needed.
  • For open inputs, select pull down/up resistors.
  • Max. GPIO input voltage is +3.3V.
  • Max. GPIO output current is 16mA.
  • Check with raspi-config for alternate functions on GPIO.
  • For more accurate pwm and servo use PCA9685 node.

Connecting KY-040 rotary encoder

image info

Connecting 4x4 keypad

image info

GPIO Mapping

Alt. Funct.Funct.PinPinFunct.Alt. Funct.
3V3125V
I2C1 SDAGPIO02345V
I2C1 SCLGPIO0356GND
GPIO0478GPIO14UART TX
GND910GPIO15UART RX
GPIO171112GPIO18
GPIO271314GND
GPIO221516GPIO23
3V31718GPIO24
SPI0 MOSIGPIO101920GND
SPI0 MISOGPIO092122GPIO25
SPI0 SCLKGPIO112324GPIO08SPI0 CS0
GND2526GPIO07SPI0 CS1
--2728--
GPIO052930GND
GPIO063132GPIO12
GPIO133334GND
SPI1 MISOGPIO193536GPIO16SPI1 CS0
GPIO263738GPIO20SPI1 MOSI
GND3940GPIO21SPI1 MISO

CHANGELOG