temperature controlled fan speed code
#1

Kindly give me the source code in embedded C language
Reply
#2
temperature controlled fan speed code

Introduction:
In this project we will be using the concept of firing angle to control fan speed. Basically in this project we will be controlling fan speed with respect to the temperature.
The system will get the temperature from the temperature Sensor via the ADC and it will control the speed according the set poing set by the user. The circuit consists of four switches based keypad, in which two buttons are used to increment and decrement the temperature value and the remaining two buttons are used to activate and deactivate the whole system.In this project, an 8051 based microcontroller forms the processing part, which firstly senses the temperature via the ADC the controller then compares the data with the set temperature which the user can set via the keypad. If the current temperature is greater than the set temperature the controller turns ON the fan and the set speed will be proportional to the difference between the set temperature & the current temperature. If the current temperature is less than the set temperature the fan will be turned OFF. We will be using a Triac to provide the requirefiring angle to the fan and the fan speed will change accordingly. We will be interfacing four seven segment displays which will be used to display the set temperature as well as the current temperature.

1. Microcontroller :
The controller is the heart of entire system, and the whole system should be analyzed in selecting the proper controller. The following items should be considered when selecting a controller:
1 Type of input sensor.
2 Type of output required.
3 Control algorithm needed.
4 Number and type of outputs .
We will be using ATMEL’s AT89S52 microcontroller. It is a 40 pin microcontroller with 256 bytes RAM & 4kb flash memory.
2. Keypad:
The keypad consists of four switches, in which two buttons are used to increment and decrement the temperature value and the remaining two buttons are used to activate and deactivate the whole system.
3. Temperature Sensor:
We are using LM 35 as temperature sensor. LM 35 is a precision temperature sensor whose output is linearly proportional to Celsius Temperature. The LM35 is rated to operate from -55° Centigrade to 150° Centigrade with a linear scale factor of +10mv/° C.
4. ADC:
The output of the temperature sensor is an analog signal & cannot be directly given to the microcontroller. We need to convert this analog signal into digital so we will be using MCP3201 which is a successive approximation 12-bit ADC. The controller communicates with this device using SPI Protocol.
5. Seven Segment Display:
A seven-segment display, or seven-segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot-matrix displays.
Seven-segment displays are widely used in digital clocks, electronic meters, and other electronic devices for displaying numerical information.
6. Triac:
Triacs are found in many industrial and consumer products in such uses as light dimmers, motor speed controllers, heater controllers, or simply controlled switches for applying electrical power in response to the happening of some event.
A triac is practically an open circuit until it receives a pulse of current into its "gate" terminal, whereupon it becomes practically a short circuit until the current flowing between its "main terminals" reaches zero, when it reverts to an open circuit and remains open until another pulse of gate current occurs.

If a triac is connected in series between an electrical load and an AC line, the load is connected to the line when the triac is a short circuit. During the part of the cycle when the triac is an open circuit, the load is practically disconnected from the line.
7. Power Supply:
We require regulated plus and minus 5 volts for microcontroller, ADC, LCD & approximately 12 volts for the Relay. These voltages are generated from 230v line voltage.


Temperature controller can be done by using Electronic circuit, Microprocessor or microcontroller. Now microcontroller is advanced among all above circuits therefore we are using Microcontroller for temperature controlling.
In this project, microcontroller 89s51 forms the processing part, which firstly receives data from ADC. ADC receives data from temperature sensor through amplifier. Then microcontroller 89s51 performs the comparison of current temperature and set temperature as per the logic of program for which microcontroller has already been programmed. The result obtained from the above operation is given through output port of 89s51 to LCD display of relevant data and generated pulses as per the logic program which is further fed to the driver circuit to obtain the desired output of ceiling fan.

The “Temperature Controlled Fan” is designed around the micro-controller. The main blocks of the system are:
Micro-controller board: It is a low-power, high-performance CMOS 8-bit microcomputer with 4K bytes of Flash Programmable and Erasable Read Only Memory PEROM). The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the MCS-51. Instruction set and pin out. The on chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with Flash on a monolithic chip, it provides a highly flexible and cost effective solution so many embedded control applications.
Temperature Sensor Block: The temperature sensed by using LM 35. The output voltage of LM 35 varies in liner proportion with the temperature. The sensitivity of LM 35 is 10 mV/0C. For 1 0C output of LM35 is 10 mV. For 10 0C output of LM35 is 100 mV.
ADC Block: ADC means analog to digital converter. The output of signal conditioning is in the analog form. But Microprocessor requires input in digital form for this purpose we have to use ADC. In this project we are using ADC 0808. The reference voltage is +5 V. The resolution of ADC is 20 mV. Therefore for 20 mV output of ADC is (01) H. And for 100 mV output of ADC is (05) H.
Amplifier Block: Output signal from micro-controller 89C51 is weak so we have to amplify that signal. Amplifier block amplifies the signal for driving the final control element i.e. output device. For amplification Transistor BC 547 is used.
Output Block: In this project we are using FAN as output device. If temperature is above set point then Fan is ON so that temperature will start to decrease
Display Block: In this project we are using 16 X 2 intelligent LCD display to display the college name, temperature set point and very important is temperature of “Temperature Controlled Fan”.
Power Block: For our project we require + 5 Volt, – 5 Volt and +12 Volts supply. +5 Volts and. 5Volts is given to Micro-controller board, Temperature sensor, Signal conditioning, ADC etc. +12 Volts are used to drive the relay.

Applications and Advantages:
1. This project can be used in Home.
2. This project can be used in Industry.
3. This will help in saving the energy / electricity.
Future Development:
1. We can monitor more parameters like humidity, light and at the same time control them
2. We can send this data to a remote location using mobile or internet
3. We can draw graphs of variations in these parameters using computer
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: embedded c code for temperature controlled fan, air cleaner controlled fan speed, temperature controlled fan speed code, smoke controlled fan speed full report, code for temperature controlled fan dc motor based with pwm, ppt on speed controlled fan through temperature, working of moc3021 m in remote controlled fan for speed variation,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  circuit diagram dc motor speed and direction control over gsm mobile modem pdf 2 15,078 19-03-2018, 10:57 AM
Last Post: Guest
Tongue ppt slides on sliding mode scheme for speed and current control of brushless dc bldc motor 7 2,572 16-01-2018, 11:41 AM
Last Post: dhanabhagya
  matlab code for speed breaker detection 1 1,295 27-10-2017, 10:22 AM
Last Post: Guest
  circuit diagram for eye controlled wheelchair using pic16f883 2 1,513 09-09-2017, 11:35 AM
Last Post: Koganti Gopi
  four quadrant dc motor speed controller without microcontroller applications 4 3,852 05-09-2017, 03:30 PM
Last Post: jaseela123d
  ppt of automatic speed control of vehicle at school zones using ir sensor 4 1,562 15-04-2017, 02:20 PM
Last Post: jaseela123d
  speed detection and image capture 1 791 13-04-2017, 04:48 PM
Last Post: jaseela123d
  cell phone controlled robot pdf using at89s52 1 884 12-04-2017, 04:31 PM
Last Post: jaseela123d
  table fan swing mechanism 1 906 12-04-2017, 04:29 PM
Last Post: jaseela123d
  literature review automatic temperature controlled fan 1 1,087 10-04-2017, 12:29 PM
Last Post: jaseela123d

Forum Jump: