0% found this document useful (0 votes)
50 views5 pages

Progression Report: Temperature Controlling of The Portable Fridge Via Web Application

The document provides details on a project to control temperature of a portable fridge via a web application. It summarizes: 1. The circuit includes an LM35 temperature sensor, ESP8266 WiFi module, cooling fan, and Arduino Uno microcontroller. The LM35 senses temperature changes and the ESP8266 connects to WiFi to control the fan over the internet. 2. The Arduino code reads the LM35 temperature, compares it to a desired temperature input by the user, and uses pulse-width modulation to set the fan speed based on the difference. 3. Pulse-width modulation is used to control the fan motor, where the duty cycle corresponds to fan speed - a higher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views5 pages

Progression Report: Temperature Controlling of The Portable Fridge Via Web Application

The document provides details on a project to control temperature of a portable fridge via a web application. It summarizes: 1. The circuit includes an LM35 temperature sensor, ESP8266 WiFi module, cooling fan, and Arduino Uno microcontroller. The LM35 senses temperature changes and the ESP8266 connects to WiFi to control the fan over the internet. 2. The Arduino code reads the LM35 temperature, compares it to a desired temperature input by the user, and uses pulse-width modulation to set the fan speed based on the difference. 3. Pulse-width modulation is used to control the fan motor, where the duty cycle corresponds to fan speed - a higher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 5

PROGRESSION REPORT

Temperature Controlling of the Portable Fridge via Web Application


Team 7
Aydn zcan 040120100
Alper Dal 040120404
Hasan alkan 040120432
Kbra Tunca - 040120401

1. Components of the Circuit


Circuit scheme is constructed

Schematic of the circuit


LM35 Sensor
The LM35 is a heat sensor with a semiconductor structure. It is the ideal sensor for precise and
small temperature measurements. Working from -55 degrees to 150 degrees, the LM35 temperature
sensor works with the principle that the output voltage changes according to the temperature
difference. A degree change will change the output voltage by 10 mV. The sensor, which can be
applied between 4 and 20 V input voltage, has 0.5 degree sensitivity.
ESP8266 WiFi module
ESP8266 is a wi-fi module that can be used with many development cards and microcontrollers,

especially Arduino. The most important advantages of the first price is cheaper than other modules.
The other is that Arduino IDE can be programmed with USB-TTL serial converter just like arduino
programs. The first-use UART serial communication protocol connects RX-TX pins with arduino or
other cards internally via wi-fi. This allows you to not create controlled circuits over the internet.
For the second use, you can program this card by loading the ESP8266 libraries into the Arduino
IDE. We programmed our project by loading the ESP8266 libraries over Ardunio Uno. Cooling Fan
Fan is a device that blows hot air in cold weather. It is also called an airing device, a propeller, a
propeller blade, a ventilator. It is an electrically operated tool used to clean the air. The fan, which is
a moving element, works on the air. The fan gains static and kinetic energy. The ratio of these static
and kinetic energies to each other depends on the characteristics of the fan.
Arduino Uno
Arduino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital
input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz
crystal, a USB connection, a power jack, an ICSP header and a reset button. It contains everything
needed to support the microcontroller; simply connect it to a computer with a USB cable or power it
with a AC-to-DC adapter or battery to get started.
Also we use transistor, resistance and diode.
2. Arduino Code
Arduino code is written as below:
float voltage; // voltage value from LM35
float temperature; // temperature value transformed from voltage
float desired=40; // desired temperature by user
int pwm = 0; // motor duty cycle
int motorPin = 9;
int lmPin=A0;
void setup() {
Serial.begin(9600);
pinMode(motorPin,OUTPUT);
pinMode(lmPin,INPUT);
}
void loop() {
voltage = analogRead(lmPin);
voltage = (voltage / 1023) * 5000; // voltage value is transformed into byte voltage
temperature = voltage / 10; // temperature value is one per ten of voltage by LM35
Serial.print("Temperature: ");
Serial.println(temperature, DEC);
if (Serial.available() > 0) {
desired = Serial.parseFloat();
}
Serial.print("Desired: ");
Serial.println(desired, DEC);

pwm = int((temperature - desired) * 256 / 10); // duty cycle is determined by difference of


temperature and desired temperature.
if (pwm >255) {
pwm = 255;
}
else if (pwm < 0) {
pwm = 0;
}
Serial.print("PWM: ");
Serial.println(pwm, DEC);
analogWrite(motorPin, pwm);
delay(1000);
}
3. Pulse-width modulation
Control method is determined, PWM is used for motor controlling
Pulse-width modulation (PWM), is a modulation technique used to encode a message into a pulsing
signal. Although this modulation technique can be used to encode information for transmission, its
main use is to allow the control of the power supplied to electrical devices, especially to inertial
loads such as motors.
The average value of voltage (and current) fed to the load is controlled by turning the switch
between supply and load on and off at a fast rate. The longer the switch is on compared to the off
periods, the higher the total power supplied to the load.
The PWM switching frequency has to be much higher than what would affect the load (the device
that uses the power), which is to say that the resultant waveform perceived by the load must be as
smooth as possible.
The term duty cycle describes the proportion of 'on' time to the regular interval or 'period' of time; a
low duty cycle corresponds to low power, because the power is off for most of the time. Duty cycle
is expressed in percent, 100% being fully on.

50%, 75%, and 25% Duty Cycle


For this project 100% duty cycle would be the same as setting the voltage to 9 Volts (high). 0% duty
cycle would be the same as grounding the signal.

You might also like