Close
0%
0%

Quick jump to NodeJS on LTPS boards

Defining the Tibbit layout through the LTPS Web Interface

Similar projects worth following
202 views

When trying out our code examples or testing your own projects, remember to define the proper Tibbit layout before running the corresponding code.

  • 1 × Relay Tibbit These relays have the contact capacity rated at 1A/30V (resistive load). To activate a relay, set the corresponding control line LOW. When left unconnected, control lines default to HIGH (and, hence, relays are off).
  • 1 × Size 3 Linux Tibbo Project PCB (LTPP3) LTPP3 is a Linux-based Tibbo Project System (TPS) board with Ethernet, as well as optional Wi-Fi* and GPRS** connectivity. The board is based on a powerful 1GHz Cortex-A8 Sitara CPU and has four UARTs, as well as two CAN controllers.
  • 1 × RS232 Tibbit This is a standard "simple" RS232 port. This Tibbit is based on a generic RS232 transceiver (we use Zywyn ZT232F).

  • 1
    Step 1

    Unlike Node.js, Git and Python 2.7, NPM is not installed on each LTPS by default.

    To install it, you should connect to the LTPP board from an SSH client and do the following steps:

    # Setup package repositories (if it's not done already)
    smart channel --add a0 type=rpm-md name="LTPS all" baseurl=${RPMSBASE}/all/ -y
    smart channel --add a1 type=rpm-md name="Tibbo LTPS general" baseurl=${RPMSBASE}/cortexa8hf_neon/ -y
    smart channel --add a2 type=rpm-md name="Tibbo LTPS tpp" baseurl=${RPMSBASE}/tpp/ -y
    smart update
    
    # Install NPM
    smart install nodejs-npm -y
    
    # Enhance Git functionality. Required if you want to install NPM modules directly from Git.
    smart install git-perltools -y
    
    # Install build-essential (GCC, Make, libraries etc). Required for on-board compilation of native C addons.
    smart install packagegroup-core-buildessential -y

  • 2
    Step 2

    Define your Tibbits layout

    Various Tibbits require various resources. For instance, a relay Tibbit set into the socket S1 of the LTPP3 board will require the S1 interface lines to operate as general-purpose I/O (GPIO) lines. The RS232 Tibbit set into the same socket will need a UART to be enabled and mapped to this Tibbit's interface lines.

    The LTPP3 gives you an interactive graphical tool to define your Tibbit configuration (to specify what Tibbit goes into what socket). The tool also checks out if there are no problems/mistakes with your configuration. As soon as the desired layout is created and saved, you should reboot the board to let the new configuration take charge. See the video below to get the idea of the configuration process.

    When giving our code examples a try or testing your own projects, don't forget to define the proper Tibbit configuration before running the corresponding code.

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates