In the previous post, I explained what a MATRIX Voice and a MATRIX Creator is and the difference between the two. I highly recommend you to go through the first part if you are new to it and get a better understanding of the whole project. Great. Now you know what a MATRIX device is and what it can do. Now let us set it up with a raspberry pi. Lets get started.
MATRIX device is built in such a way that, it will fit easily on top of the Pi.If you turn the device upside down, we will be able to see the female header pins, which can be connected to the male GPIO pins of the Pi. If you are using a camera, connect it to the Pi before connecting the MATRIX.
Align the Female pins of the MATRIX to the Male pins of the Pi in such a way that the center of the Pi will align with the center of the MATRIX.
Now press them together.
Before starting the setup make sure you have npm installed on your PC. Follow this tutorial to install npm on your PC.
Once npm is installed, you can install the CLI tool using the command
npm install -g matrix-cli
Once it is installed, you can create a new account using the command
Enter the account details and finish the registration process. Now sign in to the account using
Now to interact with your device, you will have to register the device to the CLI tool. For that execute the command
matrix register device
Once it is completed, system will generate a MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET which we will be using it in the future. Output will be something like. These two lines are important and we will be using it the Device Setup.