This project uses Edison Grove kit to take temperature readings and plot graph on a mobile device. We will use XDK IoT Edition to build the project. Please refer to Intel Edison and Intel XDK IoT Edition 101 to learn how to setup XDK IoT Edition in your development environment.
Assembly the board and the temperature sensor- Attach the Grove kit's base base shield to the expansion board.
- Set the voltage toggle switch to 5V.
- Slide the connector on one end of the Grove cable into the socket on your temperature sensor.
- Slide the other end of the Grove cable into the A0 socket of the base shield.
Start the XDK IoT Edition and create a new project. Under the Internet of Thing Embedded Application, select Template. On the right side, choose Local Temperature. Then click Continue.
Key in a project name and click Create.
Then your project opens.
To update the code, find out the IP address and add a manual connection.
Key in Address, Port, User Name and Password. Click Connect.
Click the Upload icon to start uploading the code to Edison board.
Then click Run icon to run the project.
Create a local companion appNow create the local companion app. Click Start a New Project. Under HTML5 Companion Hybrid Mobile or Web App, expand Samples and Demos. Click General. Select HTML5 and Cordova. Select Local Temperature Companion App. Click Continue.
Type a Project Name and then click Continue. After the project is created, it opens.
Click the Emulate tab. From the Devices drop-down list, select the mobile device that you want to test on. Enter the dev's IP Address and Port.
Click Submit and the mobile device will show the temperature reading in a graph.
Download and install the Intel App Preview app on your mobile device. In the Intel XDK IoT Edition, click the Test tab. Then click I have install App Preview.
Push the local file to the testing server.
On your mobile device,run the App Preview app. On the Welcome page, click Login. Enter username and password. Click Submit to login.
On the bottom menu bar, select Server Apps. Select your app.
Click the Launch This App button to run your app.
Enter IP Address and Port. Click Submit. The mobile device displays a graph of temperature readings from your sensor.
All the codes are generated by the templates and they are not shown here.
Comments