SekolahRobot
Published © GPL3+

Portable Thermometer with Android Device

How to make a portable thermometer sensor MLX90614 with an Android device as display.

BeginnerFull instructions provided2 hours5,403
Portable Thermometer with Android Device

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
mlx90614
×1

Software apps and online services

https://play.google.com/store/apps/details?id=io.cordova.sensorsuhu&hl=en

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Custom parts and enclosures

Enclosure Portable Thermometer

Schematics

Schematic Arduino and Senosr MLX90614

Code

Portable Thermometer Arduino Code

Arduino
/*
 * MLX90614 Send to OTG
 * sekolahrobot@gmail.com
 */

#define LED 13
#include <Wire.h>
#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

unsigned long previousMillis;
int interval = 50;
char i;
int data = 0;
void setup() {
    Serial.begin(9600);
    mlx.begin(); 
    pinMode(LED, OUTPUT);
}

void loop() {
    if (Serial.available() > 0) {
        i = Serial.read();
        switch (i) {
            case '0':
                digitalWrite(LED, LOW);
                data = 0;
                break;
            case '1':
                digitalWrite(LED, HIGH);
                data = 1;
                break;
        }
    }
if (data==1)
  {
      if (millis() - previousMillis >= interval) {
          previousMillis = millis();
          Serial.print(mlx.readAmbientTempC()); 
          Serial.print(";");
          Serial.println(mlx.readObjectTempC());
      }
  }

}

Credits

SekolahRobot

SekolahRobot

1 project • 3 followers
Sekolah Robot Indonesia is non formal education in Indonesia to learning about robot, and base on Community

Comments