Jatin BhatiNikhil MudgalJogender yadav
Published © GPL3+

Temperature Display at Multiple Places

When we press the button or touch the sensor, the temperature is displayed on 2 LCDs and Blynk mobile app.

IntermediateWork in progress1 hour651
Temperature Display at Multiple Places

Things used in this project

Hardware components

Arduino 101 & Genuino 101
Arduino 101 & Genuino 101
×1
grove RGB LCD
×1
RobotGeek Temperature Sensor
RobotGeek Temperature Sensor
×1
Capacitive Touch Sensor Breakout - MPR121
Adafruit Capacitive Touch Sensor Breakout - MPR121
×1
button
×1

Software apps and online services

Blynk
Blynk

Code

Arduino_101_BLE.ino

Arduino
/**************************************************************
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 *   Downloads, docs, tutorials: http://www.blynk.cc
 *   Blynk community:            http://community.blynk.cc
 *   Social networks:            http://www.fb.com/blynkapp
 *                               http://twitter.com/blynk_app
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 *
 * This example shows how to use Arduino 101 CurieBLE
 * to connect your project to Blynk.
 *
 * Note: This requires CurieBLE library from http://librarymanager
 *
 * NOTE: BLE support is in beta!
 *
 **************************************************************/

//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial

//#define BLYNK_USE_DIRECT_CONNECT

#include <BlynkSimpleCurieBLE.h>
#include <CurieBLE.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "de40710cf8be4e83b23121833c4d22c8";

BLEPeripheral  blePeripheral;
int a;
int del=1000;
float temperature;
int b=3975;
float resistance;

void setup() {
  Serial.begin(9600);
  delay(1000);

  blePeripheral.setLocalName("Blynk");
  blePeripheral.setDeviceName("Nikhil");
  blePeripheral.setAppearance(384);

  Blynk.begin(blePeripheral, auth);

  blePeripheral.begin();

  Serial.println("Waiting for connections...");
}

void loop() {

  Blynk.run();
  blePeripheral.poll();
a=analogRead(A1);
resistance=(float)(1023-a)*10000/a;
temperature=1/(log(resistance/10000)/b+1/298.15)-273.15;
delay(del);
Serial.println(temperature);
}

Credits

Jatin Bhati

Jatin Bhati

3 projects • 2 followers
Nikhil Mudgal

Nikhil Mudgal

5 projects • 0 followers
Jogender yadav

Jogender yadav

4 projects • 0 followers

Comments

Add projectSign up / Login