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

Scroll to Top
Scroll to Top
Read previous post:
SPI mode with uControllers
ulibSD – a library for use SD cards in SPI mode with uControllers

ulibSD It’s a library for use SD cards in SPI mode with uControllers, entirely written in C. This library can...