Control Your World With Your Pi Without Programming

by thethingbox in Circuits > Raspberry Pi

93463 Views, 643 Favorites, 0 Comments

Control Your World With Your Pi Without Programming

102315_13.jpg

This Instructable shows you how to use a simple affordable extension board named PiFace on top of the Raspberry Pi to control the world around you, without any technical skill.

The Hardware

Get first a Raspberry Pi 2 from any vendor (see here). The Raspberry Pi is a low cost (less than 45$), credit-card sized computer. It is a capable little device that enables people of all ages to explore computing. It’s capable of doing everything you’d expect a desktop computer to do.

PiFace Digital

PiFace.jpg

Then get a PiFace Digital board (BEWARE to buy the one for Pi2: here at Amazon) and plug in on the Raspberry Pi.

Get the Software

Getting the software is easy and free from theThingbox.io web site: just a file to download from here (choose the PI2 version) and to write to a SDCard as explained here. Then insert the SDCard into the Pi, switch on the Pi and launch an internet browser from your PC (windows or Mac).

Alternatively, you can buy an already built Pi 2 here: http://TimeSquAir.io

Access the Pi From Your Internet Browser

TTBDiscover.jpg

Enter the network address "thethingbox.local" of the Pi into the address bar of your browser (see here for detailed instructions) and voila!

node-red-screenshot.png

Here is the basic editor.

Import the Piface Plugin

importNodeMenu.png

Select "Import - Node" from the right menu

importNodeDial.png

Fill carefully with the plugin name.

Hit Ok and wait the reboot button to become activ, then use it to reboot the Pi.

FilterDial1.png

Refresh your browser.

Now enter "piface" in the filter box to find the new nodes.

FilterDial2.png

Drag the first one (with the handle right) to the workspace.

PiFace1.png

Add also a display node from the palette and link the PiFace node to the display node.

Now we have to choose from where to get the information:

PiFace2.png

Fill the setting dialog as shown.

Now use the activate button to make the flow activ:

activate.png

Select now the "Display / Debug" tab on the left, if not already in front:

DisplayTab.png

Now press the first physical button on the board and let it pressed: a 0 is displayed.

Now release it: a 1 is displayed:

PiFace3.png

Turn on a LED

As the board contains LEDs, we can turn them on.

Use now the second PiFace node to build the following flow, using the previous node:

PiFace4.png

Double clic it, fill the dialog as above and then activate.

102315_14.jpg

Now when you press the physical button, the LED turns off, when you release, it turns on.

Learn More!

091015_39-600x270.jpg

Get more about the software: https://www.npmjs.com/package/node-red-node-piface

Get more about the PiFace: http://www.piface.org.uk/guides/

Learn how to link things together with TimeSquAir (http://TimeSquAir.io) and IBM's Node-RED (http://nodered.org)
and discover the other Instructables: