caleb padgettWalker Roberts
Published © GPL3+

Group 21 MEGR 3171 Temperature sensor IOT Project

The device will indicate the temperature inside your refrigerator/freezer in Celsius and Fahrenheit.

BeginnerFull instructions provided6 hours207
Group 21 MEGR 3171 Temperature sensor IOT Project

Things used in this project

Hardware components

Argon
Particle Argon
×1
Temperature Sensor
Temperature Sensor
×1
Capacitor 100 nF
Capacitor 100 nF
×10
Resistor 220 ohm
Resistor 220 ohm
×1
Breadboard (generic)
Breadboard (generic)
×1
Photodiode, 45 °
Photodiode, 45 °
×1

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE
Maker service
IFTTT Maker service

Story

Read more

Schematics

Schematic of sensors with Particle Argon

Group 21 Particle Argon Final Product; Picture 1

Group 21 Particle Argon Final Product; Picture 2

Group 21 Particle Argon Final Product; Picture 3

Group 21 Particle Argon Final Product; Picture 4

Group 21 Particle Argon Final Product; Picture 5

Group 21 Particle Argon Final Product; Picture 6

Group 21 Particle Argon Final Product; Picture 7

Group 21 Particle Argon Final Product; Picture 8

Temp graph over 21 hours

Temp sensor was placed in a bedroom

light senor graph over 21 hours

Light sensor was placed next to a window

Code

IOT Project Code

C/C++
int tempPin = A0;
int extra = A3;
double temperature = 0.0;
double temperatureF = 0.0;
double light = 0.0;
void setup()
{
  Particle.variable("temperature", &temperature, DOUBLE);
  Particle.variable("temperatureF", &temperatureF, DOUBLE);
  Particle.variable("light", &light, DOUBLE);

  pinMode(tempPin, INPUT);
  pinMode(extra, INPUT);
  
}

void loop()
{

  int reading = analogRead(tempPin);

  double voltage = (reading * 3.3) / 4095.0;
  
  temperature = (voltage - 0.5) * 100;

  temperatureF = ((temperature * 9.0) / 5.0) + 32.0;
  
  light = analogRead(extra);
}

Credits

caleb padgett

caleb padgett

1 project • 0 followers
Walker Roberts

Walker Roberts

0 projects • 0 followers

Comments

Add projectSign up / Login