UV sensor with MATRIX Creator


This tutorial will help you build a Web Application for measure UV-index using the MATRIX Creator and the Raspberry Pi.

The UV-index is an international standard measurement of the strength of ultraviolet (UV) radiation at a particular place and time.


MATRIX Creator components

MATRIX Creator has a VEML6070 UV Light Sensor.

Setting up the Software

To use your MATRIX Creator you’ll need to set it up. First, you need to have Raspbian installed on your Raspberry Pi. If you don’t have it, you can download it and follow the instructions.

Then you need to install the software that will allow you to program the MATRIX Creator. To do it, you need to configure APT in the MATRIX Creator. The following steps should do it:

echo "deb http://packages.matrix.one/matrix-creator/ ./" | sudo tee --append /etc/apt/sources.list

Now update the package list.

sudo apt-get update

Then you can install the required packages.

sudo apt-get install matrix-creator-init matrix-creator-malos cmake g++ git

Now reboot the Raspberry Pi. After rebooting the FPGA and the SAM3 MCU will be programmed for you automatically. That is, after every reboot the FPGA will be programmed for you with the default firmware.

In order to use Hardware abstraction layer for MATRIX Creator (MALOS), it is usable via 0MQ with nodeJS, it's necessary to install ZeroMQ dependencies.

sudo apt install libzmq3-dev

Installation of nodeJS.

You can use NodeJS from another computer (not the Raspberry) or from the raspberry itself. Check for the most recent version of Node.js, but today it is: https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-armv7l.tar.xz

Read More:   UV sensor with MATRIX Creator

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

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

Scroll to Top