Rodrigo Alejandro
Published

Temperature Measurement App

An Arduino connection with a temperature sensor + LED + MIT App Inventor.

IntermediateProtip1 hour3,505
Temperature Measurement App

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
MCP9701A
×1
Bluetooth Low Energy (BLE) Module (Generic)
×1

Software apps and online services

app inventor

Story

Read more

Schematics

Code APK Mit

circuit

Code

Arduino Code

Arduino
int alarma = 7;
char estado;

void setup(){
  // put your setup code here, to run once:
  Serial.begin(9600);
 pinMode(alarma, OUTPUT);
 
 

}

void loop() {
  // put your main code here, to run repeatedly:

   
  byte sensorValue = analogRead(A0);
  // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):K
  float voltage = (sensorValue * 5.0) / 1023 ;
  float temp = (voltage - 0.4)*51.28 ;
  // print out the value you read:
  Serial.print(temp);
  Serial.print(" C");
  Serial.print("|");
  
  delay (3000);
 

 if (Serial.available()){
   estado = Serial.read();
 
if (estado == 'A'){
  digitalWrite (alarma, HIGH);
  delay (2000);
}
if (estado == 'B'){
  digitalWrite (alarma, LOW);
  delay (2000);
}
}
 
}

.APK

FreeMarker
Android use only you must scroll this file to your phone
No preview (download only).

Credits

Rodrigo Alejandro
1 project • 1 follower

Comments