Introduction: How to Make an Oven Turn Off With a Timer

If you want to cook something in the oven but you’re worried that you won’t be there to turn it off you can use this instructable to do that. You will have to set up a timer and adjust it by coding it so you can choose the amount of time you want. After that you will make a motor that moves when the time is over. You will have to adjust the amount of degrees that it turns.

Step 1: Remember to Test It and Tape the Wires So That They Don’t Come Out!

I’m putting this as the first step because I want you to remember. You need to test it so that you know it works. Don’t leave the house or go far away from the kitchen if you haven’t tested what you made multiple times. Remember to TAPE THE WIRES to the breadboard and arduino because they can easily come out.

Step 2: Where I Got the Idea From

I was given the assignment to find a “hidden villain”, a daily problem in my life or someone else’s and I came up with this. I sometimes cook with my mom and I don’t really have a problem with this but I thought about people who cook all the time like cooks and this was my solution to this problem.

Step 3: Materials

You will need:
2 Led lights
6 jumper wires
2 resistors
1 breadboard
1 arduino UNO
1 motor
1 USB cable
Arduino IDE
The materials to build the thing that will turn the oven handle with the motor (step 8 for clarification)

Step 4: Coding

On the coding part I used a code that I got from a YouTube video for the timer. They put the code below in the description. This is the YouTube video:

Code:int ledPin = 13;
int ledend = 12;

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

If you want the full code with the motor part this is it but keep in mind that you need to adjust the time and degrees the motor turns


int ledPin = 13;
int ledend = 12;
unsigned long time;
Servo motor;
const int buttonPin = 10;
int buttonState = 0;

void setup () {
pinMode (ledPin, OUTPUT);
pinMode (ledend, OUTPUT);
Serial.begin (9600);
pinMode(buttonPin, INPUT);

void loop () {
buttonState = digitalRead(buttonPin);

if (buttonState == HIGH ) {

time =0;
Serial.print("Time: 10");
time = millis ();


if (time < 15000) {
digitalWrite(ledPin, HIGH);

if (time > 15000) {
Serial.println ("Timer has ended");
digitalWrite(ledend, HIGH);
} else;
digitalWrite(ledend, LOW);
digitalWrite(ledPin, LOW);
delay (500);

Step 5: Set Up the Hardware

Follow these pictures to set up the hardware

Step 6: Build the Thing That Will Turn Your Oven Handle

You can probably do this several ways, but you need to make sure that it is reliable and will work every time. This is supposed to be connected to the motor. When the motor turns, this will move the oven handle. This is how I made it. I just made a little oven handle to show you but you don’t need to do it too. You can put the motor in this position by using sticks and a hot glue gun.

Step 7: Test It and Make Safety Measures

You need to be one hundred percent certain your arduino is working and that the amount of degrees the motor turns are adapted to the temperature you’re cooking with. It is important to tape the wires on the arduino and breadboard because they often do come out and you may not notice or not be there to put them back in. If you have adjusted the things you need to adjust like the time, you are done.