The Yocto-Light-V2 device is an USB ambiant light sensor (lux meter) which allows you to measure ambient light up to 65000 lux. Measurements can be read directly via USB or stored on the device internal flash for later retrieval when connected again by USB. This module can be used in conjunction with a directional light source to create a light barrier, as it is very reactive. This device is a possible replacement for the Yocto-Light V1, which is not produced anymore. The other option is the Yocto-Light-V3, which is less reactive but whose light sensitivity spectrum better matches the human eye. This circuit has been designed so that the sensor itself can be moved away from the USB part by a few meters: simply split the board into two parts and solder a 4-wire cable on the designated pads.
This device can be connected directly to an Ethernet network using a YoctoHub-Ethernet, to a WiFi network using a YoctoHub-Wireless-n and to a GSM network using a YoctoHub-GSM.
USB cables and enclosures to be ordered separately.
For those who want Perl scripting: accessing things via the commandline is slow, via the HTTP::.... way sometimes complicated. An easy way out is with 'wget' and VirtualHub. wget -q -O - http://127.0.0.1:4444/bySerial/LIGHTMK2-123456/api/lightSensor/currentValue returns the value directly to stdout. With Perl pipe function this value is easy to catch wget -q -O - http://127.0.0.1:4444/bySerial/TX010V01-123456/api/voltageOutput1?currentVoltage=VALUE sets the desired parameter to VALUE It is very fast! (sorry, the formatting got garbled)