Discussion in "Project Help" started by    cenadius    Aug 19, 2007.
Sun Aug 19 2007, 03:20 PM
#1
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
#2
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
#3
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
#4
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
#5
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
#6
Can i know what is PWM mean? :-s
 tienduhieu like this.
Mon Aug 20 2007, 12:45 PM
#7
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

|¯¯¯¯¯¯|______
<-Ton->
<-Tof->
.
<---Ttotal--->


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
#8
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
#9
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
#10
-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

Information

Powered by e107 Forum System

Conversation

Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
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
Nathaniel
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.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

pyxus
Sat Dec 14 2019, 12:31 PM
Istika
Thu Dec 12 2019, 12:04 PM
nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM

Online

Guests: 42, Members: 0 ...

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

Members: 38110
Newest member: pyxus
Forum Activity
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 07:13 AM
Something like this ?https://www.bing.com/videos/s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 06:58 AM
The layout is a bit different, but it is the same ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 04:38 AM
https://i.imgur.com/6S5FcwF.png right now im follo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Dec 10 2019, 04:49 PM
ilylily07 Avatar
Posted By ilylily07
Sun Dec 08 2019, 01:24 PM
Hi .im humbly ask for your advice as i wrongly pur...
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...