Introduction: Oven Timer - S6 Makerspace - Anna Paula 8B

HOW TO MAKE A TIMER THAT WILL TURN OFF THE OVEN 

This project is to help people baking food. But how? Do you know when you put something to bake on the oven with a certain time on the timer? Yeah, I think everyone knows it. However, if you are not nearby when the time finishes, the food will probably burn.

On this project, we did a timer (to use as an example, we put 10 seconds) that will turn off the oven as soon as the time finishes.

MATERIALS:

To do this, we used several materials.

- an Arduino - a Breadboard - two resistors - six wires - two LEDs and - a motor

Here is the link to the video I watched:

Step 1: THE CODE

First of all, I looked into a video that had the entire code ONLY for the timer.

Here is the code:

int ledPin = 13;
int ledend = 12;
unsigned long time;
void setup(){
 pinMode(ledPin, OUTPUT);
 pinMode(ledend, OUTPUT);
  Serial.begin(9600);
}
void loop(){
  digitalWrite(ledPin, HIGH);
  Serial.print("Time: ");
  time = millis();
  Serial.println(time);
  delay(500);
if (time > 15000) {
    Serial.print ("Timer has ended ");
    digitalWrite(ledend, HIGH);
    } else;
  digitalWrite(ledPin, LOW);
  delay (500);
}

Briefly, I will explain the code. The first part of the code is naming the LEDs. The first one's name is 12, and the other 13. On the "unsigned long time" you must write the time you want the LED to turn on. I did only for 10 seconds just to be a prototype, but you can choose the time you want it to be. When "ledpin" is HIGH, it means that the light will turn on. When it is LOW, it will turn off after the time you wrote. "Loop" means that it will repeat that process again and again.

Step 2: ORGANIZING

STEP 2:

After you do the timer and put it on the Arduino, you need to place the wires in the correct place. The image above shows where you should put the wires and everything else. After you do this, it will be ready!

Hope you enjoyed it!!!