Very advanced Click IR Thermo example for Hexiwear featuring OLED Display, Bluetooth, Cloud and Touch

Dependencies:   Hexi_KW40Z Hexi_MLX90614 Hexi_OLED_SSD1351

Fork of Hexi_Click_IRThermo_Example by Hexiwear

This project has been developed by mbed user daveyclk

This project demonstrates the use of the Mikroelektronika Click IRThermo module with hexiwear featuring the OLED display, the Bluetooth for Cloud connectivity and Touch buttons

Plug Hexiwear into the Docking Station and the IRThermo Click to the Click Socket 1
Connect the USB cable to your computer and to the micro-USB port of the Docking Station

Compile the project and copy the binary "Hexi_Click_IRThermo_Example_HEXIWEAR.bin" in the DAP-LINK drive from your computer file explorer
Press the K64F-RESET button on the docking station to start the program on your board

The OLED screen will display some graphics and the temperature measurement below
Approach your end from the IRThermo sensor and see the temperature changing
Graphic displayed will change from blue, orange or red depending from the temperature measured by the IR Thermo sensor
Download the cell phone App Hexiwear from iOS or Android stores to connect your board to your phone
Type the pin displayed on the screen and give a name to your board to pair it via the App
Congratulation your data are now streamed directly to Wolkabout Cloud...
To visualize the data remotely (over cloud not bluetooth), you can go to Wolksense.com or download the Wolksense iOS/Android App and login with same account

Committer:
4180_1
Date:
Tue Feb 21 01:47:13 2012 +0000
Revision:
0:bbaf949d2a27
Child:
1:2df78187cf01

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
4180_1 0:bbaf949d2a27 1 #include "mbed.h"
4180_1 0:bbaf949d2a27 2 #include "mlx90614.h"
4180_1 0:bbaf949d2a27 3
4180_1 0:bbaf949d2a27 4 DigitalOut myled(LED1); //displays I2C wait
4180_1 0:bbaf949d2a27 5 I2C i2c(p28,p27); //sda,scl
4180_1 0:bbaf949d2a27 6 Serial pc(USBTX,USBRX); //serial usb config
4180_1 0:bbaf949d2a27 7
4180_1 0:bbaf949d2a27 8 MLX90614 IR_thermometer(&i2c);
4180_1 0:bbaf949d2a27 9 //setup an MLX90614 using MLX90614 library from
4180_1 0:bbaf949d2a27 10 // http://mbed.org/users/aquahika/libraries/MLX90614/lsixz6
4180_1 0:bbaf949d2a27 11
4180_1 0:bbaf949d2a27 12 float temp; //temperature in degrees C
4180_1 0:bbaf949d2a27 13
4180_1 0:bbaf949d2a27 14 int main() {
4180_1 0:bbaf949d2a27 15 while (1) {
4180_1 0:bbaf949d2a27 16 myled=1; // if led1 on - waiting on I2C
4180_1 0:bbaf949d2a27 17 if (IR_thermometer.getTemp(&temp)) {
4180_1 0:bbaf949d2a27 18 //gets temperature from sensor via I2C bus
4180_1 0:bbaf949d2a27 19 myled=0;
4180_1 0:bbaf949d2a27 20 //print temperature on PC
4180_1 0:bbaf949d2a27 21 printf("Temperature is %5.1F degrees C\r\n",temp);
4180_1 0:bbaf949d2a27 22 }
4180_1 0:bbaf949d2a27 23 //wait for device to produce next temperature reading
4180_1 0:bbaf949d2a27 24 wait(0.5);
4180_1 0:bbaf949d2a27 25 }
4180_1 0:bbaf949d2a27 26 }