(SOLVED) Problem with LM35, ADC0804 and 89s52 interface
Mon May 14 2012, 09:52 pm
I can't have display and programming port connected together, because I accidentally put them too close to each other and if I connect programming port then I have to take LCD off.
If you ment that if display worked when I put your code in.
The problem is that it showd temperature correctly with original code, but from another forum I got a bit different code that I tried to use (and to that code you gave me the relay connecting/temp testing code).
Maybe you can check the original code and maybe there is only few lines missing from it, so it would switch relay at 27 degrees?
Original code is in here http://eprlabs.blogspot.com/2011/11/89s52-based-temperature-sensor-using.html
If you ment that if display worked when I put your code in.
The problem is that it showd temperature correctly with original code, but from another forum I got a bit different code that I tried to use (and to that code you gave me the relay connecting/temp testing code).
Maybe you can check the original code and maybe there is only few lines missing from it, so it would switch relay at 27 degrees?
Original code is in here http://eprlabs.blogspot.com/2011/11/89s52-based-temperature-sensor-using.html
[ Edited Mon May 14 2012, 09:52 pm ]
Tue May 15 2012, 02:28 am
Maybe you can check the original code and maybe there is only few lines missing from it, so it would switch relay at 27 degrees?rvs
As you can see the relay switching code is very simple.
Go back to the code that worked (displayed the temperature), and add my relay code to it.
Post your circuit diagram and code as zip attachments.
Tue May 15 2012, 02:41 am
No arguing that your posted code is simple, but I can't figure out exactly how that code works. It's like Chinese for me at the moment
Tue May 15 2012, 02:47 am
In zip file are picture of diagram (.png) and the code in notepad (.txt)
Tue May 15 2012, 03:21 am
Here is the original code with minor changes and the relay code added.
Powered by e107 Forum System