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


Fri Aug 07 2020, 08:01 AM
Tony Eldredge
{{Are You interested|Interested|Would you be interested} in {advertising|an advertising service} that {costs|charges} less than {$50|$40|$49|$39} {per month|monthly|every month} and {delivers|sends} {hundreds|thousands|tons} of people who are ready to buy directly to your website? {Check out|Visit|Have a look at|For details visit}: http://www.getwebsitevisitors.xyz |{Looking for fresh buyers?|Want more visitors for your website?|Do you want more people to visit your website?} {Get|Receive} {hundreds|thousands|tons} {of people who are ready to buy sent directly to your website|of keyword targeted visitors directly to your site}. {Boost your profits|Boost revenues} {fast|quick|super fast}. Start seeing results in as little as 48 hours. {For more info|To get details|For additional information|To get info} {Check out|Visit|Have a look at}: http://www.getwebsitevisitors.xyz
Thu Jun 11 2020, 06:27 AM
sir could please send the code for I2C and wifi interfacing with 8051
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
how can get hadwere of this project
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 10:12 AM
Pearl Olin



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 96, Members: 0 ...

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

Members: 38215
Newest member: Mirza123
Forum Activity
liqian Avatar
Posted By liqian
Fri Aug 07 2020, 03:31 AM
I found the part on here https://www.jotrin.com/pr...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jul 01 2020, 11:07 PM
PS: I am a new learner thats why my question may s...
Mirza123 Avatar
Posted By Mirza123
Wed Jul 01 2020, 02:05 PM
Thanks for the assistance. I have read the data sh...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jul 01 2020, 10:12 AM
See section 15 (Ports) of the data sheet. ...
wimac Avatar
Posted By wimac
Tue Jun 30 2020, 10:05 AM
How did you know that it is not 8051. Mirza123It i...
Mirza123 Avatar
Posted By Mirza123
Tue Jun 30 2020, 08:39 AM
It seems ports on the AT89LP2052 is not like on th...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jun 30 2020, 08:34 AM
It seems ports on the AT89LP2052 are not like on t...
Mirza123 Avatar
Posted By Mirza123
Thu Jun 25 2020, 04:07 PM
Hello!i am trying to use AT89LP2052 ( AT89LP2052 h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jun 17 2020, 09:42 PM
It is about capacitor? i should put it between Vcc...
cerouno Avatar
Posted By cerouno
Wed Jun 17 2020, 10:37 AM
Take another look at the power supply to the LCD.A...