Click here to Skip to main content
13,768,132 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.3K views
1 bookmarked
Posted 18 Apr 2016
Licenced CPOL

Working with sensors in the Intel® System Studio IoT Edition

, 18 Apr 2016
Rate this:
Please Sign up or sign in to vote.
Working with sensors in the Intel® System Studio IoT Edition

Editorial Note

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.

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.

  • 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.

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.

  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.



    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.

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.

License

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

Share

About the Author

Intel Corporation
United States United States
You may know us for our processors. But we do so much more. Intel invents at the boundaries of technology to make amazing experiences possible for business and society, and for every person on Earth.

Harnessing the capability of the cloud, the ubiquity of the Internet of Things, the latest advances in memory and programmable solutions, and the promise of always-on 5G connectivity, Intel is disrupting industries and solving global challenges. Leading on policy, diversity, inclusion, education and sustainability, we create value for our stockholders, customers and society.
Group type: Organisation

44 members


You may also be interested in...

Pro

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.181116.1 | Last Updated 18 Apr 2016
Article Copyright 2016 by Intel Corporation
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid