Cooking Time

Interactive stove for cooking

Made by Mengqi Wang

This is a scenario in cooking using IoT. The surface of the stove contains a photo resistor, a temperature sensor & a force sensitive resistor. When placing the pan on the stove, the surface senses its weight and shadow, and the stove will be turned on automatically(shown as the light turned on.) And the notification led will change its brightness according to the heat of the surface.

Created: January 26th, 2015

0

Cooking Now! Come and check it out!


Scenario Purpose

This is a scenario happens in kitchen when you are cooking with a stove. The purpose is to automatically turn on the stove when you are about to use it, and also users can tell the temperature changes of heat by check the LED on the side.

Function Description

The surface of the stove contains a photo resistor, a temperature sensor & a force sensitive resistor.When placing the pan on the stove, the surface senses its weight and shadow, and the stove will be turned on automatically(shown as the light turned on.) And the notification LED will change its brightness according to the heat of the surface.

0

Spark Wire Circuit on the Breadboard.

0

Components Used

● Spark Micro-controller X 1

● Connecting Wire X 1

● Breadboard X 1

● Jumper Wires X n

● 1kΩ Resistor X 2

● 10kΩ Resistor X 2

● Red LED Light X 2

● Photo Resistor X 1

● Temperature Sensor X 1

● Force Sensitive Resistor X 1

0

Photo from the real Spark.

0

Using IFTTT

I used IFTTT to connect my Spark with twitter and Google drive.

It will automatically share a tweet on twitter if I press on the force resistor(detect the variable).

And it will also create a roll on spreadsheet if my Spark device is online.

0

Here is the code.

0
int photoCellPin = A0;
int photoCellReading = 0;
int ledPin = D0;
int fsrPin=A1;
int fsrReading=0;
int tempPin=A2;
double temperature=0.0;
double temperatureF=0.0;
int ledPin1=D1;
int led1Brightness=0;


void setup(){
  pinMode(ledPin, OUTPUT);
  Spark.variable("light", &photoCellReading, INT);
  Spark.variable("force",&fsrReading,INT);
  digitalWrite(ledPin,LOW);
  digitalWrite(ledPin1,LOW);
  Spark.variable("temperature",&temperature,DOUBLE);
  Spark.variable("temperatureF",&temperatureF,DOUBLE);
  pinMode(ledPin1,OUTPUT);
  pinMode(tempPin,INPUT);
}

void loop() {

  fsrReading=analogRead(fsrPin);
  photoCellReading = analogRead(photoCellPin);
  //ledBrightness = map(photoCellReading, 0,4095,0,255);
  //digitalWrite(ledPin1,led1Brightness);
  if(photoCellReading<500&fsrReading>100)
  {
    digitalWrite(ledPin, HIGH);
    digitalWrite(ledPin1,led1Brightness);
}

else
{
  digitalWrite(ledPin,LOW);
  int reading=analogRead(tempPin);
  double voltage = (reading*3.3)/4095.0;
  temperature=(voltage-0.5)*100;
  temperatureF=((temperature*9.0)/5.0)+32.0;
  led1Brightness=map(temperature,0,50,0,255);
  analogWrite(ledPin1,led1Brightness);

}
  }
Click to Expand
0

And also the video for my final prototype of  COOKING NOW

0
0

Thanks for your time! Feel free to leave some comments. ^_^

x
Share this Project


About

This is a scenario in cooking using IoT. The surface of the stove contains a photo resistor, a temperature sensor & a force sensitive resistor.
When placing the pan on the stove, the surface senses its weight and shadow, and the stove will be turned on automatically(shown as the light turned on.) And the notification led will change its brightness according to the heat of the surface.