in ,

MATRIX HAL Setup Raspberry Pi and Demo Scripts


HAL or Hardware Abstraction Layer is the lowest level layer of the MATRIX Creator drivers. You can either interact directly with HAL, or use the higher level components like MALOS or the MATRIX OS to tinker with the MATRIX Device. This uses C++ drivers for available sensors and hardware.
Image result for utsource logo

Sponsor Link

This Project is Sponsored by UTSource. UTSource is a professional electronic components supplier.

Things Needed

Raspberry Pi Matrix Device Micro SD Card Active Internet Connection A Power Adapter ( Min 2.3 Amp) Camera (Optional)

Step 1 : Setting Up Raspberry Pi

Download and burn latest Raspbian image to a micro SD card and insert it into the raspberry Pi. Now power it up with a power adapter that can provide at least 2.5 Ampere. Now fire up your terminal and create a password for the user β€˜pi’ by executing the command
sudo passwd pi
Connect your Raspberry Pi to a WiFi router or Wired network and make sure it is connected by checking whether it is getting an IP address from the switch. Now perform and update and upgrade by running
sudo apt update -ysudo apt upgrade -y

Step 2 : Connect MATRIX Device to Raspberry Pi

Now simply align the header pins and slowly connect the MATRIX device to your Raspberry Pi

Step 3 : Adding the key and repository

curl | sudo apt-key add -

echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list

Step 4 : Perform Update and Upgrade

sudo apt-get update

sudo apt-get upgrade

Step 5 : Installing the MATRIX Software

sudo apt-get install matrixio-creator-init

sudo reboot

Step 6 : Setting Up HAL

Install Required Packages
sudo apt-get install git cmake g++ libfftw3-dev wiringpi libgflags-dev

Step 7 : Download HAL

git clone

Step 8 : Build

cd matrix-creator-hal/

mkdir build

cd build/

cmake ..

make -j4

Running the Demos

Now from the build folder, go to the folder demo cd demos/ From there, you can choose any demo script and run it
Rate the Project Did you find this page useful? Help us to improve by rating this page.
MATRIX HAL Setup Raspberry Pi and Demo Scripts
4.4 rating based on 12,345 ratings
Overall rating: 4.4 out of 5 based on 253 reviews.

Written by Jithin

Leave a Reply

Your email address will not be published. Required fields are marked *

raspberry pi project

MATRIX Voice Alexa Raspberry Pi Easy Setup

MATRIX Core Setup – MATRIX Python Programming