Discussion in "Project Help" started by    cenadius    Aug 19, 2007.
Sun Aug 19 2007, 03:20 PM
Can some1 teach me ho to do this hardware?what code should i write for this hardware?
This assignment as mention in the title,we need have the function as below:

-The system has 2 modes of operation: manual and automatic.
-In manual mode, a user may control the speed of the fan (either off, low or high speed) via push buttons.
-In automatic mode, the microcontroller controls the speed of the fan depending on the ambient temperature:
Off Temperature < 30ºC
Low speed30ºC Temperature < 40ºC
High speedTemperature 40ºC
-Regardless of the mode of operation, the ambient temperature is always shown on a dual-digit seven-segment display modules.ion
and what additional function can i add for this fan?I am very weak in doing this type of project...
Hope some1 can help me and thanks for helping
 tienduhieu like this.
Sun Aug 19 2007, 08:55 PM
hi cenadius,
welcome to rickey's world
talking about your assignment.. first of all.. decide which hardware to use.. i mean.. the temperature sensor, fan interfacing technique..

only after that.. writing a program for that hardware can be done. Also which language you want to use? C or Assembly?
 tienduhieu like this.
Mon Aug 20 2007, 12:54 AM
Hi Ajay,thanks you first for trying to help me.
i only allowed to use assembly language to do this project and i will attach the part list to be use for you.Hope u can teach me how to do after see the electronic part that i will use in doing this project.Can i know what is fan interfacing tehniques means?sorry, i really very weak in this subject,so many term that i not understand.

[ Edited Mon Aug 20 2007, 12:59 AM ]
 tienduhieu like this.
Mon Aug 20 2007, 06:29 AM
hey cenadius since u r using dc fan... so its a very easy task.what u have to do is analog to digital conversion and then pwm according to temperature from lm35.in c language its very simple task
 tienduhieu like this.
Mon Aug 20 2007, 10:39 AM
As said by abbas, the controlling DC fan can be done through a PWM on a pin. and reading LM35 is easy with the help of ADC. All you need to do is the calibration of temperature with the ADC o/p.
you can start building your schematic. Just try it once
 tienduhieu like this.
Mon Aug 20 2007, 12:14 PM
Can i know what is PWM mean? :-s
 tienduhieu like this.
Mon Aug 20 2007, 12:45 PM
PWM is Pulse width modulation.. it helps you to control the output voltage by varying the width of a square wave pulse..

A Brief Description:

|¯¯|__|¯¯|__|¯¯|__ --->
 A square wave


Ttotal = ton+toff

Duty cycle d = Ton/Ttotal

if Vin is the input voltage and Vo is the o/p voltage.. then

Vo = d x Vin
where d is the duty cycle..
now if we vary the duty cycle we can control the o/p voltage
e.g. d = 0, then Vo = 0 -- o/p is zero
and if d = 1, then Vo = Vin -- o/p equals input
Now the value of d can never be greater than 1.
To control d, we need to control the Ton, if we reduce the value of Ton, then d decreases and hence Vo. similarly if Ton increases, d increases and hence Vo increases.

So d is directly proportional to Ton.
Vo is directly proportional to d
hence Vo is directly proportional to Ton

I hope you understood the concept of PWM. :-)

[ Edited Thu Jan 17 2008, 06:33 AM ]
 tienduhieu like this.
Tags pulse width modulationPWM8051 PWM code
Wed Aug 22 2007, 01:38 AM
Thanks for ur explanation.This is the schematic that we need to use.Pls help me see got any problem?if i wan add other thing such as buzzer,how to add?Can u teach me how to write the code by using asembly langugae for this assignment?thx

[ Edited Wed Aug 22 2007, 12:26 PM ]
 tienduhieu like this.
Wed Aug 22 2007, 11:14 AM
as the schematic is ready.. so you can start programming one by one.. which one you want to go first? write programs in small modules... and then combine them later on.
 tienduhieu like this.
Thu Aug 23 2007, 04:55 PM
-The system has 2 modes of operation: manual and automatic.How to write the code for this function?teach me pls

 tienduhieu like this.

Get Social


Powered by e107 Forum System


Sat Jan 18 2020, 03:45 PM
Eric Jones
Sat Jan 18 2020, 08:49 AM
norsk porno blogg free african dating sites maria halvorsen porno dating naked brianna porno dating ukraine prywatne porno porno dame iselin porno sex porno no eldre porno gratis porno pa youtube stare filmy porno filme porno cu eleve porno foto finsk porno mamyciu porno porno gratis hd porno maroc world dating teen porno free famely porno fjlmy porno dating norwegian women free svensk porno fri porno film porno gay free porno poland porno suomi porno the best harstad porno senior dating sites canal porno norwegian gay porno porno gradis porno deutsch be2 dating porno bi sex drunk mom porno porno porn porno for kvinner bethany joy lenz dating porno folmy porno gay sex gutte porno tee porno nonne porno emma watson dating porno first time anal retro porno pee porno
Sat Jan 18 2020, 07:24 AM
Charles Halfey
Kind Regards,
Tue Jan 14 2020, 07:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 01:44 PM
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 10:30 AM
Hello. Can anyone share the code in Bascon and scheme in Proteus?
Thu Nov 21 2019, 12:30 PM
how to interface 8051 microcontroller with NRF24L01+ module
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.



Sat Jan 11 2020, 10:42 AM
Tue Jan 07 2020, 06:53 PM
Tue Jan 07 2020, 12:42 PM
Sun Dec 29 2019, 05:54 AM
Fri Dec 27 2019, 06:14 PM
Sat Dec 14 2019, 12:31 PM
Thu Dec 12 2019, 12:04 PM
Sun Dec 08 2019, 09:16 AM


Guests: 48, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38115
Newest member: usb5962
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Jan 17 2020, 10:24 PM
We will need the circuit diagram.A Proteus simulat...
Billz Avatar
Posted By Billz
Sat Jan 11 2020, 05:43 PM
hi everyone please attached files are my c code fo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jan 07 2020, 08:18 PM
Not a stupid question.Setting up "Eclipse" can be...
elt Avatar
Posted By elt
Tue Jan 07 2020, 07:06 PM
So i have just began learning programming micros a...
Billz Avatar
Posted By Billz
Mon Jan 06 2020, 09:22 PM
I think it would be better if you guys try to come...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Jan 06 2020, 12:22 AM
Can you post a circuit diagram and any code you ha...
Billz Avatar
Posted By Billz
Sun Jan 05 2020, 08:17 PM
Need help regarding C code (specifically for PIC 1...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Dec 30 2019, 06:42 PM
Can you give more details of your problem.
Rupeshpatil Avatar
Posted By Rupeshpatil
Fri Dec 27 2019, 06:21 PM
How to copy program my old microcontroller to new ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!