Bluetooth Thermometer displays temperature using a bluetooth enabled development board. The Android client connects to the bluetooth module and reads data streaming from an Arduino or a Raspberry Pi.
Amazon Parts
Arduino
HC-06 Bluetooth Module
Thermistor 103
10K Resistor
Breadboard
Jumper Wires
Thermistor Breadboard Layout
Bluetooth Wiring
Arduino Code
#include <math.h>
#define ThermistorPIN 1
float vcc = 4.91;
float pad = 9850;
float Thermistor(int RawADC) {
long Resistance;
float Temp;
Resistance=pad*((1024.0 / RawADC) - 1);
Temp = log(Resistance);
Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
Temp = Temp - 273.15;
temp = (Temp * 9.0)/ 5.0 + 32.0;
return Temp;
}
void setup() {
Serial.begin(9600);
}
void loop() {
float temp;
temp=Thermistor(analogRead(ThermistorPIN));
Serial.println(temp,1);
delay(5000);
}