Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
Two sensors are combined on this senseBox component.
The light intensity is measured with the TSL45315 sensor from AMS-TAOS. This sensor detects the lighting conditions similar to the human eye and outputs the brightness values directly in lux, with a wide dynamic range (3 lux to 220k lux).
The second sensor is a Vishay VEML6070 ultraviolet (UV) light sensor. It converts the intensity of the sun’s UV light into digital data. The sensor has excellent UV sensitivity and linearity via Filtron™ technology. It has a good UV radiation measurement even during long solar UV exposure and can compensate excellent temperature fluctuations.
#include "SenseBoxMCU.h"
#include <SPI.h>
TSL45315 tsl;
VEML6070 veml;
void setup() {
Serial.begin(9600);
tsl.begin();
veml.begin();
}
void loop() {
Serial.print("Illuminance: ");
Serial.println(tsl.getIlluminance());
Serial.print("UV-Intensity: ");
Serial.println(veml.getUvIntesity());
}
In Blockly the sensor can be read out via the following block:
In the block you can choose between the different parameters of the brightness/UV sensor: