<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<!-- test="<a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank"><img alt="Creative Commons License" width="80" height="15" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/2.5/in/80x15.png" target="_blank" /></a><br />This work is licensed under a <br /><a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank">Creative Commons Attribution-Noncommercial 2.5 India License</a>.<br /><br /><a href='http://www.8051projects.net/disclaimer.htm' target='_blank' />Rickey's World Disclaimer</a>" -->
				<rss  version="2.0">
				<channel>
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple 8051 projects, pic projects, avr projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>

<language>en-gb</language>
				<copyright> rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank"><img alt="Creative Commons License" width="80" height="15" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/2.5/in/80x15.png" target="_blank" />This work is licensed under a  rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank">Creative Commons Attribution-Noncommercial 2.5 India License. href='http://www.8051projects.net/disclaimer.htm' target='_blank' />Rickey's World Disclaimer</copyright>
				<managingEditor>Ajay Bhargav - contact@nospam.com</managingEditor>
				<webMaster>contact@nospam.com</webMaster>
				<pubDate>Tue, 07 Oct 2008 20:17:34 -0700</pubDate>
				<lastBuildDate>Tue, 07 Oct 2008 20:17:34 -0700</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[hI,<br />How can i make a sensor for checking moisture in soil and air humidity? ckts on the net not working! I am working on a control system which needs these parameters where can i get help on this?]]></description>
<pubDate>Mon, 11 Feb 2008 08:47:06 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[<div class='indent'>kts on the net not working! I am working</div><br /><br />you might be missing something...  people in our field seldom upload their work unless tested..  give us the reference to your work... <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>shyam&lt;shyam@nospam.com&gt;</author>
<pubDate>Mon, 11 Feb 2008 10:52:41 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Shyam,<br />Finally my soil moisture sensor is working. I have not tested it fully. Will upload the ckt and resposnse voltage ranges for it. I need to make a humidity, temp and light sensor now and pH if possible. Temp is easy using LM35. Humidity is a problem. unable to get ICs here for it. Need todevise another way. Light can be done using LDR but i want a varying voltage or resistance response just as LM35 gives. Any suggestions? Pls help me out...]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Tue, 12 Feb 2008 08:37:28 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[LDR is good for light sensing. or a photo transistor for a better voltage o/p]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Tue, 12 Feb 2008 22:18:46 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[look here for humidity sesnsor: http://www.sumeetinstruments.com/sensors.htm]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Tue, 12 Feb 2008 10:23:14 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Shashi thanks for the link. I tried mailing them as no details are given on the site but the mail couldnt be sent, probably the company has shut down! Om Technologies is the only shop having a himdity sensor kit @750 Rs and he says he has not tested it. No one has any of the ICs i searched online and felt that it could be used! Does anyone have any suggestions?<br />Ajay I tried LDR but its respons is On-Off kind but i need a varying response. Atleast 4 levels(On Off givem me 2). Am trying using a opamps may work. not completed it at the lab. Photo transstors am unable to bias them right. need to get some ckt for it. (I got QT120 photo transistor)]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 13 Feb 2008 07:20:02 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Maybe I can help you with the humidity sensor, Amit, it is HIH3605 from Honeywell. Linear O/P 0.8-3.9V at 5V supply. Details at Honeywell site. Product is available in market, else try RS components. Thanks.]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Wed, 13 Feb 2008 21:00:42 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[LDR is actually a variable resistor who's value changes according to intensity of light falls on it. Resistance of LDR is inversely proportional to light intensity.<br /><br />you can connect LDR's o/p to ADC and get 256 levels <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  more than what you wanted..]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Wed, 13 Feb 2008 20:44:25 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi ajay i know about the LDR but the problem is that the voltage across it switces instantly in a dark/light condition. so it effectively gives only 2 values. Have u tried it with the ADC directly and got 256 levels? I have managed to get 3 descrete levels out of it by sing the quad opamp LM324 and then to a summer today! Not yet soldered and tested properly.<br /><br />Chiru, Thanks for the info. I found about the HIH series of Honeywell and i got circuits based on 3605 and 3610 also but in Bangalore I am unable to get a dealer! no shop on SP road has it! RS components only sells finished goods and i dont want a device that gives me the humidty readings on a display because i need to give that as an input to my microcontroller.<br /><br />Can u name any dealers or any ither ideas for making the sensor?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 14 Feb 2008 06:58:51 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[hmmm il try that out... need to get to the lab for that. as of now the quad opamp gives me 3 leves. the reason i dint use the LDR as u mentioned is because i checked the voltage variations with multimeter under different lighting conditions, and the ldr just switched directly. il try this way u mentioned also tomorro.<br /><br />can u pls help me on the humidity sensor! that is wats not happening now. temperature il be doing with LM35.]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 14 Feb 2008 08:42:44 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[do not use opamp... try connecting LDR between ADC and VCC directly... something like this..<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,,,,<br />VCC |----/&#092;/&#092;/&#092;----> ADC PIN<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LDR<br /><br />make it work like a variable resistor, usually with opamp it act like a switching device <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Thu, 14 Feb 2008 08:00:10 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Ajay,<br />I tried doing the light sensor the way u mentioned but i am not getting a varying voltage response! why is that? the voltage just switches from a low value to high and vice versa!! i used LM324 and summer to finnaly get 3 levels! a huge complicated setup!!!<br /><br />Was having a quiery regarding LM35. Can i directly give its voltage o/p to the adc? i use resistance from 80k to 470k but my voltage readings dint cross 1V. Wont be too low as an i/p to adc? Pardon me forbeing so lame (I am yet to read the data sheets  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  ) I am going bnkers now. been 2 weeks and just done 3 sensors, yet to test them properly and unable to get the IC for humidity sensor!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 16 Feb 2008 08:23:52 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[The LDR's resistance can reach 1M in dark conditions and 100 ohms or so in full brightness.So it naturally follows that you'll get an instantaneous swing between (almost) 0v and (near) Vcc under the dark&#092;bright condition.<br />You may add a resistor in parallel to the LDR and another in series to limit the swing.<br />With the values shown and Vcc=12V you'll get ~4.85V if LDR=1K<br />                                                     ~6.1V if LDR=2k<br />                                                     ~7.7V if LDR=10K<br />                                                     ~8.2V if LDR=1M<br />You may fine tune the resistor values to suit your needs.<br />Regarding LM35 you need to give it's output directly to the ADC;no resistors.It will output 1.5V at 150C.<br />As for the Honeywell humidity sensor,a friend had bought it from Emaar Impex for ~450 bucks.You may drop them a mail.....http://www.emaarindia.com/contact.html<br />(their website sucks)<br /><img src='http://www.8051projects.net/e107_files/public/1203189438_5870_FT5757_ldr.gif' class='bbcode' alt='' width='171' height='203'  />]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Sat, 16 Feb 2008 11:19:10 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[thanks sashijoseph for this info <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  i did not know this thing about LDR.]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Sat, 16 Feb 2008 20:38:58 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi shasi,<br />Thanks for the update! Il surely check it out today and let u know about  the results <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  Thanks for the link too. Il try getting the IC. Need it desperately.<br /><br />Today have to start testing the bands and regions of operation after interfacing with the adc. <br /><br />Il need all your help and Ajay and Shyam, yours too to code!!<br /><br />Thanks again<br />Cya]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sun, 17 Feb 2008 18:51:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[To add some finer points for Amit with LDR and LM35 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Most of the ADC chips works with 5V, so its better to power the LDR from 5V too. As for the circuit suggested by Sashi it is perfect, only change the 1K with 10K and remove the 2K2.<br /><br />There should be small resistance like 1K at the OP of LM35 so as to prevent any short circuit conditions for the IC. You may also consider shunting the input of ADC with 0.1uf to bypass noise. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Sun, 17 Feb 2008 21:19:55 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Yes Amit, <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />   contact Mr. Paresh 09967022244 02223869472 of Precious Electronics Corporation, he placed at Mumbai, tall him you got this information from me -  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  Chiranjib from Kolkata, he will help you out with humidity sensors. If he cannot give sensors of honeywell ask for tech details of the same. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Sun, 17 Feb 2008 20:51:08 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Shashi the ckt wrked like a charm! thanks a million. My board size has become 1/4th of wat i made!!!I am using it with 5V supply only.<br /><br />Chiru, thanks for the details. I am trying through a person in Bangalore now, if its unavailable il surely use ur contact. And il surely make use of your tips in my project. I have already solderd the LM35 so cant make any changes to it. But most probably i will not be using the ckt because the HIH3605 humidity sensor needs a temperature sensor for temperature compensation in its calculation and a specific IC has been mentioned (DS2438) so i wil be probably using that only for my temperature readings.<br /><br />Any more suggestions please do post it here. I shall try incorporating it.<br /><br />Another problem i am facing now is that my faculty says that the project is too basic and that it is doing nothing great nor is it innovative!!! so i have to think of something more to add onto it!!! Pls help!!!! <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 18 Feb 2008 04:51:52 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey,<br />It seems the 3605 and 3610 are outdated and now only the 4000 series are available @ Rs. 750+VAT!!! Also i am unable to find a circuit for it online. I think its not wise to but the IC without having a ckt that is sure to work.  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />Wat do i do??? Any ideas? Pls help!!!! I really need to find a solution to this problem!And i am yet to start coding for the damn project  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/17.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 18 Feb 2008 08:01:18 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Dear Amit, the HIH4000 is smiler to 3605, find the same in the pdf, download it with search for HIH4000 pdf <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  . <br />As for temp compensation, i don't think its required given the recommended operating temperature zone, the shift in o/p voltage with temp and the application <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  .   <br />You may add in your code some indications for comfort limit like hot, dry, wet, comfortable, etc., depending on the data collected, to make the project interesting <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />  .]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Mon, 18 Feb 2008 21:06:16 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Chiru,<br />Thanks for the info.I did go thro the datasheets earlier but...they dint make much sense to me  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  <br /> I am able to get the HIH4000 locally @ Rs 750 shall i buy it? I am attaching a pdf document in which i found a ckt for the HIH3605. (humsensor 3605IC.pdf)Pls do go through it and let me know of i can do it. I shal only then proceed with buying the ic. <br />Also i found an interesting ckt done by someone using an open cap in an Astable multivibrator to sense humidity. Il upload that too. (Humidity_opencap.pdf) Pls do have a look <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br />Il surely incorporate ur ideas in the code. Any more h/w or sensors u suggest could be added to the system? I am also planning to  make it an sms based system, but that is Stage 2. I need to get this done 1st and foremost. Stage 3 is to make a multiprocessor system where i can use a master controller to control other controllers which will be interfaced with the sensors and actuators.<br />Do u think it is viable?<br /><a href='http://www.8051projects.net/e107_files/public/1203431182_4203_FT5757_humsensor_3605ic.pdf'><img src='http://www.8051projects.net/e107_images/generic/lite/file.png' alt='' style='border:0; vertical-align:middle' /></a> <a href='http://www.8051projects.net/e107_files/public/1203431182_4203_FT5757_humsensor_3605ic.pdf'>humsensor_3605ic.pdf</a><br /><a href='http://www.8051projects.net/e107_files/public/1203431182_4203_FT5757_humidity_opencap.pdf'><img src='http://www.8051projects.net/e107_images/generic/lite/file.png' alt='' style='border:0; vertical-align:middle' /></a> <a href='http://www.8051projects.net/e107_files/public/1203431182_4203_FT5757_humidity_opencap.pdf'>humidity_opencap.pdf</a>]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Tue, 19 Feb 2008 06:26:22 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Chiru,<br />No issues with the late reply. My work's on hold anyway! I think i have developed RSI. Bad pain at the left back of my head, neck and shoulder.And was busy with seminar stuff.<br />But u have given me reasin to cheer <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  I needed assurance on the ckt for the HIH4000 b4 buying it and now i can buy it in peace and try it out. <br />The ASD &amp; ASC ics u mentioned also from honeywell? <br />And how do i use them for the overhead tank level gauge? that will be a good feature for the system. Pls do post the ckt for it if u have. els il google it  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />  <br />Wel my system aint critical at all... just need to show that something practical and usefull can be made  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 21 Feb 2008 07:15:13 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi...<br />with 3605 measuring humidity is a cinch.You don't need that exotic dallas chip.You can easily use LM35 for temperature compensation.<br />Just measure the 3605's output voltage with an ADC and the temperature with  the LM and apply the fol. formulae for calculating RH<br /><br />Sensor RH = (VOUT / VSUPPLY) – 0.16 /0.0062, typical at 25°C<br />To correct the calculation for temperature and compute true RH, use:<br />True RH = sensor RH / (1.0546 –0.00216 T)<br />where T is in °C<br /><br />The open cap one could be used to detect changes in humidity,but to measure humidity you would need some kind of a relation between frequency(or capacitance) and humidity,which isn't provided.....so it's pretty useless.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Tue, 19 Feb 2008 09:38:19 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey shashijoseph<br />Thanks for the post. Well the formulae for using with the 3605 is given in the document i had uploaded. But i am not getting the 3605 locally. The HIH4000 is available and much cheaper than the 3605 (from bombay) so i needed to know if i can use that instead of the 3605 in the same ckt.<br />That open cap thing seemed to be really useless to me too.<br />Pls let me know if i can use the 4000 in the same ckt?<br />Can i just read the voltage at pin2 of the HIH and keep my LM35 away from the ckt? and then do the necessary calculation in my code right?<br />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 20 Feb 2008 06:28:12 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi, sorry for being late to reply <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  . <br />Sashi has already clarified something. But i think you can go straight and use HIH4000. No LM35. Just feed the pin 2 signal to ADC. The O/P voltage is proportional to RH (at reg 5V supply) and there is a little deviation with temp which may be overlooked for your kind of application <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  .You may consult the data sheet for the same <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  .<br />Want to add a barometer to your system <img src='http://www.8051projects.net/e107_images/emotes/yahoo/69.gif' alt='' style='vertical-align:middle; border:0' />  , add one ASDX015D or ASCX15DN pressure sensor to your system (voltage o/p at 5V). You can also make overhead tank water level gauge etc. with this <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  .<br />This sensors are from honeywell, and i am using one 1psi sensor for a critical medical equipment for a long time, and am more than happy (O/P directly connected to ADC). <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Wed, 20 Feb 2008 20:41:59 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit get wel soon <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  . <br />ASCX and ASDX series pressure sensors are from honeywell (formally Sensym). ASCX is temp compemsated but costly. Both ASCX and ASDX are amplified voltage o/p 5V sensors, unlike normal 4-20 mA or mV o/p types. You can also use a cheap 4-20 mA type (14PC series) with a series resistance connected at the ground end and read the voltage against that res. There are also some cheap sensors in the market with reasonable stability, but ask for pin out details. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br />I shall try and give you the idea for cct of a tank lavel gauge. Its basically a rigid tube with one open end and the other end connected to the sensor, the open end facing down is dipped into the water. Initial or null pressure is measured with no water in the tank and set with the o/p voltage as zero lavel. Similarly fill the tank and take reading/s for other level/s (water goes inside the tube and the positive pressure gives a corresponding higher voltage o/p) <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' /> <br />So go ahead... <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Thu, 21 Feb 2008 21:05:54 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Chiru,<br />Thanks a ton for the good wishes and ur prompt replies  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  really boosts my morale!!! il surely try and add the sensor for the water level indicator. I had read of another kind of ckt for this sometime earlier it was based on some varying resistance. dont remember it though now <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />Started working on getting digital o/ps from the adc for my sensors and i hit a roadblock! I get crap o/ps!!! tried with all the ICs (0808) in my lab still no success! anything i should keep in mind while using an ADC? I have connected al the unused pins viz. In1 to In7, EOC, SOC, etc to +5v I tried connecting the pot to In7 and In3 (as mentioned in the datasheet) to use only 8 or 4 bit o/p but the result was the same. Am i missing out on something???<br />Also i think its high time i started coding... wat do u think should be my approach? I also intend to have a RTC in teh system and also include a manual over-ride incase of system failure!]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 22 Feb 2008 06:21:44 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, I think you are familiar with ADC conversion. If not, first try with 0804, try the "free running connection" in the Harris Semiconductor datasheet <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  . <br />Conversion time is very important. Use adequate delay. The clock should be within recommended frequency range. I think all analog inputs are within 0 to 5V DC, with v ref set to 5V. Follow the "timing diagram" properly. Check power supply for noise, minimal wire length ( if unavoidable) at analog input <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  .<br />These should solve your problem (provided the code is OK, chip is not fake). <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Fri, 22 Feb 2008 20:37:12 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi chiru, il look into the datasheet of 0804 as u mentioned. I used the NS 0808 with i/ps in the range 0 to 5V either from my sensors or  variable supply (both yielded no o/p). infact i encountered a peculiar problem of changing digital o/p everytime i turned ON the trainer kit but eventhough i changed nothing! I am not using it with the uC so i had clocked the ALE. I shorted the SOC and EOC pins. and the ckt i tried was almost similar to that given in the datasheet of NS 0808!<br />Il try wat u have suggested. gotta check if i have 0804 in the lab though  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />Roadblock after roadblock  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 23 Feb 2008 06:25:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit,<br />The LSB of the digital o/p may drift a bit even with a stable analog i/p <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  <br />A steady clock is required at the CLK i/p for the functioning of the ADC itself, why should you clock the ALE <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />I didnt find any SOC pin of 0808 in the National ds, is it START <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />  is it supposed to be shorted to EOC <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />You may follow the typical application at p12 of National ds, also check figure5 at p7 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br />There is no ROADBLOCK if you are open in your mind <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Mon, 25 Feb 2008 00:49:03 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi chiru,<br />Thanks for the info.<br /><br />Yes I did meant START (Pin6) by SOC. I had shorted it to EOC basically to use it free running mode (for continuous conversion just like how its done in 0804). I was trying to use the ckt mentioned in Fig. 9, Pg 9 of the NS datasheet. Il surely try out wat u have suggested tomorrow.<br /><br />Oh and i forgot to mention...the  ADCs in my lab were bad <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  thats why i was not getting the o/p! I tried with the 0804 today and it worked so i have purchased 0809 (as 0808 was not available) and i shall try it out tomorrow. Could u pls tel me the diff b/w 0808 &amp; 0809 i really couldnt figure it out from the ds!<br /><br />I am facing another problem now i hope ul be able to give me a solution to it. In the ckt i uploaded for the HIH3605 in the 1st post of teh pg, they have used 2 diodes - BAT54S. It is not available here, i spent an hr today at the shops but couldn trace it! could u suggest an alternative. I shall look into its ds and try to find something. <br /><br />And yes...as u truly mentioned ... "There is no ROADBLOCK if you are open in your mind ". <br /><br />Thanks <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  bye for now <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 25 Feb 2008 08:01:54 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi amit, you can take some info from tutorial section if you want.. and keep working for learning <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  you are doing a good job.]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Mon, 25 Feb 2008 11:12:13 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Thanks Ajay <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  il surely look into the tutorials. i hav exceeded my bandwidth for this month   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  so wil do it on 1st march only. u guys are really helpful and motivating ... thanks a lot!!! hope il gain some knowledge n wil be help some more noobs lik me sometime in the near future  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  bye for now <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 25 Feb 2008 19:03:20 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[You don't need those Schottky diodes.They are used for supplying voltage from the 1-wire interface.You wouldn't be using that Dallas chip(in the attached pdf) would you?<br />Simply provide 5v regulated voltage to the HS and monitor it's output voltage.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Tue, 26 Feb 2008 19:28:34 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Ajay and Chiru,<br /><br />Pls read the 1st post on this pg.<br /><br />Tried with the 0808 today as u mentioned, but i used it in free running mode and not with uC. so i had to separately connect ALE (tried it both ways i.e. toggle and also permanently high) and as i had seen on another site online i had shorted START and EOC. Clock = 400kHz - 700kHz (mostly 650kHz). <br /><br />I did get desired o/p ... but not always. infact below 1V i dint get a correct o/p. Above that it was not consistantly correct o/p. sometimes i would not get it. and generally i was getting double than wat i was supposed to get (i.e if my i/p was 1V the digital o/p was 2v).<br /><br />Can u pls tel me wats wrong! this is getting really frustratimg. Cant move ahead!!! unless i am sure it works only then i can test it with my sensors and get the operating bands and only then can i start the biggest part of the proj - the coding!<br /><br />Also am unable to get BAT54S for my humidty sensr and the ds shows it as a 3 terminal device (iv not studied it properly) but in the ckt dia its been shown as 2 terminal only...<br /><br />Pls help asap!!! :'(]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Tue, 26 Feb 2008 08:24:43 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, <br />ADC0808 has max error of +/- 1/2% against 1% of 0809, it is a superior converter <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br />BAT54S is dual Schottky SMD diode, you may use two BAT42 or BAT85, they are available <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br />I am confused with what you mentioned in your last post, will work on it and let you know shortly. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Tue, 26 Feb 2008 19:04:14 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Thanks Chiru and Shashi,<br /><br />I dunno wats wrong, the ADC doesnt seem to be consistant at all! Behaves wierd!!! Today i tried it agin. Started with 1.5V (increased till 4.5V ) and got near perfect o/p but i tried for 0.5V and got garbage. after that i dint get a single correct o/p even for the same i/ps i tried before!!! did i spoil the IC? i dont think i did. I faced this same peculiar problem yesterday also but today i used the same IC and got correct o/p initially!<br /><br />I will not be using the Dallas chip in the humidity sensor ckt. Should i use an LM35 or il just stop at the o/p of the HIH4000? eliminating the RC ckt also? So in that case i needednt use the BAT54S diode? or can i replace it with a zener?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 27 Feb 2008 08:17:58 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Maybe a noise issue for the ADC.......have you used long wires at the i&#092;p?Have you used a regulated power supply and proper bypass caps at the ADC Vcc pin?<br /><br />As for the HS you may use LM35 for temp correction(if you want greater precision) and no need for the diodes.Just use a regulated ps.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Wed, 27 Feb 2008 18:13:36 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, i don't know if the 0808 is bad <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  , but in case you plan to buy a new one, shift to serial ADC (saves space) and buy MCP3208 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  . It is 8 ch serial 12 bit ADC from Microchip. <br />Enclosing a 8051 code for the same to scan the 8th channel whenever the ADC is CALLed (i use it with a 2051 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />  ), the result is stored in R2 for MSB and R3 for LSB. It is a guideline for you and modify it for other channels <img src='http://www.8051projects.net/e107_images/emotes/yahoo/69.gif' alt='' style='vertical-align:middle; border:0' />  .<br /><br /><div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><span style="color: #adadad; font-style: italic;">;TEST ROUTINE FOR MCP3208 WITH 8051</span><br />&nbsp;<br /><span style="color: #46aa03; font-weight:bold;">CS</span>&nbsp; &nbsp; &nbsp; .<span style="color: #0000ff;">EQU</span>&nbsp; &nbsp; P1<span style="color: #ff0000;">.4</span><br />CK&nbsp; &nbsp; &nbsp; .<span style="color: #0000ff;">EQU</span>&nbsp; &nbsp; P1<span style="color: #ff0000;">.3</span><br />DIO&nbsp; &nbsp; &nbsp;.<span style="color: #0000ff;">EQU</span>&nbsp; &nbsp; P1<span style="color: #ff0000;">.2</span><br /><br /><span style="color: #adadad; font-style: italic;">; -:IN &nbsp;CS:---&lt;---:P1.4 &nbsp; :</span><br /><span style="color: #adadad; font-style: italic;">; &nbsp;: &nbsp; CLK:---&lt;---:P1.3 &nbsp; :</span><br /><span style="color: #adadad; font-style: italic;">; &nbsp;: &nbsp;DOUT:---&gt;---:P1.2 &nbsp; :</span><br /><span style="color: #adadad; font-style: italic;">; -:IN DIN:---&lt;-I : &nbsp; &nbsp; &nbsp; :</span><br /><span style="color: #adadad; font-style: italic;">; &nbsp;MCP3208 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8051</span><br /><br /><span style="color: #00007f; font-weight:bold;">ADC</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span>,#<span style="color: #ff0000;">0FFH</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;DIN word for MCP3208</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">SETB</span> &nbsp; &nbsp;<span style="color: #46aa03; font-weight:bold;">CS</span> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Make sure /CS is high</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">CS</span> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;/CS goes low</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; R4,#<span style="color: #ff0000;">05</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Load counter</span><br />LOOP1: &nbsp;<span style="color: #00007f; font-weight:bold;">RLC</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Rotate DIN bit into Carry</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes low</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; DIO,<span style="color: #0000ff;">C</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Output DIN bit to LTC1298</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">SETB</span> &nbsp; &nbsp;CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes high</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">DJNZ</span> &nbsp; &nbsp;R4,LOOP1 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #adadad; font-style: italic;">;Next bit</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">P1</span>,#<span style="color: #ff0000;">04</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Bit 2 becomes an input</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes low</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; R4,#<span style="color: #ff0000;">09</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Load counter</span><br />LOOP2: &nbsp;<span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #0000ff;">C</span>,DIO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Read data bit into Carry</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">RLC</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Rotate data bit into Acc.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">SETB</span> &nbsp; &nbsp;CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes high</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes low</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">DJNZ</span> &nbsp; &nbsp;R4,LOOP2 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #adadad; font-style: italic;">;Next bit</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">R2</span>,<span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Store MSBs in R2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Clear Acc.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; R4,#<span style="color: #ff0000;">04</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Load counter</span><br />LOOP3: &nbsp;<span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #0000ff;">C</span>,DIO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Read data bit into Carry</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">RLC</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Rotate data bit into Acc.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">SETB</span> &nbsp; &nbsp;CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes high</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">CLR</span> &nbsp; &nbsp; CK &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;SCLK goes low</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">DJNZ</span> &nbsp; &nbsp;R4,LOOP3 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #adadad; font-style: italic;">;next bit</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; R4,#<span style="color: #ff0000;">04</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Load counter</span><br />LOOP4: &nbsp;<span style="color: #00007f; font-weight:bold;">RRC</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Rotate right into Acc.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">DJNZ</span> &nbsp; &nbsp;R4,LOOP4 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #adadad; font-style: italic;">;Next Rotate</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">MOV</span> &nbsp; &nbsp; <span style="color: #46aa03; font-weight:bold;">R3</span>,<span style="color: #46aa03; font-weight:bold;">A</span> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Store LSBs in R3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">SETB</span> &nbsp; &nbsp;<span style="color: #46aa03; font-weight:bold;">CS</span> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;/CS goes high</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">RET</span> &nbsp;<br />&nbsp;</div></div><br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Wed, 27 Feb 2008 21:24:57 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Chiru....how much does it cost buddy?]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Thu, 28 Feb 2008 00:17:49 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[What cost, Sashi <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Thu, 28 Feb 2008 00:30:28 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[OMG!!! Well the cost of my proj is going up!!! Well, today i tried again with the 0809 and guess wat at IN7 i got precise digital o/p!!! exactly the same as expected. even for 0.2V.  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />   And then comes the bad news... it dint happen for any other i/p lines! we are not going wrong wit the address lines am sure of that. now i dunno wats wrong! <br /><br />Is it possible that i have spoilt bot my ICs? Well i had 1st tried them using IN0 and IN3 only and the o/p data lines to the LEDs on my college IC trainer kit. Is it possible that they tried to draw more current and in an attempt to drive them my IC got spoilt? But i always checked the IC from time to time nad it never heated up! <br /><br />Wat is wrong? Tomorro i have planned to put it onto a pcb rather than get stuck with the bread board or trainer kit. that way can avaoid unnecessary noise also.<br /><br />Well i am not a photography lover. Few of my friends are and i was just a volunteer helping to organise the event. I do love scenic and macro photography but... have never tried though. Will surely add u on gmail  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />   <br /><br />Pls tel me wat do i do about the ADC!!!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />   Cya for now  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 29 Feb 2008 04:33:35 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi shashi n chiru,<br /><br />Well i am using a IC trainer kit in my college lab and using the power supply n gnd from that only. i have not added any bypass capacitors. Yes the clock was not a clean square wave it had a bit of distortion at the +ve edge. could that be the problem? Il try using a capacitor for that tomorrow.<br /><br />Yes how much would that ADC cost? I have just spent Rs 150 on 2 new 0809s. I dont think i can buy another expensive IC  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Are you sure about not using any diodes? The IC is very expensive @ Rs 750 + VAT. I have not yet bought it. <br /><br />No improvement in the project still. Had a photo exhibition so was busy with that past 2 days. will get back to work tomorro onwars ... but i dunno wat to do. just sitting and there is no +ve result!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/17.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 28 Feb 2008 06:22:36 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Yes Amit, all serial ADC's are dear. A 2ch will be around 120/- and 8ch as high as 400/- in Kolkata <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  . <br />Give me some time, i shall get back to you with a working ckt of 0808 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  .<br />Diodes are not required, stick to the simple ckt in the DS. Supply should be neat and not exceeding 5V DC <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  .  <br /><br />You love photography? i do. For that we can talk elsewhere, maybe. My id is ckarmakarams@gmail.com<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Thu, 28 Feb 2008 22:02:22 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Well Amit, since one of the i/p is working, the ADC is not bad <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />  . <br />You say the address is ok, still once more check it as, for ch7 it should be #7 (all high), ch6 = #6 (high high low), etc. Remember for each analog ch to be scanned, there should a complete cycle to get a valid o/p <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  .   <br />If it still doesn't work, then the input logic or the mux is spoiled somehow <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />   .<br /><br />And never mind about the photography thing.<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Fri, 29 Feb 2008 21:29:06 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hmmm, i did give it enough time for the conversion and yes, i did follow the addresses correctly. will try it out again els i have got a new 0809, wil try with that.  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br />N u must check out the link http://www.flickr.com/photos/shakirfm/ <br />Its my friends. hes an amazing photographer. got interested in it cos of him. hes a macro guy too. Cya for now. do let me know wat do i do to troubleshoot the damn thing  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />  <br />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 01 Mar 2008 06:27:51 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Take it cool, start it afresh <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Checked flickr, excellent, thanks and regards to your friend. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Sun, 02 Mar 2008 20:31:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Tried afresh with the new adc but the same prob :'( <br /><br />But found something interesting... the IN7 works even in the new IC. also the junk o/p is the same in all the 3 ADCs. is it possible that i am making a mistake? i have checked and rechecked the address lines and also tried al kinds of permutations and combinations but to no avail  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Dunno wat to do now. planning to interface it to the 8051 and try directly wat happens. probably am making a mistake while using it in a stand alone mode. <br /><br />Any idea on AVRs? i heard that the ATmega has built in adc. but how about programming it? i have no skills in embedded C and had planned to code the 8051 in assembly only since i have learnt it.<br /><br />Wat do i do now?<br /><br />Help Help!!!! <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 03 Mar 2008 06:48:37 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Take the plunge buddy.For now stick to the 8051 since you learnt 8051 programming.Try out a few projects with ADCs,I2C,SPI,LCD etc etc and then you can migrate to any other platform.The transition won't be too difficult.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Mon, 03 Mar 2008 11:44:12 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, follow Sashi's suggestion <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />   In case you need to change, shift to PIC, start with 12F675 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />   There are lots of circuits and projects available on the net, moreover Microchip gives good application support for its chips. <br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Mon, 03 Mar 2008 21:34:02 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[that opamp is for calibrating the LM35 to obtain precise results.If one ortwo degree error will do for your application,then you don't need it.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Tue, 04 Mar 2008 10:51:53 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Thanks Shashi and Chiru,<br /><br />Il keep that in mind. I did start reading on the PIC 16F74. But there are no good books on them infact few ppl i asked said that u can only learn bout pics from their datasheets! is that true? Pls do suggect books, if any for them.<br /><br />Yeah and another good news!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  The adc finally worked! All i did was to clock the ALE also with the same signal given to CLOCK of ADC. and it works. perfect o/p at 6 channels and a slight 1 t0 2 bit error at 2 channels. will check it for lower values also tomorrow. <br /><br />While using the LM35 with ADC should i use an opamp? I think you told me not to. I had already put it on the board but. So should i pull it out now? But in this link http://www.freewebs.com/maheshwankhede/sensors.html (pls check it out.) he mentions that an opamp is required? Wat do u suggest?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Tue, 04 Mar 2008 08:56:22 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[yes opmp is needed to fulfill the "signal conditioning"<br />you can also use a divider network for this.<br />but as sashi said , you can connect lm35 directly with adc <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>abbas1707&lt;abbas@nospam.com&gt;</author>
<pubDate>Tue, 04 Mar 2008 12:59:56 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Thanks a lot. il keep that in mind. wil be caliberating my sensors tomorrow for use wit the adc. and the next step is the programming.<br /><br />I wanted to know. do i need to provide the OE, START, ALE signals from the uC or can i do them as i did in the stand alone mode and only supply the addresses A, B , C  by the uC and read the data thro it? after reading the data from the ADC i plan to cyclicly display them onto the display or to use buttons for each sensor so that when u press a button, that sensors reading is shown in the display. Also an actuating mechanism wil be controlled by the uC for each sensor such as artificial lights, motors, pumps etc.]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 05 Mar 2008 06:22:02 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, to start with PIC, download the book "PIC in Practice A Project based Approach 2nd Ed." Its available for download in this site itself (in fact there are others too) <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />   <br />Do not jump to 16F74, start with simpler ones like 12F675, 16F88 16F818  etc (they all have build in ADC) <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  . <br /><br />If you are using a uC, why to feed control signals manually <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />   of course you can have switches for data out.<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Wed, 05 Mar 2008 20:43:46 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Yup Chiru is right......with a uc there's no point doing it manually and moreover in free running mode how will you decide exactly when to read in the data?So do it the right way and believe me it's very simple too. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Wed, 05 Mar 2008 20:51:37 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hmmm oki. Il keep that in mind. the basic reason i thought of not giving al signals to the uC was to save the i/o pins as il be needing quite a few. I was thinking of only controlling the address lines by the uC and obviously data lines also wil go to it. Since my ALE is connected to CLOCK in the free running mode i thought of keeping it that way only. Do u think its not right? can u pls tel me the basic part of the code... (dont get me wrong) i just mean the sequence of the control signals. Or can i use the same as mentioned by Mazzidi in his book?<br /><br />Also i felt that since OE and START can be always connected to +5V and i can just read the o/p as and when i need by changing the Address lines. But then wont my EOC always be low and trigger my uC interrupt!<br /><br />Am also confused with the algorithm for my code. need to code it properly as i need to store each data for each sensor in one shot to stack and then display onto the LCD. Then check for the thresholds and perform control operations!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Lots of questions  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  sorry... my 1st proj on a uC. I thought i was good at this and now am busted!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />K then waiting for u guys' expert advice... thanks a ton guys!!!!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />  cya]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 06 Mar 2008 08:49:32 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[You can follow Mazidi for programming the ADC.<br />And for starters you may follow these steps......<br />while(1)<br />{<br />get_adc(temp) x 10   => T    //get 10 samples for temp and store the average in T            <br />get_adc(hum)   x 10  => H<br />get_adc(ldr)      x 10   => L<br /><br />Display(T)<br />Display(H)<br />Display(L)<br /><br />if(T>Tthresh) do .....<br />if(H>Hthresh) do ....<br />if(L>Lthresh) do .....<br /><br />some_delay()<br />}]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Thu, 06 Mar 2008 22:30:40 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi shashi thanks for the idea. this was basically wat i had in my mind. but i had not thought of having the avg of 10 values. as i thought il keep displaying the variations on a real time basis. I am basically foxed on the reading the data and storing into stak part. and another prob! i have not got a hold on programming the uC in C so i am stil stuck to assembly level programming only  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Also i was having another doubt. how do i provide a clock to the ADC? i had thought of 2 inverters with an RC this was generating a 850kHz clock but wil i be able to synchronise the ADC with the 8051? I wil be using a 11.0592 crystal for it. In Mazidi he shows a diagram where the same crystal is tapped and a propagation delay is introduced by means of cascaded d flip flops. can i stick to the inverter buffer or the Mazidi way or do u suggest something else?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 07 Mar 2008 06:18:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[<div class='indent'>and another prob! i have not got a hold on programming the uC in C so i am stil stuck to assembly level programming only</div> <br />You call it a problem?Many would love to be burdened with such a problem(asm skill) <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  <br />As for the clock you can directly feed it from the 8051 using  timer interrupt.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Fri, 07 Mar 2008 11:35:06 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[well thats the reason my preference for newbies is to use assembly first rather to go for C. C makes you lazy <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  and you find things very very hard if you have to write a code in asm.]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Fri, 07 Mar 2008 21:16:35 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Wel my skills in assembly are nothing great either... but farely decent. <br />Regarding the clock, using timer is a very good idea as there wil be no synchronisation problemms and ul get a clean pulse but my problem is that i am trying to reduce the no of pins of the uC. This is mainly because i am having an ADC, LCD (probably buttons for it...which i most probably will have to eliminate and use a time varying display) and also mtors, relays etc to my uC. so i need to be careful with the no of pins i use for everything. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Also later i plan to make it an sms based system so that wil again need the serial commn pins! And my stage 3 is to make it a multi processor system (hope i can achieve that b4 the deadline). <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />   <br /><br />Another embarrasing problem that has tied me down is that i am stuck with making my power supply. got the +5V but in an attempt to get -5V i blew the thing up (dint refer datasheets of 7905!!!) and all subsequent boards were al screwed up (pardon the language)  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />   i need to redo it carefully now!!!!<br /><br />And i am yet to start coding  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  :'(]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 08 Mar 2008 06:01:28 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Don't worry ...... we all make mistakes.I remember wiring a 78L05 like a 7805 without caring to read the datasheet and then ending up with a lighter pocket.<br /><br />So make an estimate of exactly what all stuff you would be hooking up in ver1 of your project.Then calculate the total pin requirement and if it crosses whatever is available then you can start using alternate tricks to reduce pin count.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Sat, 08 Mar 2008 10:11:52 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hmmm il surely keep that in mind. Its been a real learning though slow experience for me. hope i can get this power supply sorted out tomorrow. I have started working on how i want the entire setup to look and work like. just been too lazy over the week end.<br /><br />Also on the ADC and uC part i had a doubt, do u think there wil be synchronisation problems if i do not use a clock sourced by the crystal or the timer feature as u mentioned? also wil noise be a problem if i use a slightly longer wire for connecting the clock of the ADC from the uC?<br /><br />Regarding the conncetions of sensors to the ADC. do i need to use any resistors b/w them to limit the current? My biggest concern is that the data sheet of the humidity sensor HIH4000 (my most expensive component- it costs as much as the rest of my h/w!) datasheet mentions the max i/p current as 500uA and the ideal operating current is 200uA. They would sertainly have ensured it does not draw more current than that unless at the o/p we happen to draw more current. so will the ADC cause trouble?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sun, 09 Mar 2008 03:32:39 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[sure <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  start a new one.. coz it will be easy to have a follow-up then <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Mon, 10 Mar 2008 07:23:59 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Okay! Now I am thoroughly confused!!!<br />I tried making a look up table for the LM35. But i realised I need to have 2 separate LUTs, one for the ten's place n the other for unit's place (Pls tell me if it needent be done that way) and I am unable to figure out how do u access the tables then?<br /><br />Firstly I must mention I have connected the LM35 to a uA741 with a gain of 4.8 which is connected to the ADC. So at 25 deg C the o/p of my ckt will be 1.2V. The output of the ADC will be 3Dh ie 61d. How do i convert this to ASCII and display it now!<br /><br />I initially though that its wiser to calculate the corresponding ASCII value and store it in a LUT n access it... but now i feel its far too complicated. <br /><br />But i need to use a LUT because the formula for the Humidity sensor is far to complicated to be done in the uC so i have to manually calculate it for the range of voltages and store the corresponding value in a LUT.<br /><br />Pls help  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Also. How do i display degree symbol. The ASCII codes table in Mazidi doesnot list it...]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 09:04:59 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey. Hows everyone? looks like its been a busy monday for all <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Mine too. I finally hav my power supply up and i am getting +5 &amp; -5V!! Hurrah!!!<br /><br />And that leads me to my next hurdle. Programming the uC. I made a small code to try testing the LCD. And also another for the ADC. and then thought il integrate them to c how it works... and to my despair i am unable to proceed beyong the build option. I somehow managed to change somesettings and generated the hex file also. but beyond that i see no option o program. how do i procced? pls help asap.<br /><br />also pls go thro my previous post and let me know about that current and synchronisation doubts i had..<br /><br />BTW since my doubts on the sensors have been cleared for now and i am stuck in programming part etc, should i start a new thread for that or shall i continue here??  <br /><br />Cya for now  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 10 Mar 2008 07:05:30 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Amit, couldn't keep in touch, was busy at Mumbai <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />   <br /><br />Give the blue print of your project, we shall try to help u with the code <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Mon, 10 Mar 2008 21:46:14 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[nice to see more helping people around <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br />good work Chiru and Shashi...]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Tue, 11 Mar 2008 12:38:18 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey am so sorry for not posting for over a week. My connection was down. Thanks to BSNL!!!! Wel it was finally set right today. Besides that i was stuck up at college too due to some accreditation work and also had to do my 1st project seminar. Which by the way was a hit. The idea was appreciated alot and the presentation too impressed the evaluators. Also i have my internal assesment tests on monday n tuesday so il be stuck til tuesday due to that.<br />After doing some realistic work, it feels sick to go to books!<br /><br />Coming back to the project. I have made my ADC board. I used a Schmitt triggered NAND gate (4093 if am not mistaken) to generate about 700khz clock. I need to make the uC board now n tehn try the code on it. <br /><br />About the blue print, I  have not yet drawn the ckt, but i have it on paper. N yeah another prob is that i was planning to use the ADCs EOC as INT0 of uC but i think that cant be done right. <br /><br />The following is my flow for the prog on which i have started coding:<br />1.Switch on<br />2.Display initialisation msg<br />3.Initialise ADC<br />4.Read sensor1 from ADC<br />5.Store in uC buffer memory<br />6.Read sensor2 from ADC<br />7.Store in uC buffer memory<br />8.Read sensor3 from ADC<br />9.Store in uC buffer memory<br />10.Read sensor4 from ADC<br />11.Store in uC buffer memory<br />12.Initialise LCD<br />13.Display al sensor data from buffer<br />14.Check sensor1 data wrt threshold<br />15.Switch on/off actuator<br />16.store status in buffer for actuator1<br />17.Check sensor2 data wrt threshold<br />18.Switch on/off actuator<br />19.Store status in buffer for actuator2<br />20.Check sensor3 data wrt threshold<br />21.Switch on/off actuator<br />22.Store status in buffer for actuator3<br />23.Check sensor4 data wrt threshold<br />24.Switch on/off actuator<br />25.Store status in buffer for actuator4<br />26.Go to step 2.<br /><br />Also the LCD will be used with a switch. In the normal condition it will display the readings of the sensors. When the button is pressed it should display the condition of the actuators(which will be stored in the actuator buffer). When the switch is turned off it must go to step 2 and start reading the sensors again. To achieve this i think i must connect the switch to INT0 or INT1 right. <br /><br />Also the ADCs EOC cannot  be connectd to INT0 for the flow i have mentioned and only polling method can be used right? Else while its waiting for the 1st sensors conversion to finish i wil be latching the 2nd sensors address to teh ADC. <br /><br />Pin details<br />P0 LCD data<br />P2.7 RS<br />2.6 R/W<br />2.5 E<br />l<br />P1 ADC data<br />P3.0 OE<br />P3.1 Start<br />P3.2 EOC<br />P3.3 SWITCH FOR TOGGLING LCD DISPLAY<br />P3.4 ADD A<br />P3.5 ADD B<br />P3.6 ADD C<br />P3.7 ALE<br /><br />am i on the right track now?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 22 Mar 2008 06:12:59 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Reply pls  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  am waiting..]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 24 Mar 2008 04:51:13 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Step12 "initialise LCD' should be before step2.<br />Polling the EOC would be better and simpler since you have to wait for the adc data before moving forward.So no point using an interrupt.<br />For the ADC values it would be better if you took ~10 samples for each sensor and used the average value.You may use the bucket(or was it barrel?) shifting algo posted somewhere by Shyam,for averaging.This way you minimise the chance of your actuators swinging wildly with each value.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Mon, 24 Mar 2008 10:54:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Soory about Step12!! that was foolish of me!<br />Could u pls tel me the link or the thread where that algorithm is by shyam?<br />Thanks a ton <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Tue, 25 Mar 2008 07:06:18 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[This is the thread.....<br /><a class='bbcode' href='http://www.8051projects.net/plugins/forum/forum_viewtopic.php?5070.40#post_7316' rel='external'  target='_blank'>http://www.8051projects.net/plugins/forum/forum_viewtopic.php?5070.40#post_7316</a> <br />]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Tue, 25 Mar 2008 12:50:59 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey Shashijoseph,<br />I am unable to follow that algorithm. N my C skills for 8051 are pathetic so understanding that code is impossible for me! <br /><br />Pls could u elaborate on that?<br /><br />Sorry for being dumb  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 08:33:05 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[There is nothing difficult in it..<br />its same like taking average of 10 values..<br />you add all 10 values and divide it by 10, so you get average.<br /><br />Now when next time you take average, you have to consider the 10 samples taken before too..<br /><br />i explain like this..<br />data1, data2, data3, data4, data5, data6, data7, data8, data9, data10 => avg1<br />data2, data3, data4, data5, data6, data7, data8, data9, data10, data11 => avg2<br />data3, data4, data5, data6, data7, data8, data9, data10, data11, data12 => avg3<br />data4, data5, data6, data7, data8, data9, data10, data11, data12, data13 => avg4<br /><br />so while taking average you are considering all samples taken before too..<br />so only first time you are waiting for 10 samples, after that you are just waiting for one sample and then keep taking averages..<br /><br />I hope you now understand the algorithm.]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 10:10:57 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[oh oki got it now! i am such a dumb*** <br />I thought it was wat u mentioned but was not sure. I am presently coding for the system using 1 sensor only. Once its done and working right, ill add the code for other sensors also. Am stuck at that LCD initialisation part also and displaying on the LCD! its very complicated. I have not completed the code yet thats y i have not yet posted it. Can i post an incoplete code for ur scrutiny?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 10:16:48 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[if you feel any problem using LCD, you take a look at LCD tutorial..<br /><br />why would i need the code?  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 10:27:17 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Wel i did go through it. So quite a few of my doubts have been cleared <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  am not sure on how to make those custom characters. I need to display % symbol. <br />Was having another doubt. Is it possible to store strings in the RAM of the 8051? i want do it to display the actuator status. els il have to store a 0 or 1 in RAM locations amd correspondingly pick up "On" or "Off" from the ROM (After putting it there ofcourse!)<br /><br />I wanted u to see my code to tell me if i was on the right track. <br /><br />For that ADC barrel algo, il need to use an array right? And how do i perform the averaging? And then shift all the data. Dont u think it will slow down the performance of the system because i need to read 4 sensors, display their data and then check the threshold for each n then turn on/off actuators and then display it!]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 10:34:33 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA['%' symbol is there in <br />LCD isn't it? try..<br /><br /><div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;"> <span style="color: #993333;">unsigned</span> <span style="color: #993333;">char</span> string1<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">&quot;this stored in ram&quot;</span>;<br /><span style="color: #993333;">unsigned</span> <span style="color: #993333;">char</span> code string2<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">&quot;this stored in rom&quot;</span>;<br />&nbsp;</div></div><br /><br />averaging wont take much time.. yes you need array..<br /><div class='quote_top'>Amit Radha wrote ...</div><div class='quote'>And how do i perform the averaging? And then shift all the data<br /></div><br />see shyam's code.. he did exactly what you are looking.]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 11:29:02 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Ajay i really dont follow the c codes! pls help me in assembly (if its not too much of a trouble)...]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 11:32:37 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[well its same as you do in C..<br />lets say adc_read is your routine for ADC then<br /><br /><div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><br /><span style="color: #adadad; font-style: italic;">;for first time</span><br /><span style="color: #00007f; font-weight:bold;">acall</span> adc_read<br /><span style="color: #00007f; font-weight:bold;">mov</span> adc1, <span style="color: #46aa03; font-weight:bold;">A</span><br /><span style="color: #00007f; font-weight:bold;">acall</span> adc_read<br /><span style="color: #00007f; font-weight:bold;">mov</span> adc2, <span style="color: #46aa03; font-weight:bold;">A</span><br /><span style="color: #adadad; font-style: italic;">;and so on...</span><br /><span style="color: #00007f; font-weight:bold;">acall</span> adc_read<br /><span style="color: #00007f; font-weight:bold;">mov</span> adc10, <span style="color: #46aa03; font-weight:bold;">A</span><br /><span style="color: #adadad; font-style: italic;">;adc1 to adc10 are location in RAM</span><br /><br /><span style="color: #adadad; font-style: italic;">;Now is mmm.. average..</span><br /><span style="color: #adadad; font-style: italic;">;confusing :-p</span><br />&nbsp;</div></div>]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 12:13:15 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[hi amit...<br /><br />forget abt the barrel shifter code a the moment...<br /><br />there are several other DSP algorithms that can be used...<br /><br />today i m gonna start a new thread regarding it...<br />wait for it to come...  and afterwards u shud not have any problem regarding it..!!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>shyam&lt;shyam@nospam.com&gt;</author>
<pubDate>Wed, 26 Mar 2008 22:51:44 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi ajay, sorry i went offline suddenly! Had a power cut due t heavy rain I suppose!<br /><br />Hey Shyam thanks a million! il have a look at that thread... hope its out.. pls do it soon! I really need it. I understood the algorithm, but coding the whole thing in assembly is very tedious! I am unable to do it I admit  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />First of all cant use an array like in C and then averaging it is another task! Also then performing the shift! How do u do that!!!<br /><br />I am having another doubt regarding the ADC. Now the o/p of ADC is not hex right, its BCD so i need to do a BCD to HEX conversion and then store it in my buffer tehn do a HEX to ASCII to display it on the LCD? I need the HEX equivalent cos i need to perform the check for threshold.<br /><br />Another doubt regarding the LCD. A pot is needed b/w Vcc, Vee &amp; Vss for controlling the contrast. But what are the 2 pins +LED and -LED for on the LCD? (ie. pin 15 and 16) is it for the backlight? so do i connect it to +Vcc &amp; GND respectively? was making my uC board today and got stuck here. The data sheet of HD44780 dint mention anything about it...]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 06:44:18 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[regarding LCD ..<br /><br />yes Amit u r right +led =>vcc -led =>gnd  and they r for backlight...]]></description>
<author>shyam&lt;shyam@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 10:44:58 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[The o/p of the ADC is definitely binary(hex).<br />For eg. if the input to the ADC(configured with 0-5v full scale) is 2.5v,the output of the ADC will be 128(decimal) or 80h.This is what will be stored in your buffer....so no need to convert BCD to hex.You can use this value directly for your threshold comparison.<br />For displaying,you'll have to multiply this hex value with the step size and then convert he result to ASCII.<br />For eg. step size with a 8-bit ADC configured 0-5v full scale is 5/256=19.53mV(say 20mV)<br />Now suppose you get a hex value 80h from the ADC.The value to be displayed is 80hx14h=A00h.Now convert this hex value to ASCII for displaying on the LCD.<br /><br />The LED+/- are for the backlight.You may leave it unconnected or connect it through a 10ohms series resistor to vcc  and ground.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 11:01:44 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey thanks a lot!!! <br />That gives me some work to do for tomorrow! mu uC board was on hold cos of that +/- LED doubt of mine. My code (for 1 sensor) is almost done. il complete it tomorrow and post it pls do let me know how to improve it or incase i have made any mistakes...<br />Cyas for now.. gnit]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 11:47:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Well, i forgot to ask. is there any way i can improve the sensitiviy of the temp sensor? I mean in the present set up i cannot show decimal values, right? So can that be incorporated. its not very necessary though, but it certainly will improve the set up a bit i feel..]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 11:49:20 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[which temperature sensor you are using?<br />when taking average values.. you can get decimal values too..]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Thu, 27 Mar 2008 22:05:16 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Shashijoseph and Chiru, thanks a ton for the repeated support and prompt solutions <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />I checked the o/p of my bridge rectifier, was getting nearly 7.5V (was reducing a bit though at times) So i got a 9V 2A tranformer. Not tested it yet. Will do it on monday. <br /><div class='quote_top'>sashijoseph wrote ...</div><div class='quote'><br />3A for an embedded system is OVERKILL big time.With a cap(~1000uF) on the bridge,a 6v trans. should supply ~8.4v,but if it goes below 7v under load then regulation will suffer.So use a 9v,1A transformer and you'll be fine.Also use a 10&#092;100 uF cap on the output pin of the 7805.<br /></div><br />Will using 2A tranformer damage the system by any chance? I will be using this to power my ADC, 4 sensors, uC, LCD, and a buzzer also. So i thought ite better to be on the safer side by sing 9V 2A.<br />I am using a heatsink on the 7805(used a mica sheet and heatsink paste also). But the 7905 has a complete plastic casing so i did not put a heatsink to it. Also,the regulators are followed by a 10uF and 1uF cap each. <br /><br /><div class='quote_top'>sashijoseph wrote ...</div><div class='quote'><br />As for the switch,why do you want it to reset the system...coz even after reset it will give you the same sensor readings as before reset(provided conditions don't change during reset).So for eg. if without reset(and the switch back from acuator mode to sensor mode) the temp display was 25deg,then even after reset it will display 25deg,provided temp. doesn't change to some other value during reset.<br /></div><br /><br />Wel i wanted to reset the system because the original mode of the LCD is to display the sensor data. Now, cosider a situation where the user presses the switch to see the actuator status, the interrupt occurs and the ISR changes the display, I include a delay in it so that the screen is on for say 5sec. After that on execution of RETI, the LCD must display the previous mode, ie. sensor status screen. for that it must restart from the beginning but RETI will cause it to continue where it was interrupted and there will be a delay till the uC completes what it may be doing at that time and then reach the part of the code to display the sensor status.<br /><br />I thought of using the watchdog timer (using the AT89S52) which supposedly resets the system when it overflows. so I can give it a count upto 5sec and then it will overflow and consequently reset the system. But that as u mentioned and few others also should not be done. So pls tel me if its a healthy practice to reset the system like this.<br /><br />Also one more doubt, to trigger INT0, i am using a push to on switch similar to the one which is used for the reset switch of the uC. now, one end is connected to the uC and the other to +5 or GND? and should i use an RC ckt also. I am thoroughly confused with wt to do about that! I hope u got my question. I have thoroughly confued my team also!!!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />I have asked Lots of questions. Want to program my uC and test the system by monday!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  Hope i have not started bugging u guys... Thanks a lot once again! bye for now. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 29 Mar 2008 07:10:38 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[remember that the transformer current rating is the maximum capacity which it can sorce and not the actual current it is sourcing <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:56:09 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi Ajay, <br />I am using an LM35. But not connecting it directly op the ADC, I am using an opamp as Shashi (or Chiru. dont remember) told me it wil help to smoothen and caliberate the o/p. How can i get the decimal values using it? <br />As Shashi mention 2 days back, <br /><div class='quote_top'>sashijoseph wrote ...</div><div class='quote'><br />The o/p of the ADC is definitely binary(hex).<br />For eg. if the input to the ADC(configured with 0-5v full scale) is 2.5v,the output of the ADC will be 128(decimal) or 80h.This is what will be stored in your buffer....so no need to convert BCD to hex.You can use this value directly for your threshold comparison.<br />For displaying,you'll have to multiply this hex value with the step size and then convert he result to ASCII.<br />For eg. step size with a 8-bit ADC configured 0-5v full scale is 5/256=19.53mV(say 20mV)<br />Now suppose you get a hex value 80h from the ADC.The value to be displayed is 80hx14h=A00h.Now convert this hex value to ASCII for displaying on the LCD.<br /></div><br />Now i am having a doubt regarding this. I thought instead of making the uC do the calculationsm i can create a look up table such that for a particular hex o/p of the ADC it picks up the corresponding ASCII value and stores in a buffer for display. Can this be done?<br />My code (for the temp sensor only is ready except for this part.)<br /><br />Also i am facing a peculiar problem with my power supply circuit!  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' /> <br />Its o/p voltage starts dropping as i start increasing the devices drawing supply from it! I am using a 6V 1A tranformer followed by a bridge rectifier then and LM7805 and LM7905 regulators (for +/-5V)<br />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 05:25:25 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[The LM7805 needs atleast 2V for dropout,ie ~7V at it's input.A 9v xformer would be better.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 12:46:21 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey thanks a lot. Yup no problem take ur time... ur doing us noobs a big favor by helping out on the forum i admit. <br />Regarding the supply, I was told to take a higher current rating transformer (2 or prefferably 3A, 5A tranformer wil become too huge). Also i bought a 6-0-6 tranfirmer and was using onle 6-0 terminals. Itseems that could also be a reason (i mean the center tap) so using a 0-6 transformer would be better. <br />So to solve the problem il use a 0-9, 3A tranformer. Hope that wont bee too much for the system right?<br /><br />Regaring the Look up table, i think i have thought of a solution, il try coding it and if it solves the prob then il post it here. <br /><br />I am facing another design issue now. I need to know in wat all ways can the uC be RESET, besides that reset momentary push button as mentioned in Mazidi. <br />I need this because as mentioned in my design, i show the actuator status only when a button is pressed. This i am doing by connecting teh switch to INT0, but when the switch is turned back to original position, I need to again reset the system so that it starts rading the sensors afresh and then displays the sensor data. I cant just use a RETI at the end of my ISR as that will take the IP to where it was before, but my display will not change instantaneously, right?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 20:03:51 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[A 6V AC will give over 8V DC if not heavily loaded and should work fine with 7805, still its better to use a 9V one as Sashi suggested. Moreover there should be a good heatshink on the reg so as to prevent thermal shut down (current reduced and voltage against load)   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 20:10:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Thanks...Anyway, I find this model, dunno can be used or not. It is from nemoto japan, http://www.nemoto.co.jp/en/products/sensor/manual/nhs-20.html or mec HCZ-H or HCZ-J series. May I know it can be used?<br /><br />Thanks so much]]></description>
<author>rbk23&lt;dmxreebok23@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 20:28:42 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[3A for an embedded system is OVERKILL big time.With a cap(~1000uF) on the bridge,a 6v trans. should supply ~8.4v,but if it goes below 7v under load then regulation will suffer.So use a 9v,1A transformer and you'll be fine.Also use a 10&#092;100 uF cap on the output pin of the 7805.<br />As for the switch,why do you want it to reset the system...coz even after reset it will give you the same sensor readings as before reset(provided conditions don't change during reset).So for eg. if without reset(and the switch back from acuator mode to sensor mode) the temp display was 25deg,then even after reset it will display 25deg,provided temp. doesn't change to some other value during reset.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 21:06:09 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Amit, employ a proper adc loop rather than reset <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  <br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Chiru&lt;ckarmakar@nospam.com&gt;</author>
<pubDate>Fri, 28 Mar 2008 21:15:00 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hi shashijoseph,<br />Thanks a ton <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  <br />Il include those 4.7k resistors b/w the port and Vcc.<br />I had got thoroughly confused with the switch! thanks for clearing that out too! Now in my code i make INT0 an endge trig. int. should i do it or leave it as level trig? i feel it should be edge trig. right?<br /><br />U dint tell me if its safe to use the 0-9V 2A transformer? I have explained my ckt in the post just after chiru's reply.<br /><br />Regarding the RESET of the system. I tried to include a proper loop as u and Chiru suggested but i have come across a peculiar situation. Hope i can explain it properly-<br />cosider that the uC is initialising the LCD for displaying sensor data rom the buffer or that it is displaying the sensor data from the buffer. At that instant user presses the button for viewing actuator status. this triggers the interrupt and in the ISR, the LCD is re initialised and sensor status is displayed. after 5sec delay, RETI instrn executes and uC starts from where it was interrupted ie : halfway initialising the LCD or halfway thrugh displaying the sensor data.<br /><br />In both these cases, the display will now probably be garbled or only partly correct data will be displayed right? <br /><br />What do i do now?]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 07:15:27 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Just saw this in a thread "ABOUT MICROCONTROLLERS" by TPS:-<br /><div class='quote_top'>۞ TPS ۞ wrote ...</div><div class='quote'><br /> ABOUT THE Microcontrollers<br /><br />    A:  Port 0 has open drain outputs.  Ports 1, 2, and 3 have internal<br />        pullups.  What does this mean?  See the next question and answer.<br /><br /><br />    Q:  Port 0 has open drain outputs.  Ports 1, 2, and 3 have internal<br />        pullups. What does this mean, and why should I care?<br /><br />    A:  When used as outputs, all port pins will drive the state to which<br />        the associated SFR latch bit has been set.  Except for port 0,<br />        which will only drive low (not high).  When a 0 is written to a<br />        bit in port 0, the pin is pulled low (0).  But, when a 1 is<br />        written to a bit in port 0, the pin goes into a high impedance<br />        state - or in other words, "disconnected", no value.  To be able<br />        to get a 1 as output, you need an external pullup resistor to<br />        pull up the port (to 1) when the port is in its high impedence<br />        state.  Typical values for pullups might be 470 ohm to drive a<br />        LED, and 4.7K or higher to drive logic circuits.<br /><br />    C:  Any port pin may be used as a general purpose input simply by<br />        writing a 1 into the associated SFR latch bit.  Since ports 1, 2,<br />        and 3 have internal pull-up devices they will pull high and will<br />        source current when pulled low.  When a port 0 bit is programmed<br />        for input (set to 1) it will go to a high impedance state.<br /></div><br /><br />I am using P0 of the uC to DB0 to DB7 of LCD. Does that mean i need to add 4.7k Resistors between the uC amd the LCD pins???]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sat, 29 Mar 2008 11:23:26 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Nope......between Port and Vcc (pullup).]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Sat, 29 Mar 2008 23:54:22 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[<div class='indent'>Also one more doubt, to trigger INT0, i am using a push to on switch similar to the one which is used for the reset switch of the uC. now, one end is connected to the uC and the other to +5 or GND? and should i use an RC ckt also. I am thoroughly confused with wt to do about that! I hope u got my question. I have thoroughly confued my team also!!!</div> <br />The switch should be connected to the port pin and Gnd.....never to Vcc(atleast not directly without a resistor).<br />I think switch debouncing isn't necessary in your application since you'll be returning from the interrupt(5 sec delay like you said) long after the switch would have settled. So no chance of 'misfiring'.You would need to debounce if your ISR were to complete in  say 5ms.]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 00:33:24 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hey i got a solution to the problem. Just tell me if my logic is not faulty!!!<br />In the ISR, After displaying the actuator status, there is a 5sec delay (so that user can see the status on the LCD for 5sec.) then instead of RETI il again display the sensor data from the buffer and then RETI.<br />This will send back the control to where the uC was interrupted. So even if it was displaying sensor data and was interrupted midway, it will just redisplay it in the same locations on the LCD but the LCD wont be garbled right?<br />And yes, i will remove the repeated initialisation of the LCD from the code. <br />Pls do tell me incase of any more mistakes in my code...<br /><br />Thanks <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 11:08:15 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Had a brief look at your code.Like Ajay said you should initialise the LCD only once whereas you've done it 3 times.<br />This is how it should be:<br />1- initialise LCD<br />2- display welcome msg<br />3- Read ADC<br />4- Convert<br />5- Data Display<br />6- Threshold check<br />7-  Back to step 3<br /><br />You needn't re-initialise the LCD in steps 2,5 or the ISR.<br /><br />As for the ISR doubt.....this is what you can try.Use a flag,say 'Act'.Inside the ISR you do 2 things.First set the Act flag ie. Act=1.Then display a msg "Hang on,gathering Actuator data....." or sth similar.Then a RETI.<br />Now in the data display routine(step 5) this is what you do.....<br />1 check Act bit.<br />2 If Act=1<br />   (-IE=0  ;disable interrupts<br />    -Display Actuator Data.<br />    -Wait 5 sec.<br />    -Make Act=0<br />    -Display Sensor data<br />    -IE = 81h  ;re-enable interrupts<br />    -Ret<br />    )<br />  Else (-Display sensor data<br />          -Ret<br />         )]]></description>
<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 11:21:49 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[why are you initializing lcd again and again? I mean just use lcd clear command to clear lcd instead of re-initializing. Init part should be just once at the starting of program.<br />]]></description>
<author>Ajay&lt;contact@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:04:30 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[have read all the details of your project. Am confused about your power supply part. I havealready used all the components you are using and in fact had used multiplexed 0.5" LED displays instead of LCD. but never did i find a need for a supply current exceeding 500mA. The only current consuming part in your ckt is the backlight which itself takes upto 100mA. Do connect the 10 ohms resistor in series as it will limit the current to the led.<br />check your sensor ciruit (analog input section) as it may be draining most of the current.<br />the 7805 cannot source more than 1A current and will shut down if excess current is drawn.<br />As for the ADC resolution part, I have a novel way to interface ICL7135 to the 8051 by using only 4 i/o pins. and will post it shortly. The 7135 can give a resolution of upto +/-20,000 counts i.e. more than 14 bit resolution and is as cheap or even cheaper than ADC0808. check out its datasheet.]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:10:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[ajay is right . Why reset the whole uC when you can just refresh the data?? <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:15:38 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Ok i am terribly confused now :'( i dunno wat to do. <br />I hope u understod my concern regarding the display. Il upload my code pls do go thro it and suggest changes. (It is not yet complete and it is for the LM35 only not done for other sensors.)<br />Regarding the supply, i interfaced my boards and sensors to a 9v transformer (dunno the current rating) in my lab and dint face any loading problem. I purchased a 2A one to be on the safer side.l Dint know the 7805 cant handle higer current  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Pls do check my code and tel me wat to do. Also do i need to include any file in the beginning? i will be using keil uVision 2]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:34:47 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[Hmmm thanks alot, il incorporate all the changes into the code and the hardware. <br />Am facing a peculiar problem regarding the power supply. I am unable to make a common groung from the 7805 &amp; 7905. When i tried the 1000uF cap swole up and the rectifier heated up. So i changed the cap and inverted it (as i had made that mistake) now it is exactly same as the dual power suppy in the datasheet but that still doesnt allow me to have a common ground as shown in that. The rectifier still heats up when i short the 2 grounds. <br />Does anyone have a tested circuit for +-5V?<br /><br />Pls post it here. It will be a huge help. I dunnot want to buy a ready supply, even though i have spent ~150 bucks already on it and it is still not working!]]></description>
<author>Amit Radha&lt;amit.radhakrishnan@nospam.com&gt;</author>
<pubDate>Mon, 31 Mar 2008 10:04:07 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[it doesnot matter if u use a higher current txformer as long as ur curcuit does not sink more than 1amp current, go ahead and use it <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 09:53:06 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[where is the code? <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>pdi33&lt;islurpundalik@nospam.com&gt;</author>
<pubDate>Sun, 30 Mar 2008 10:08:54 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t5757.html</guid>
</item>
						<item>
						<title>Re: Sensors</title>
<link>http://www.8051projects.net/forum-t5757.html</link>
<description><![CDATA[oh i attached it... il do it again... <br />Yup i know that about that transformer <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /><br /><a href='http://www.8051projects.net/e107_files/public/1206897583_4203_FT5757_maincode1.zip'><img src='http://www.8051projects.net/e107_images/generic/lite/file.png' alt='' style='border:0; vertical-align:middle' /></a> <a href='http://www.8051projects.net/e107_files/public/1206897583_4203_FT5757_maincode1.zip'>maincode1.zip</a>]]></description>
<author>Amit Radha