Skip to content

truegreyhound/ioBroker.piface

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

ioBroker.piface

======================= NPM version Downloads

NPM

This adapter allows to control a Piface on Raspberry Pi .

It uses node-pifacedigial: https://github.com/tualo/node-pifacedigital

The adapter creates 8 input and output objects in iobroker. The outputs can controlled by buttons from VIS or by setting the object to "true" or "false" or "1" or "0".

! Attention !

Please read the pre requirements of adapter. The adapter need node version >= v4.0.0 You have to install by console the following libraries and enable SPI support of Raspberry by setting up in "raspi-config"

git clone https://github.com/piface/libmcp23s17.git
cd libmcp23s17/
make
sudo make install
git clone https://github.com/piface/libpifacedigital.git
cd libpifacedigital/
make
sudo make install

If you run in errors, because your node version is too low, please update the node version.

  • I installed successfully with node version: v4.2.1

Settings in iobroker

Alt text

PiFace board number

You can stack up to 4 boards on one Raspberry Pi. You must address the board with the jumper. To address the boards use the following jumper settings:

Board number JP1 JP2
board 0 0 0
board 1 1 0
board 2 0 1
board 3 1 1

If you use more than one board, please create additional instances for every board and change the board number in setup of corrosponding instance.

PiFace read input in ms

This value define the interval to check the inputs. Value is in ms.

Inverse inputs

You can inverse the inputs

Initialize outputs

If this is checked, the outputs will be set to 0 by restarting the adapter.

To DO:

ChangeLog

0.0.50 (2016-05-07)

  • (Eisbeeer)
  • Optimized loggin because of RPI´s flash

0.0.40

  • (Eisbaeeer) RC added:
  • addressing boards

0.0.30

  • (Eisbaeeer) first aplpha added:
  • Read interval in setup (ms)
  • Selectable invers input (pullup)

0.0.20

  • (Eisbaeeer) first beta

0.0.10

  • (Eisbaeeer) initial version

About

Adding control of PiFace to iobroker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.1%
  • HTML 13.9%