an 8051 based temperature controlled fan @@""
Discussion in "Project Help" started by starshine Sep 6, 2007.
Thu Sep 06 2007, 05:27 pm
hihi everybody, we need to do same project as cenadius which is
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
what my thread here is, i dunno how to transfer the data from ADC to 7-segment display, wish somebody can help me, thnx alot!!
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
what my thread here is, i dunno how to transfer the data from ADC to 7-segment display, wish somebody can help me, thnx alot!!
Thu Sep 06 2007, 06:39 pm
recently too many people with same problem
i give you the skeleton view of the code..
ADC part:
start conv
wait for conv to get over
send read signal
read from port
after reading you will have the value in A
and then call the 7-seg routine
to display the number in A
jump back to do the whole thing again..
hope you are now clear how to transfer the adc value to 7-seg!!??!
i give you the skeleton view of the code..
ADC part:
start conv
wait for conv to get over
send read signal
read from port
after reading you will have the value in A
and then call the 7-seg routine
to display the number in A
jump back to do the whole thing again..
hope you are now clear how to transfer the adc value to 7-seg!!??!
starshine like this.
Thu Sep 06 2007, 07:49 pm
hihi ajay~ reali thnx for ur reply. We understand about the theory of the transferation part, but after we try to firgure out by ourselves,we found that we less of pratical part example so we are not sure with the code or the software program that we have to write. Do you mind to help us with how to write the code? Thnx alot :-)
Thu Sep 06 2007, 10:09 pm
thanks for ur reply. but may i know wat is timing diagram of ADC0804? come together with component? becoz we dun have information of the ADC0804. the lecturer just provide us the component only.
Thu Sep 06 2007, 11:20 pm
read datasheet.. to know more..
Timing diagram tells you how to read, how to write.. and tells you which signal will be asserted and at what time.. and the state of the signal (high or low). Ask your lecturer for more information
here is the timing diagram for ADC0804
Timing diagram tells you how to read, how to write.. and tells you which signal will be asserted and at what time.. and the state of the signal (high or low). Ask your lecturer for more information
here is the timing diagram for ADC0804
Powered by e107 Forum System