Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

A node.js based app that that demonstrates the fundamental functionality of the of the sensors in the Intel IoT Devkit via mraa or upm.

License

Notifications You must be signed in to change notification settings

gomobile/iotapp-template-devkit-v1

Repository files navigation

Intel® XDK IoT Node.js* mraa and upm Demo App

See LICENSE.md for license terms and conditions.

This sample application is distributed as part of the Intel® XDK. It can also be downloaded or cloned directly from its git repo on the public Intel XDK GitHub* site.

For help getting started developing applications with the Intel XDK, please start with the Intel XDK documentation.

See also, the mraa library documentation for details regarding supported boards and the mraa library API and the upm library documentation for information regarding the upm sensor and actuator library APIs.

App Overview

This example drives a JHD1313m1 LCD as found in the *Grove Starter Kit. This connects to an i2c buss.Light sensor from the kit connects to A0 socket and LED connects to D2 socket.

The code for Display(LCD) be used in either of two ways. By default, it will use the upm module. This is much the simpler way to drive a upm supported device.

The purpose of this is to demonstrate that multiple sensors in this case LCD, LED and Light sensor can work together. UseUpm is the main function which contains all the intilatization of different module and variables. It compares the lux value as it reaches to threshold value it switches on/off between LED.For scrolling long strings i.e.(length > 16) there are two functions scroll and loop which are resposible. The Values in the array are taken from *seed grove wiki page.

Now at the end Comparing all the lux values to display appropriate message on LCD.

Important App Files

  • main.js
  • package.json

Important Project Files

  • README.md
  • LICENSE.md
  • <project-name>.xdk

Tested IoT Node.js Platforms

This sample can run on other IoT Node.js development platforms, that include the appropriate sensor hardware, but may require changes to the I/O initialization and configuration code in order to work on those other platforms.

About

A node.js based app that that demonstrates the fundamental functionality of the of the sensors in the Intel IoT Devkit via mraa or upm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published