node-red-nodes/hardware/Pibrella
Dave C-J 067ece146b Add comment to Pibrella info about buzzer not sharing PWM
(kills 3.5mm audio output).
It's a Won'tfix  to close #75
2014-10-30 12:57:24 +00:00
..
38-rpi-pibrella.html Add comment to Pibrella info about buzzer not sharing PWM 2014-10-30 12:57:24 +00:00
38-rpi-pibrella.js Update Pi nodes to allow initial read / level set. 2014-10-27 20:28:05 +00:00
LICENSE Add Pibrella npm 2014-07-04 16:12:19 +01:00
README.md Add comment to Pibrella info about buzzer not sharing PWM 2014-10-30 12:57:24 +00:00
package.json Add comment to Pibrella info about buzzer not sharing PWM 2014-10-30 12:57:24 +00:00

README.md

node-red-node-pibrella

A Node-RED node to control a Pibrella add-on board for a Raspberry-Pi.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-pibrella

Pre-reqs

Requires the WiringPi gpio command to be installed in order to work. See the WiringPi site for details on how to do this.

Usage

A pair of input and output Node-RED nodes for the Raspberry Pi Pibrella from Pimoroni.

###Output

The output node will set the selected output high (on) or low (off) depending on the value passed in. Expects a msg.payload with either a 0 or 1 (or true or false).

The Buzzer is a divider so low numbers are high notes. 0 is off, and the sensible lowest note is around 250-300. 2 is the highest note. 1 is just a buzz - so you can use 0/1 type inputs.

Note: Using the buzzer is known to "kill" audio output via the 3.5mm socket.

###Input

The input node generates a msg.payload with either a 0 or 1 depending on the state of the input pin.

The msg.topic is set to pibrella/{the pin id} - which will be A, B, C, D or R.

Note: This node currently polls the pin every 250mS. This is not ideal as it loads the cpu.