J&J Studios
datum-Light
datum-Light
SKU:
The datum-Light sensor combines the same SAMD21G18 microcontroller used on the Arduino Zero with the APDS-9960 light sensor from Broadcom to create the simplest, easiest to use light sensor for your application.
The datum-Light sensor emulates a serial port over a USB connection, presents the information and data stored on it in a JSON formatted packet, and processes URI style commands to change and retrieve its settings. The datum-Light sensor fills the gap between a LEGO® Mindstorms® sensor and a breakout board.
Control the behavior of the sensor by using URI style commands right from your favorite terminal program. Want to set the report rate to 10 Hz and send the reports automatically? The following command does just that.
set /config?reportRate=10&automaticReporting=true
Not sure what the settings for the datum-Light sensor were? The following command will retrieve them in a JSON formatted data packet.
get /sensor/light/config
{
"color": {
"enabled": true,
"units": "counts",
"gain": 16,
"integrationCycles": 64,
"filterType": "mean",
"sampleRate": 20,
"dataRate": 10
},
"proximity": {
"enabled": true,
"units": "counts",
"gain": 1,
"LEDstrength": "25 mA",
"filterType": "mean",
"sampleRate": 20,
"dataRate": 10
}
}
The data from the datum-Light sensor is also encapsulated in a JSON formatted packet. This results in human readable text that is still easy to parse with your favorite programming language. An example of the output is shown below.
{
"timestamp": 84.804,
"color": {
"time": [84.675, 84.775],
"ambient": [40, 40],
"red": [19, 19],
"green": [19, 19],
"blue": [18, 18]
},
"proximity": {
"time": [84.678, 84.778],
"proximity": [7, 7]
}
}
The datum-Light sensor can do much more than just collect the data. The measurement units can be customized to suit your application. light data can be returned in counts or normalized. The datum-Light sensor does all the calculations for you.
It can also apply filters such as min, mix, mean, and RMS to the data stream. This truly makes the datum-Light sensor a smart sensor that goes far beyond what a breakout board can do. The datum-Light sensor is also programmed with an Arduino compatible bootloader allowing full customization of the firmware.
Specifications
- Ambient Light Sensing
- RGB Color Sensing
- Proximity Sensing
- Maximum Report Rate: 100 Hz
- Sensor Type: USB
- Dimensions: 1.0” x 1.75” (25.4 mm x 44.4 mm)
- Mounting Holes: 4 x 4-40 holes, 0.75” x 1.5” on center (19.05 mm x 38.1 mm)
Features
- Atmel SAMD21G18 microcontroller
- Broadcom APDS-9960 light sensor
- Onboard EEPROM settings storage
- URI style command interface
- JSON formatted data packets
- Globally unique 64 bit UUID
- UF2 Bootloader
Export Information
Part Number: JJ-DTM-003-01
🕑Lead Time🕑
If you can add this item to your cart it is in stock and ready to ship