services | platforms | author |
---|---|---|
iot-hub |
arduino |
bb |
This repo contains the source code to help you get familiar with Azure IoT using the XK11 Iot starter kit.
This repo contains an Arduino IDE application that runs on board XinaBox CW02 with a xChip SL06(APDS-9960) advanced Gesture detection, Proximity detection, Digital Ambient Light Sense (ALS) and Color Sense (RGBC), and then sends these data to your IoT hub. At the same time, this application receives Cloud-to-Device message from your IoT hub, and takes actions according to the C2D command.
Follow this page to prepare your Azure IoT hub and register your device.
You can follow the image to connect your SL06(APDS-9960) with your XinaBox CW02.
Don't have a real SL06(APDS-9960) sensor?
The sample application can simulate ambient light in case you don't have a real SL06(APDS-9960) sensor. To set up the sample application to use simulated data, follow these steps:
-
Open the
app.ino
file in the app folder. -
Locate the below line of code and change the value from
False
toTrue
:SIMULATED_DATA = False
-
Save the file with Control-S.
You can send a C2D message to your device. You can see the device prints out the message and blinks once receiving the message.