SendVirtualSensorDataOverUsb

The example can can be configured to display raw or calibrated data from an array of virtual sensors. For example, the step counter will count the number of ‘steps’ taken by the device, and the magnetic finger print allows the user to mount the device on an object, like a window, and program three unique magnetic finger prints based on the position of the XDK and the object.

Programming

The following virtual sensors can be configured in the example source code in AppController.c

Please note that only one sensor at a time can be used.

Image

Output

When running the program keep the USB plugged to the PC. The USB will output a string of data, which you can read to indicate correct functionality.

Image

When Finger Print is enabled, user can record upto 3 magnetic finger prints of objects, by using buttons 1 and 2 for selection and the results are indicated via LED patterns.

Image