Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
118 lines (80 loc) · 4.65 KB

File metadata and controls

118 lines (80 loc) · 4.65 KB

Smart Stove Top in JavaScript*

What it is

Using a compatible Intel-based platform, this project lets you create a smart stove top that:

  • allows you to set a target temperature.
  • monitors your stove and notifies you when your set temperature is reached.
  • stores historical temperature data using cloud-based data storage.

First time setup

For all the samples in this repository, see the General Setup Instructions for required boards and libraries. You need either Grove or DFRobot sensors but not both.

Hardware requirements

You need to have a Grove* Shield connected to an Arduino* compatible breakout board to plug all the Grove devices into the Grove* Shield. Make sure you have the tiny VCC switch on the Grove Shield set to 5V.

Grove*

Sensor Pin
Grove* IR Temperature Sensor A0
Grove* Flame Sensor D4
Grove* Speaker D5

DFRobot*

Sensor Pin
Analog Temperature Sensor A3
Buzzer A1
Flame Sensor A2

More details on the hardware requirements can be found in the project README

Software requirements

  1. MRAA and UPM
  2. Node.js
  3. MRAA and UPM Node.js bindings
  4. Packages as listed in the package.json file in this example
  5. Microsoft Azure*, IBM Bluemix*, AT&T M2X*, AWS*, Predix*, or SAP* account (optional)

Configuring the example

To configure the example for the Grove* kit, just leave the kit key in the config.json set to grove. To configure the example for the DFRobot* kit, change the kit key in the config.json to dfrobot as follows:

{
  "kit": "dfrobot",
  "TARGET_TEMP": 30
}

To configure the example for the Arduino 101, add a platform key with the value firmata to the config.json, as follows:

{
  "kit": "grove",
  "platform": "firmata",
  "TARGET_TEMP": 30
}

To configure the example for the optional Microsoft Azure*, IBM Bluemix*, or AWS data store, add the SERVER and AUTH_TOKEN keys in the config.json file after the required TARGET_TEMP key as follows:

{
  "kit": "grove",
  "TARGET_TEMP": 30,
  "SERVER": "http://intel-examples.azurewebsites.net/logger/smart-stovetop",
  "AUTH_TOKEN": "s3cr3t"
}

For information on how to configure the example for an optional Microsoft Azure*, IBM Bluemix*, AT&T M2X*, AWS*, Predix*, or SAP* IoT cloud server, go to:

https://github.com/intel-iot-devkit/iot-samples-cloud-setup

Running the program

To run this example on the board, simply enter

$ npm install
$ npm run
$ ./smart-stove-top

You will see output similar to below when the program is running.

App is already running 
95.0885009765625 
Connecting to MQTT server... 
MQTT message published: { d: { value: 104.1676025390625 } } 

Refer to How it Works for details on the functionality.

IoT cloud setup (optional)

You can optionally store the data generated by this sample program using cloud-based IoT platforms from Microsoft Azure*, IBM Bluemix*, AT&T M2X*, AWS*, Predix*, or SAP*.

For information on how to connect to your own cloud server, go to:

https://github.com/intel-iot-devkit/iot-samples-cloud-setup

Data store server setup (optional)

Optionally, you can store the data generated by this sample program in a back-end database deployed using Microsoft Azure*, IBM Bluemix*, or AWS, along with Node.js*, and a Redis* data store.

For information on how to set up your own cloud data server, go to:

https://github.com/intel-iot-devkit/intel-iot-examples-datastore

IMPORTANT NOTICE: This software is sample software. It is not designed or intended for use in any medical, life-saving or life-sustaining systems, transportation systems, nuclear systems, or for any other mission-critical application in which the failure of the system could lead to critical injury or death. The software may not be fully tested and may contain bugs or errors; it may not be intended or suitable for commercial release. No regulatory approvals for the software have been obtained, and therefore software may not be certified for use in certain countries or environments.