@iiot2k/node-red-gpiox
v2.1.4
Published
Node-RED nodes for Raspberry Pi gpio
Downloads
292
Maintainers
Readme
@iiot2k/node-red-gpiox
Node-RED nodes for Raspberry Pi gpio
Installation
Install with Node-Red Palette Manager or npm command:
cd ~/.node-red
npm install @iiot2k/node-red-gpiox
View on npm View on Node-Red View used library
Report any issues here with name @iiot2k/node-red-gpiox.
Detail
Node in-gpio reads single gpio input.
- Watch rising and/or falling edge of gpio input.
- On any gpio input changes, a message is send to node output.
- Gpio input can be set as floating, pullup and pulldown resistor.
- A debounce time can be set for gpio input.
Node out-gpio sets single gpio output.
- Input message sets gpio output.
- Output can be set to source, sink or both driven mode.
- Mode toggle changes output on any node input message.
- Mode blink blinks on input message period time.
Node pwm-gpio generates pulse wide modulation on gpio output.
- PWM frequency can be from 1Hz up to 45000Hz.
- Duty cycle are from 0% to 100%.
- Duty cycle 0% turns output off, 100% turns output on.
- PWM pulse is software generated.
- For better accuracy PWM realtime mode can be set.
- With input messages, frequency and duty cycle can be changed.
- With input messages, output can be turn on/off.
Node gpio-cnt high speed up/down gpio input counter.
- Counts on rising and/or falling edge of gpio input.
- Counter input can be set as floating, pullup and pulldown resistor.
- A debounce time can be set for gpio counter input.
- Counter can be reset with rising and/or falling edge of gpio input.
- Reset input can be set as floating, pullup and pulldown resistor.
- A debounce time can be set for gpio counter reset input.
- When the counter reaches limits, a gpio output is set.
- Resetting and setting the limit of counter can also be done via node input.
- On any counter changes, a message is send to node outputs.
This node works on Raspberry Pi with 32bit or 64bit OS. Works also on Raspberry Pi 5.