Creating an Automatic Deepfryer
by Markreel in Circuits > Arduino
497 Views, 0 Favorites, 0 Comments
Creating an Automatic Deepfryer
Intro:
For a school project, I attempted to create an automatic deepfryer. My plan was to make the proces of deepfrying a snack fully automated until the point where someone only has to select their targeted amount of snacks.
Unfortunately due to my lack of experience and understanding with mechanics, I was only able to create a prototype of a small part of the process. Being the part that is responsible for raising and lowering the deepfry pan.
So because of that I can only show you how to create this part of the project.
What you will need:
- 12V transmission motor with a 1:30 ratio
- 12mm thick full threaded metal rod
- Wood or other material for creating the structure
-The deep fryer itself (I bought the cheapest one I could find)
- 12mm nuts - An arduino uno with some male to male and female to female cables
- An L298N component (this functions as an H-bridge to allow our motor to change directions)
- A 12V power adapter for powering the 12V motor
Wiring
In the images above you can see how I connected all the wiring for this project.
Im using the following wires for the following pins:
Blue: 8
Orange: 9
Yellow: 10
These wires are then connected to the L298N component.
At the bottom of the L298N component we connect the power supply (12V adapter).
To the left we connect the wires that run to the motor(see images).
The Code
//@hkumeems
int enA = 10;
int in1 = 9;
int in2 = 8; void setup() {
pinMode(enA, OUTPUT); pinMode(in1, OUTPUT); pinMode(in2, OUTPUT); }
void loop() { digitalWrite(in1, HIGH); digitalWrite(in2, LOW); analogWrite(enA, 255); delay(40000);
digitalWrite(in1, LOW); digitalWrite(in2, HIGH); delay(100000); digitalWrite(in1, LOW); digitalWrite(in2, LOW); delay(6000); }
Attaching the Motor to the Rod
I tried multiple things to attach the motor to the rod. At first I tested it by using a wooden block but ended up using a small wooden cylinder which fits nicely to the motor and around the rod.
Keeping Everything in Place.
To keep the whole thing from falling over I used multiple pieces of wood. For the bottom part I made a circular wooden disk with a hole in the middle that perfectly fits our motor.
To keep the rod from falling over I placed 2 vertical planks at the sides and added a plank in the middle with a hole inside that the rod goes through.
For now I've used zipties to keep everyting together, but eventually you would want to screw or glue it all together.