Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / IoT

Working with sensors in the Intel® System Studio IoT Edition

5.00/5 (1 vote)
18 Apr 2016CPOL2 min read 7.7K  
Working with sensors in the Intel® System Studio IoT Edition

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Get access to the new Intel® IoT Developer Kit, a complete hardware and software solution that allows developers to create exciting new solutions with the Intel® Galileo and Intel® Edison boards. Visit the Intel® Developer Zone for IoT.

You can view a list of sensors supported in the UPM sensor library, access relevant documentation on each sensor, and quickly add a sensor to your selected project. For steps, see the appropriate section below:

Requirement

Viewing supported sensors

  1. Choose Intel® IoT > Sensor Support View. The IoT Sensor Support tab displays.

    Image 1

The supported sensors are displayed in categories, such as Analog Inputs or Displays. You can expand a category to see the list of supported sensors in the category. You can also type a search term in the type filter text field to search for a specific sensor. Information on each sensor includes a description, manufacturer, and connection type, such as I2C or SPI.

Image 2

  • You can view the UPM sensor library documentation for the sensor. To do so, click the icon for the sensor under the Doc category.
  • You can view relevant wiki information for the sensor, if available. To do so, click the icon for the sensor under the Wiki category.

Image 3

Adding a sensor to your source file

You can add a sensor to your project. Note that the sensor is added to the selected project only, not to every project in the Project Explorer tab.

  1. In the Project Explorer tab, click the name of the project to select it. The word [selected] is displayed next to the project name.
  2. On the IoT Sensor Support tab, navigate to the sensor and select the check box next to its name. This sets all the options you need to use the sensor in your project, such as the linker flag.

    Image 4
  3. A message is displayed asking you if you want to add the header for the sensor library to the project source file. Click Yes.

    Image 5

    The header file for the sensor is added to the main project file in an include statement. The header is added to the selected project.
    Image 6

Adding sensor headers to your project

You can quickly add the header files for selected sensors to the currently selected project.

  1. Right-click the main project file, then point to Add Sensor Header.
  2. Select the headers to add.

Image 7

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)