Tibbo LTPP3 - 'Hello World'

Tibbo LTPP3 – ‘Hello World’

We’ve previously covered the basics of the Tibbo Project System (TPS) here now we’ll look at a real world usage example, a simple humidity and temperature sensor.

Getting Started.

The user guide for the TPS Linux Board can be found here. We’re not going to go through the details of network configuration, or initial login by either the web browser or SSH both are detailed in the user guide.

We’re going to start with a simple example of getting the temperature and humidity sensor working using node.js (this is rapidly becoming the language of choice for IoT applications).

Hardware Configuration.

The TPS has the same configuration tool available as on-line, this is used to configure the linux device tree. Telling the Linux OS and any applications how to configure themselves for the available underlying hardware.

Having logged on to the TPS Web interface. Select the TPS Configuration icon from the left hand menu. Then launch the TPS configurator.

We setup the Project PCB with the temperature / humidity Tibbit (#30)  occupying S11 and it’s connector slot S12 as shown below.

Then File->Save to write the configuration file. At this point disconnect your TPS, install the modules and power back up.

Software configuration

With the hardware setup, and the TPS system up and running once again login as root, it’s time to install software and read the installed sensor.

We’re going to look at using node.js. Our TPS board comes with node.js pre-installed, v5.9.0

By default there’s no npm installed. First we need to update the package tool (smart)Now we’ll install npmWith npm install we can install the Tibbo provided node.js libraries for the Tibbit, in our case Tibbit #30Create a new file, lets call it read.js with the following contentHere’s the output when we run it, this output will update every second.So there you have it, a very basic example of using the Tibbo Project System as a temperature sensor. As I’ve previously said this really is as easy as using LEGO, the Tibbo Project System allows you to develop a bespoke solution to your IoT problem yet presented in a professional and finished product.

In future articles we’ll be looking at additional Tibbits, and also other software that makes this a goto solution in the world of IoT development.