Smart Pot cover
My idea is based on a problem that most people face and I face a lot. Food burns due to high heat, especially for beginners in cooking or while doing other things besides cooking. My idea is based on designing a cover for a cooking solution that is sensitive to high heat and gives an audible alarm and a red light when the temperature rises above the required temperature, which will lead to the food burning. In addition to the possibility of controlling the required temperature according to the type of food or thing to be heated.
Using thinker CAD to build and simulate the circuit
Using Arduino IED install coding to arduino board
Electronics I used in the Assignment
breadboard
DHT sensor
Arduino UNO
potentiometer
buzzer
jumper wires
adaptor 5v
LED light
Tools and Materials to build the Enclosure
cutter
super glue
pen board
recycled card board
1st step building Circuit on Thinker CAD
Components Kit
input Devices : DHT sensor _ potentiometer
Output Devices : Lamp LED RGB _buzzer
brain : the Arduino UNO board
Power Management :adaptor 5 v
Building My Circuit on Thinker CAD
Start coding Arduino with text
int tempPin = A1;
int potPin = A0;
int alarmPin = 3;
int redLedPin = 2;
int greenLedPin = 4;
int tempValue = 0;
int potValue = 0;
float temperature = 0;
int threshold = 0;
void setup() {
pinMode(tempPin, INPUT);
pinMode(potPin, INPUT);
pinMode(alarmPin, OUTPUT);
pinMode(redLedPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
potValue = analogRead(potPin);
threshold = map(potValue, 0, 1023, 0, 100);
tempValue = analogRead(tempPin);
temperature = (tempValue / 1024.0) * 5000.0 / 1000.0;
Serial.print("Current Temp: ");
Serial.print(temperature);
Serial.print(" C Threshold: ");
Serial.println(threshold);
if (temperature >= threshold) {
analogWrite(alarmPin, 255);
delay(100);
analogWrite(alarmPin, 170);
delay(100);
analogWrite(alarmPin, 200);
delay(100);
analogWrite(alarmPin, 100);
delay(100);
digitalWrite(redLedPin, HIGH);
delay(100);
digitalWrite(redLedPin, LOW);
delay(100);
digitalWrite(greenLedPin, LOW);
} else {
digitalWrite(alarmPin, LOW);
digitalWrite(redLedPin, LOW);
digitalWrite(greenLedPin, HIGH);
}
delay(500);
}
fabrocation cardboard
the cover on Aluminum pot
bottom cover have
DHT sensor with hall
the cover pot 2 parts
can be separated
1st part for DHT sensor
and 2nd part for circuit, wires and Adruino
2nd part can be opened for change wires or programing Arduino
Arduino stick on the cover to give space for wires
wiring on Arduino
using digital / analog pins
The rest of the electronics connecting with small breadboard
the interface have the buzzer and RGB led and potentiometer with Numbers that specify the temperature values that the contents of the container must reach.
The video shows how the device works
Time laps video
sound from buzzer and red led
I faced a challenge in implementing the idea in general and especially writing the code that achieves the device's function for me
As the device depends on an action which is (issuing a buzzer alarm and a red light) when the device senses a rise in temperature but not any temperature, as the potentiometer was used to control the temperature at which the DHT sensor occurs
So the challenge for me is how to write a code that links the DHT sensor reading to the potentiometer and how to control the sensor reading
How I Faced Challenges 🧐
By asking Mr. Chat GPT how to write code that achieves the required
At first, I tried writing the code several times and testing it practically on the device.
And another time using Thinker CAD blocks, but it also did not work.
In the end, I went to Chat GPT, where I explained to him how the device would work, and what is the function of each electronic piece in the device.
He gave me an answer, which is a written code and a detailed explanation of this code on how it works.
my message to Mr. Chat GPT
He answered my question and sent me the code and how it works.