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.
Sponsor Link
This Project is Sponsored by UTSource. UTSource is a professional electronic components supplier.
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.
PC Setup
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
matrix register
Enter the account details and finish the registration process. Now sign in to the account using
matrix login
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.[AdSense-C]
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
Setting up MOS
Now we can install MOS (Matrix Open System). Now execute
curl https://raw.githubusercontent.com/matrix-io/matrix-creator-quickstart/master/install.sh | sh
This will install the MOS and all the required dependencies. Once everything is finished, the Pi will automatically reboot.
Now go to your home folder and create a file called .envrc[AdSense-C]
nano .envrc
Here, paste the two lines with the id and secrets exactly as shown when it was generated, like shown below.
So what all things we have now? A A Raspberry Pi, A MATRIX Voice, Alexa configured to work with MATRIX Voice and IFTTT. What to do next? How about some home automation? In this post, I will show you how to set up a Matrix Alexa Home Automation system, that can turn on and off…
Arduino pH Meter Introduction AAs you all know, pH is a very important unit for measurement of acidity/basic nature of solutions. pH measurement is widely employed in almost every aspects of our life of applications such as agriculture, industries, environmental pollution monitoring, wastewater treatment and in research and development. pH is a measure of the…
Yes, you heard that right. You can now program Raspberry Pi using Arduino. This was announced in the Embedded Linux Conference 2018, a milestone in the expansion of the architecture support by Arduino Create coding, development and deployment of IoT applications. Evolution of Arduino has always been a miracle to all competitors around the world. The…
The ability to design microcontroller-based circuits is one of the most crucial skills that would benefit any electronics hobbyist the most. Modern life has been shaped by a technological revolution that was fundamentally aided by the microcontroller. Microcontrollers are compact, adaptable, and reasonably priced electronics components that can be successfully used and programmed by hobbyists,…
0 Comments
This is very interesting, You are a very skilled blogger.
I’ve joined your rss feed and look forward to seeking more of your great post.
Also, I have shared your web site in my social networks!
This is very interesting, You are a very skilled blogger.
I’ve joined your rss feed and look forward to seeking more of your great post.
Also, I have shared your web site in my social networks!