<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Amps-n-Volts eMag</title>
	<link>http://www.delabs-circuits.com/amps-volts</link>
	<description>The Collaborative and Interactive eMag</description>
	<pubDate>Tue, 06 May 2008 02:56:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>
	<language>en</language>
			<item>
		<title>Milliamp Meter 4-20 Calibration</title>
		<link>http://www.delabs-circuits.com/amps-volts/2008/05/06/milliamp-meter-4-20-calibration/</link>
		<comments>http://www.delabs-circuits.com/amps-volts/2008/05/06/milliamp-meter-4-20-calibration/#comments</comments>
		<pubDate>Tue, 06 May 2008 02:54:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Process Control]]></category>

		<guid isPermaLink="false">http://www.delabs-circuits.com/amps-volts/2008/05/06/milliamp-meter-4-20-calibration/</guid>
		<description><![CDATA[You can see a Home Made 4-20 mA Current Source in Action. The AD chip is ICL7107. The Pot is a Bourns 10 Turn. See Instrumentation Circuits. Also See Millivolt Source.






]]></description>
			<content:encoded><![CDATA[<p>You can see a Home Made 4-20 mA Current Source in Action. The AD chip is ICL7107. The Pot is a Bourns 10 Turn. See <a href="http://www.delabs-circuits.com/cirdir/analog/analog2.html">Instrumentation Circuits</a>. Also See <a href="http://www.delabs-circuits.com/mailfaq/arc20050313.html">Millivolt Source</a>.<br/><br/></p>
<p>
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/tdpHfB2LNI8"/>
<param name="wmode" value="transparent"/>
<embed height="350" width="425" wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/tdpHfB2LNI8"/></object>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.delabs-circuits.com/amps-volts/2008/05/06/milliamp-meter-4-20-calibration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thumbwheel Switch</title>
		<link>http://www.delabs-circuits.com/amps-volts/2008/05/06/thumbwheel-switch/</link>
		<comments>http://www.delabs-circuits.com/amps-volts/2008/05/06/thumbwheel-switch/#comments</comments>
		<pubDate>Tue, 06 May 2008 02:25:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.delabs-circuits.com/amps-volts/2008/05/06/thumbwheel-switch/</guid>
		<description><![CDATA[This shows the operation of a thumbwheel switch, which has BCD output. It is used to Preset Values in Digital Instruments. Before Microcontrollers and RAM this was the Input device. Even now in industrial instrument this is a simple input device.Learn about switches here .. Types of Switches





]]></description>
			<content:encoded><![CDATA[<p>This shows the operation of a thumbwheel switch, which has BCD output. It is used to Preset Values in Digital Instruments. Before Microcontrollers and RAM this was the Input device. Even now in industrial instrument this is a simple input device.<br/><br/>Learn about switches here .. <a href="http://www.delabs-circuits.com/amps-volts/2007/05/04/types-of-switches/">Types of Switches</a><br/><br/><br />
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/PHT15h5t228"/>
<param name="wmode" value="transparent"/>
<embed height="350" width="425" wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/PHT15h5t228"/></object>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.delabs-circuits.com/amps-volts/2008/05/06/thumbwheel-switch/feed/</wfw:commentRss>
		</item>
		<item>
		<title>High Resistance Materials Tables</title>
		<link>http://www.delabs-circuits.com/amps-volts/2008/05/05/high-resistance-materials-tables/</link>
		<comments>http://www.delabs-circuits.com/amps-volts/2008/05/05/high-resistance-materials-tables/#comments</comments>
		<pubDate>Mon, 05 May 2008 16:22:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Electrical]]></category>

		<category><![CDATA[Reference]]></category>

		<guid isPermaLink="false">http://www.delabs-circuits.com/amps-volts/2008/05/05/high-resistance-materials-tables/</guid>
		<description><![CDATA[
Liquids



20 C
OHM
-M



min
max


Benzene
1011
1012


Transformer oil
1010
1013


Gasoline
1010
1013


Castor oil
108
1010


Acetone
104
105


Ethanol
104
105


Distilled water
103
104



Glass At High Temperature



200 C
OHM -M


Sodium Pyrex
2 * 106


Potassium Pyrex
8 * 109


Lead glass
2 * 1011



Effect Of Contamination On Surface Resistivity



70% RH
CONTAMINATED
CLEAN


Window glass
2 * 108
1012


Fused quartz
2 * 108
1013



Relation Of Resistivity With RH % And Temp



MATERIAL
70% RH 20 deg C
0% RH 100 deg C
0% RH 20 deg C


Marble
106 - 108
1010 - 1012
1012 - [...]]]></description>
			<content:encoded><![CDATA[<div class="Section1">
<h3><span>Liquids<br/><br/></span></h3>
<table cellpadding="1" width="500" cellspacing="1" border="0">
<tbody>
<tr>
<td align="left" valign="center"><strong><span>20 C</span></strong></td>
<td align="left" valign="center"><strong><span>OHM</span></strong></td>
<td align="left" valign="center"><strong><span>-M</span></strong></td>
</tr>
<tr>
<td align="left" valign="center"/>
<td align="left" valign="center"><em><span>min</span></em></td>
<td align="left" valign="center"><em><span>max</span></em></td>
</tr>
<tr>
<td align="left" valign="center">Benzene</td>
<td align="left" valign="center"><span>10<sup>11</sup></span></td>
<td align="left" valign="center"><span>10<sup>12</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Transformer oil</td>
<td align="left" valign="center"><span>10<sup>10</sup></span></td>
<td align="left" valign="center"><span>10<sup>13</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Gasoline</td>
<td align="left" valign="center"><span>10<sup>10</sup></span></td>
<td align="left" valign="center"><span>10<sup>13</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Castor oil</td>
<td align="left" valign="center"><span>10<sup>8</sup></span></td>
<td align="left" valign="center"><span>10<sup>10</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Acetone</td>
<td align="left" valign="center"><span>10<sup>4</sup></span></td>
<td align="left" valign="center"><span>10<sup>5</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Ethanol</td>
<td align="left" valign="center"><span>10<sup>4</sup></span></td>
<td align="left" valign="center"><span>10<sup>5</sup></span></td>
</tr>
<tr>
<td align="left" valign="center">Distilled water</td>
<td align="left" valign="center"><span>10<sup>3</sup></span></td>
<td align="left" valign="center"><span>10<sup>4</sup></span></td>
</tr>
</tbody>
</table>
<h3><span><br/>Glass At High Temperature</span></h3>
<table cellpadding="1" width="500" cellspacing="1" border="0">
<tbody>
<tr>
<td><strong><span>200 C</span></strong></td>
<td><strong><span>OHM -M</span></strong></td>
</tr>
<tr>
<td><span>Sodium Pyrex</span></td>
<td><span>2 * 10<sup>6</sup></span></td>
</tr>
<tr>
<td><span>Potassium Pyrex</span></td>
<td><span>8 * 10<sup>9</sup></span></td>
</tr>
<tr>
<td><span>Lead glass</span></td>
<td><span>2 * 10<sup>11</sup></span></td>
</tr>
</tbody>
</table>
<h3><span>Effect Of Contamination On Surface Resistivity</span></h3>
<table cellpadding="1" width="500" cellspacing="1" border="0">
<tbody>
<tr>
<td><strong><span>70% RH</span></strong></td>
<td><strong><span>CONTAMINATED</span></strong></td>
<td><strong><span>CLEAN</span></strong></td>
</tr>
<tr>
<td><span>Window glass</span></td>
<td><span>2 * 10</span><sup><span>8</span></sup></td>
<td><span>10</span><sup><span>12</span></sup></td>
</tr>
<tr>
<td><span>Fused quartz</span></td>
<td><span>2 * 10</span><sup><span>8</span></sup></td>
<td><span>10</span><sup><span>13</span></sup></td>
</tr>
</tbody>
</table>
<h3><span><br/>Relation Of Resistivity With RH % And Temp</span></h3>
<table cellpadding="1" width="500" cellspacing="1" border="0">
<tbody>
<tr>
<td><strong><span>MATERIAL</span></strong></td>
<td><strong><span>70% RH</span> <span>20 deg C</span></strong></td>
<td><strong><span>0% RH</span> <span>100 deg C</span></strong></td>
<td><strong><span>0% RH</span> <span>20 deg C</span></strong></td>
</tr>
<tr>
<td>Marble</td>
<td><span>10</span><sup><span>6 -</span></sup> <span>10</span><sup><span>8</span></sup></td>
<td><span>10</span><sup><span>10 -</span></sup> <span>10</span><sup><span>12</span></sup></td>
<td><span>10</span><sup><span>12 -</span></sup> <span>10</span><sup><span>14</span></sup></td>
</tr>
<tr>
<td>Wood</td>
<td><span>10</span><sup><span>6 -</span></sup> <span>10</span><sup><span>7</span></sup></td>
<td><span>10</span><sup><span>10 -</span></sup> <span>10</span><sup><span>12</span></sup></td>
<td><span>10</span><sup><span>11 -</span></sup> <span>10</span><sup><span>13</span></sup></td>
</tr>
<tr>
<td><span>Vulcanized fibers</span> <span>fibers</span></td>
<td><span>10</span><sup><span>6 -</span></sup> <span>10</span><sup><span>9</span></sup></td>
<td><span>10</span><sup><span>8 -</span></sup> <span>10</span><sup><span>9</span></sup></td>
<td><span>10</span><sup><span>11 -</span></sup> <span>10</span><sup><span>12</span></sup></td>
</tr>
<tr>
<td><span>MATERIALS</span></td>
<td colspan="3"><span>SOLIDS</span> <span>OHM -M</span></td>
</tr>
</tbody>
</table>
<h3><span><br/>Solids</span></h3>
<table cellpadding="1" width="500" cellspacing="1" border="0">
<tbody>
<tr>
<td><strong><span>MATERIALS</span></strong></td>
<td><strong><span>OHM -M</span></strong></td>
</tr>
<tr>
<td><span>Polyethylene</span></td>
<td><span>10<sup>17</sup></span></td>
</tr>
<tr>
<td><span>Poly propylene</span></td>
<td><span>10<sup>17</sup></span></td>
</tr>
<tr>
<td><span>PVC</span></td>
<td><span>10<sup>18</sup></span></td>
</tr>
<tr>
<td><span>Polyurethane</span></td>
<td><span>10<sup>15</sup></span></td>
</tr>
<tr>
<td><span>Asbestos fiber + phenol</span></td>
<td><span>10<sup>8</sup></span></td>
</tr>
<tr>
<td><span>Mica + phenol</span></td>
<td><span>10<sup>12</sup></span></td>
</tr>
<tr>
<td><span>Glass-fiber + polyester</span></td>
<td><span>10<sup>12</sup></span></td>
</tr>
<tr>
<td><span>Glass-fiber + epoxy</span></td>
<td><span>10<sup>14</sup></span></td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.delabs-circuits.com/amps-volts/2008/05/05/high-resistance-materials-tables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Design of a ADC Interface for Microcontroller.</title>
		<link>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-adc-interface-for-microcontroller/</link>
		<comments>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-adc-interface-for-microcontroller/#comments</comments>
		<pubDate>Thu, 01 May 2008 10:32:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Process Control]]></category>

		<guid isPermaLink="false">http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-adc-interface-for-microcontroller/</guid>
		<description><![CDATA[This is in continuation of the thread called &#8220;Design of a Thermocouple Amplifier&#8221; doc00023.html which is in the same section .
This is just a formatted-edited email thread exported from Eudora from my mailbox using the content concentrator. The circuits below were made by TF a student, This thread has been put online to share information.The [...]]]></description>
			<content:encoded><![CDATA[<p>This is in continuation of the thread called &#8220;Design of a Thermocouple Amplifier&#8221; doc00023.html which is in the same section .</p>
<p>This is just a formatted-edited email thread exported from Eudora from my mailbox using the content concentrator. The circuits below were made by TF a student, This thread has been put online to share information.<br/><br/>The part under &#8220;From: delabs&#8221; are my writing. there may be some mistakes and broken links.<br/><br/>Datasheets To Be Studied for this page.<br/><br/>AD590<br/><a href="http://www.physics.rutgers.edu/ugrad/327/Lab9Notes/AD590.pdf">physics.rutgers.edu - AD590.pdf</a> PDF from <a href="http://www.analog.com/">Analog Devices</a><br/><br/>MCP3002<br/><a href="http://ww1.microchip.com/downloads/en/DeviceDoc/21294b.pdf">microchip.com - 21294b.pdf</a> PDF</p>
<p>links markedPDF do not click as they are large in size, do right click save target.</p>
<p><strong>Circuits Drawn by the Student.</strong><br/><br/>1. <a href="http://www.delabs-circuits.com/cirdir/theory/tutors/adc1.gif">ADC Circuit</a>. - - See Image<br/><br/><br/><a href="http://www.delabs-circuits.com/cirdir/theory/tutors/adc1.gif"><img src="http://www.delabs-circuits.com/cirdir/theory/tutors/adc1.gif" title="ADC Circuit." height="378" width="510" alt="ADC Circuit." border="0"/></a></p>
<p><hr width="100%" align="left" size="2"/></p>
<p><strong>2. Power Supply Circuit.<br/></strong><br/><br/><img width="491" height="307" src="http://www.delabs-circuits.com/cirdir/theory/tutors/pow_ckt.gif"/></p>
<p><hr width="100%" align="left" size="2"/></p>
<p><strong>From: TF</strong><br/><br/></p>
<p>Now I will start working on the CTC and the ADC part.<br/></p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>Now it looks ok, use bases for all ICs, which ADC you are using ? Try to look at LTC1298 a 12 bit 2 channel, look at link below&#8230;.<br/><br/><a href="http://chaokhun.kmitl.ac.th/~kswichit/8051sbc/8051sbc.html">chaokhun.kmitl.ac.th/~kswichit - 8051sbc</a> I hope you study this site and other related.</p>
<p><hr/></p>
<p><strong>From: TF</strong></p>
<p>Thank you for the link. I am planning to use the following ADC ( MCP 3002,10 bit resolution ). Features 2 channels one for T/C input and the other for CTC compensation. Avlbl in mumbai for Rs. 70 /-.</p>
<p>I have attached the link to the .pdf in case you have time to glance through it. Your inputs would be very much appreciated and helpful. I have coded for devices in SPI hence I have planned to use this chip.</p>
<p>PDF</p>
<p><a href="http://ww1.microchip.com/downloads/en/DeviceDoc/21294b.pdf">microchip.com - 21294b.pdf</a></p>
<p>I am also planning to use TL431 along with a LM317 to make a 5V reference for the ADC which will also be used to power the rest of the circuits.I think this should be ok. The datasheet asks to use 0.1% resistors , is this avlbl in the market ?</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/><br/>The LTC1298 is also a serial device. But what you have chosen is good. TL431 is a good as a reference and that is sufficient for the circuit. What is the purpose of LM317, how do you plan to use it ?<br/><br/>The 0.1% resistors were available but were costly, i have no idea of the market now. What you need is a low ppm around 10-20 ppm for the resistors. The bourns 10 turn trimpots (Rs 10) can be used in place of 0.1% and trimmed.<br/><br/>what is important is temperature coefficient of components indicated in ppm. other measurements are relative and should be calibrated in reference to an absolute instrument. calibration is done by hardware with trimpots or software with the offset in eeprom.</p>
<p><hr/></p>
<p><strong>From: TF<br/></strong></p>
<p>I am planning to use the LM317 to make a precision power supply in conjunction with TL431. This can deliver 1.5 A.</p>
<p>I will use this to power the digital circuitry and the reference voltage for the ADC. I will use 78L09 / 79L09 for power to the Opamps or is 78L05 sufficient ?The reason why I ask this is , because op07 does not have a rail to rail swing and the datasheet does not say how much drop will be there for 5V.It only specifies for 15 V, Should we reduce the same proportionately ?</p>
<p><hr/></p>
<p><strong>From: delabs<br/></strong><br/>78L09 / 79L09 for power to the Opamps is sufficient, you cannot drive LEDs or Relays with 78Lxx as it will heat up and blow. a max of 100mA that is all you should load. if the unregulated is 9V then drop across regulator is 9 - 5 = 4V .<br/>4V * 100mA = 400mW = Pd that is what you look at and design.<br/><br/>for 5V OP07 will swing to +/- 3.5V only. it is 1.5 V less than rail. Use and ADC at 1/2 its supply voltage.<br/>If supply is 5V use ADC from 00mV to 2000mV do not use till 5V or you can adjust ADC for a Full scale of 2V if possible.</p>
<p><hr/></p>
<p><strong>From: TF</strong><br/></p>
<p>I am attaching two files for your kind perusal. One is the opamp circuitry and the other is the power supply.</p>
<p>I am using the OpAmp with a 9V rail supply so that I can tune it to give a FS output of 5V. I need to use the serial ADC at 5V , as the reference and the supply are the same for this ADC.So , since I will be interfacing with a 5V micro I can interface the SPI protocol witout buffers etc etc.</p>
<p>Also having a 5V gives a better noise margin for the ADC as compared to 2.5V is it not ? Or am I wrong ? Do you see any fatal flaws in my design so far ?</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>yes use a 7809 and 7909 or the L version. MCP3002 may need low value pull-ups like 4.7K, for interface to uC.<br/>These pull ups or a RC network prevent noise, and may be required. the CS pin is open, probably you still are working at it. practically try it out and see if you get any problems.<br/><br/>Power supply is ok, it seems incomplete, so i cant say much. LM317 output is 1.25V above the voltage at ADJ, do you know that. that means the adj must be at 3.75V, check the datasheet.<br/><br/>if the opamp swings to 9 - 1.5V the ADC will blow is it not. you have to use a clamping back to back zener 5.1V .</p>
<p><hr/></p>
<p><strong>From: TF</strong><br/></p>
<p>Thank you for your reply. I have attached the circuits for your reference. &#8221; MCP3002 may need low value pull-ups like 4.7K, for interface to uC. These pull ups or a RC network prevent noise, and may be required. the CS pin is open, probably you still are working at it. practically try it out and see if you get any problems. &#8220;</p>
<p>These will get directly connected to the SPI pins on the uC ( 89V51RD2 ). I saw a couple of reference designs , they have not used any pull ups. This is unlike the Philips I2C bus which needs the pull ups for proper operation.</p>
<p>Power supply is ok, it seems incomplete, so i cant say much. LM317 output is 1.25V above the voltage at ADJ, do you know that. that means the adj must be at 3.75V, check the datasheet.</p>
<p>I got the circuit for the same from the datasheet of TL431, where they have used the same in this configuration.I have used a 4uF ceramic for de-coupling.Other designs I saw had 4 * 0.1uF ceramic , 10uF electro in parallel,so I am replacing all with the 4uF ceramic. I am also adding a ceramic disc cap for the OpAmp power supply.</p>
<p>Why do you feel it is incomplete ?Please tell me if I am making any mistake.</p>
<p>if the opamp swings to 9 - 1.5V the ADC will blow is it not. you have to use a clamping back to back zener 5.1V . I have put the protection for the same now. I hope this is okay. Thank you very much for your wonderful help</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/><br/>The protection zener diodes are to be put after the resistor R12, Then R12 will limit the current load on opamps. and the ADC also is protected by clamping.<br/><br/>The way it has been put will now heat the opamp, this may not be that good. The opamp is say at 7.5 and zener conducts loading opamp.<br/><br/>The circuits are incomplete because parts details absent. IC1, IC2, Diodes and transformer, all have to be specified.<br/>show all input ports and output ports not junctions. like the transformer goes to a connector or port saying 230V AC.<br/>See if you can run an ERC and a get a Netlist from eagle.<br/><br/>Transformer like 3-0-3 50Hz 100mA Capacitor Like 10uF 63V</p>
<p><hr/></p>
<p><strong>From: TF</strong></p>
<p>Thank you for the design tip of putting the zener after the resistor. I have incorporated the same.Please give your view on whether the circuit is now suitable for assembly .I have also put all the parts list for the power circuitry.</p>
<p>I hope it is satisfactory.</p>
<p>Why should I do the netlist ? I am planning to assemble the circuit using a general purpose PCB manually. So the circuit drawing is only for this.If there is any use of doing the ERC , then I will do the same.</p>
<p>Kindly suggest.</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>Netlist and ERC are for learning to use the tools better. ERC and netlist can point out some schematic capture mistakes.<br/>Later you can make PCBs in a automated way. The PCB need not be made, but this can be used to check your work.<br/><br/>The AD590 circuit you made gives 1mV per deg kelvin. which comes to around 300mV for room temp 26 deg C according to this convertor. <a href="http://www.esbconsult.com/esbcalc/esbunitconv.html">esbconsult.com - esbcalc</a><br/><br/>The ADC MCP3002 is 10 bits that means 1024 counts right ? Then 5000mV / 1024 = 4.8mV that is the LSB resolution. then 300mV / 4.8mV = 62 counts digital data. 26 deg is around 62 data 0 deg is around 56 data<br/>62 - 56 = 6 steps and that is very bad resolution. you cannot resolve 1 deg C. This you should know.<br/><br/>Solution :<br/>Substract 273mV from the AD590 output and amplify difference using opamps. see the theory circuits here<br/><a href="http://www.delabs-circuits.com/cirdir/analog/analog4.html">Basic Opamp Circuits</a> and design, hint : sum +300mV to -273mV then it is a subtract.</p>
<p><hr/></p>
<p><strong>From: TF</strong></p>
<p>I understood your previous mail. The problem is that the voltage difference in the compensating circuit is not sufficient to provide adequate resolution when I feed it to the ADC, right ? So like you said we will have to amplify this further.<br/>So I have to revert back to the hardware compensation by feeding the voltage to the OpAmp circuitry as shown in the drawing. The advantage also is that I can go for a single channel serial ADC which will reduce the cost still further.<br/>I have drawn the schematic for your kind perusal. The problem I can foresee is how to do calibration using ice reference point. This is because the o/p from LM324B will now be negative which cannot be read by the ADC.<br/><br/>Am I completely on the wrong path ?? Total gain of the OpAmps: 23(adjustable) * 8 = 184. Room temp = 1.58 mV<br/>Output = 290 mV which can be equated to the reference from the AD590 Also I am using only 7805 and not 7809 and use these supplies for the micro and the reference voltage circuits also.This will keep the size of the board down and the costs down too.</p>
<p>Considering a maximum rail swing of 3.5 V.This means that the circuit can measure upto 650degC which is more than adequate. Also the negative of the T/C is getting grounded , will this lead to stray noise pickups? I am so sorry to trouble you like this but I do hope you will guide me to get the analog part right. I am more good at programming , but I want to get my concepts in analog also.</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>This circuit may help it was in the datasheet&#8230;<br/><br/><img width="411" height="551" src="http://www.delabs-circuits.com/cirdir/theory/tutors/cjc.gif"/><br/><br/>PDF<br/>datasheet is <a href="http://www.physics.rutgers.edu/ugrad/327/Lab9Notes/AD590.pdf">physics.rutgers.edu - AD590.pdf</a> The circuit you have drawn is wrong. you have to convert Kelvin to Centigrade. As the instrument you are making is in centigrade. that circuit is also present.<br/><br/><img width="366" height="221" src="http://www.delabs-circuits.com/cirdir/theory/tutors/kelvin-centigrade.gif"/><br/><br/>change the 97.6K to 10K to get 10mV per deg C, feed this to channel two.</p>
<p><hr/></p>
<p><strong>From: TF</strong></p>
<p>I have remodified the circuit by using one more OP07. This I am not very happy as it does not seem to be the right way to do it.Kindly have a look at the circuit. I have made an amplification of 10 so that Deg. Amplified o/p ADC bits<br/>0deg 2.73 V 569 bits 26 deg 2.99 V 625 bits ( 56 bits ) This is giving a precision of 0.5 degrees. Assuming a maximum ambient temperature of 40deg the op will swing to 3.13 V which will be within the OP07 for an rail input of 5V.<br/>I will calibrate with a ice bath for 0deg or use a mV generator to calibrate this.Then the software can be made to offset the value which is read to set the zero point.</p>
<p>Is there any commercial precision quad opamp which can be used to replace the two OP07 and the one LM324 with one chip, which comes to your mind. Thank you for your patience.</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>Please use this circuit for your second channel of ADC. Nothing else will do&#8230;&#8230;..try to study this circuit. you have not understood the point. So i have made the circuit use it for second channel.<br/><br/><a href="http://www.delabs-circuits.com/cirdir/theory/tutors/del10009.gif">Zoom Circuit</a><br/><a href="http://www.delabs-circuits.com/cirdir/theory/tutors/del10009.gif"><img width="510" alt="del10009.gif" height="318" border="0" src="http://www.delabs-circuits.com/cirdir/theory/tutors/del10009.gif"/></a></p>
<p><br/></p>
<p><hr/></p>
<p><strong>From: TF</strong></p>
<p>Thank you for you circuit. I have studied it and my understanding is as follows :<br/>The voltage at the point 1 of R4 will be : Vo=( 1+ ( 1/2.2)) * Vref = 3.5V. This is from datasheet of TL431.<br/>So total voltage across AD590 is 3.5-(-5) = 8.5V Going by figure 5 of the AD590 the Iout of the device is independant of the voltage across the device. So why have we done this configuration ??</p>
<p><br/>Also there seems to be an error as the voltage at anode of the AD590 is fed directly to the non inverting pin of the OP07 which means the gain is infinity as per the formula given in the non-inverting amplifier : Vout=Vin*(-1)*(rf/ri) where ri=0. So if we remove the short then Zero Adj poti R5 become Ri but in this case the gain will get adjusted by both R2 and R5 whenever any changes are made.</p>
<p>Also since this is a non inverting input the output from the OpAmp is negative which will be a problem for the ADC.</p>
<p>Sir I cannot use your circuit unless I understand the operation. Can you please mail me a small explanantion? Can I give you a call on any number so that I may get my doubts clarified by calling you up at your convenience ? I know this has been a long drain on your time. Request you kind patience.</p>
<p><hr/></p>
<p><strong>From: delabs</strong><br/></p>
<p>yes you are right The voltage at the point 1 of R4 will be : Vo=( 1+ ( 1/2.2)) * Vref = 3.5V it is 3.63 &#8230;.as nominal ref is 2.5V<br/><br/>But i have made a mistake here ! R6 is not 1K but 10K and R8 is not 2.2K but 22K. Because if it is 1K + 2.2K it will need a smaller R3, so this change has to be made.<br/><br/>now for the rest of the circuit which is based on the AD590 datasheet application note.<br/><br/>AD590 is a current source which gives 1 uA / kelvin It is independent of the voltage across the device. you can treat it like a current source or sink or impedance.<br/><br/>Anyway total voltage across AD590 is 5V. as opamp pin 2 is at virtual ground. You did not study the opamp fundamentals link i sent you. anyway i will explain it again for you.<br/><br/>This is the way you try to understand the design. The AD590 here is a constant current sink as cathode goes to -5.<br/>The current it sucks away or drains from node pin 2 of OP07 is 1uA/ kelvin. at 0 deg C the current drained is 273 uA at 26 deg C it is 300uA.<br/><br/>In your earlier circuit the AD590 was a current source. The uA was fed into a 1K resistor so output was 273mV and 300mV. as V = I * R. for 0 Deg C and 26 deg C respectively. you know according to theory that the amount of current entering the node, is equal to the amount of current leaving the node. do not look at voltages now, look at the currents.<br/><br/>Now as i was saying earlier the AD590 drinks 273uA from Node pin 2 of OP07 at 0 deg C. Now no current can come from opamp OP07 pin 2 as resistance is in giga ohms and leakage in pico amps. now the pot R5 and resistor R4 are just in series and connected to 3.63 V as established earlier. The TL431 is a shunt regulator with reference and has a low impedence. Now the R5 + R4 combination should not load the TL431, that is not the case as 3.6 / 10K = 360uA .<br/>now by varying R5 pot you can pump 3.6 / 10K = 360uA down to 130uA when R5 is max into node pin 2 of OP07.<br/>This pot will be calibrated with AD590 in ICE to give a 0 mV output of the Op07. When calibrated R5+R4 pump 273 uA into node pin 2 of op07. this is sucked away by the AD590 which is draining 273uA at 0 deg C. This leaves the pin 2 at zero potential as currents leaving = currents entering.<br/><br/>Now to understand the opamp functioning.. The pin 2 of opamp is a 0 potential as calculated above and pin 3 also is at zero pulled down by R7. Now as both inputs are at same potential the output of opamp also is zero. The feedback resistors R1 and R2 will carry no current as both their ends are at 0. the Vout is now 0 mV and AD590 is on a block of ICE and opamp is stable.<br/><br/>If pin 2 (-) becomes more dominant or positive than pin 3 (+) the output swings negative. If pin 3 (+) becomes more dominant or positive than pin 2 (-) the output swings positive. The opamp on feedback tries to maintain both the inputs at the same potential. This thumb rule can be used to make opamp oscillate, amplify or compute.<br/><br/>Now what happens when the AD590 is removed from the block of ICE. It comes to room temperature say 26 deg C which means 300uA.<br/><br/>Now the AD590 demands to draw 300uA from node pin 2 of OP07. The R4 + R5 from 3.6 V can give 273uA as it is fixed, not a uA more. The rest which is 300 - 273 = 27uA leads to a drop in potential at pin 2 and it turns negative.<br/>as demand is greater than supply. which makes pin 3 which is at zero more positive than pin 2. ( theory : 0 is positive compared to -1) as pin 3 is more dominant opamp swings positive as per thumb rule. and a current starts flowing thru R1 + R2 till the current reaches 27uA. at this point the extra current 27uA drawn by AD590 is supplied by opamp thru R1+R2. The Pin 2 now comes to 0 as currents leaving = currents entering.<br/><br/>At this point the voltage at opamp output is given by ( R1 + R2 ) * 27uA = 270mV (assume R1+R2 is 10K after calibration) now opamp gives 10mV per deg C. as opamp now is a closed loop control the rise and fall in temperature,<br/>results in AD590 current variation which produces a proportional OP07 output.<br/><br/>Now the explanation above is in steps but all that happens in real time in an instant. tell me now what ever doubts you have after studying this and analyzing circuit many times. I may be unable to help you much unless you put in the required study effort.</p>
<p><hr/></p>
<p><strong>From: TF</strong><br/><br/></p>
<p>I have been studying your circuit. I have understood thoroughly the part about the op-amp. This is an eye opening configuration.</p>
<p>1) Have you increased R6 and R8 to ensure the minimum current of 1mA through TL431 ? If so what is the calculation ? Or is it just empricial ?<br/>2) The AD590 K is connected to -5V to ensure the potential drop of 5V across the AD590. This you have mentioned is because the non inverting of OpAmp is a virtual ground.I did not understand this point only. Since the I/P impedence of an OpAmp is very high , I assumed that it is floating and not at any potential ? If this point is cleared out then circuit is crystal clear thanks to your fabulous explanation.<br/>3) One more thing remains of generating a 5V ref voltage for the ADC. I cannot use the 7805 output because the absolute value and the drift will make the ADC conversion unreliable. My idea is to use another TL431 and calibrate it for 4V and use it for Vref.Then the firmware can be written to give the output pro rata. This is because the OpAmps will anyway swing to a MAx of 3.5V only.Am i ok on this ?<br/>4)The circuit I had drawn with the AD590 as the source , what is the error in that design ?Because the current from the source is dropped across the burden resistors to get a proportional voltage.<br/>Can you reccomend any good text books / design papers to help us to thorughly understand op-amp circuits ?</p>
<p>Thank you sir for your fabulous mentoring. We appreciate it a lot.</p>
<p><hr/></p>
<p><strong>From: delabs</strong></p>
<p>I have been studying your circuit. I have understood thoroughly the part about the op-amp. This is an eye opening configuration.<br/>1) Have you increased R6 and R8 to ensure the minimum current of 1mA through TL431 ? If so what is the calculation ? Or is it just empricial ?</p>
<p>yes you are right, it is empirical, only the 1mA is important and the ratio of R6-R8 so as to get around 3.5V</p>
<p>2) The AD590 K is connected to -5V to ensure the potential drop of 5V across the AD590. This you have mentioned is because the non inverting of OpAmp is a virtual ground.I did not understand this point only. Since the I/P impedence of an OpAmp is very high , I assumed that it is floating and not at any potential ? If this point is cleared out then circuit is crystal clear thanks to your fabulous explanation.</p>
<p>AD590 is a current source a bias of 4V to 30V required so that it sinks or sources current depending on polarity.<br/><br/>The AD590 acts like a water tap and a trickle of current is at pin 2 which is at virtual ground due to feedback from opamp output. Virtual ground means if you measure the voltage at that point with DMM it will be zero yet it is not the real low impedance ground of your power supply. But pin 3 of opamp can be connected to real ground or thru a resistor.</p>
<p>3) One more thing remains of generating a 5V ref voltage for the ADC. I cannot use the 7805 output because the absolute value and the drift will make the ADC conversion unreliable. My idea is to use another TL431 and calibrate it for 4V and use it for Vref.Then the firmware can be written to give the output pro rata. This is because the OpAmps will anyway swing to a MAx of 3.5V only.Am i ok on this ?</p>
<p>You need 5V supply as the uC 8951 also works on 5V and the two have to work together, voltage levels must be same. The rest is ok.</p>
<p>4)The circuit I had drawn with the AD590 as the source , what is the error in that design ?Because the current from the source is dropped across the burden resistors to get a proportional voltage. there is no error only the output of that circuit is in Kelvin you need Celsius to get good resolution as explained earlier.</p>
<p>Can you reccomend any good text books / design papers to help us to thorughly understand op-amp circuits ?<br/>Thank you sir for your fabulous mentoring. We appreciate it a lot.</p>
<p>you have to go to a bookstore and have a look, see at amazon.com or you need to search with multiple keywords in google. google is also adding a new service in which you can search thru a collection of books and buy what you want. Also look at national semiconductor and analog devices application notes before you star a design.<br/><br/>see these links<br/><a href="http://dmoz.org/Science/Technology/Electronics">dmoz links electronics</a> | <a href="http://www.electronics-tutorials.com/">electronics tutorials</a> | <a href="http://www.educypedia.org/electronics/electronicaopening.htm">Educypedia</a> | <a href="http://www.artofelectronics.com/">art of electronics</a> | <a href="http://www.national.com/apnotes/GeneralPurpose.html">analog amplifiers</a> | <a href="http://www.ti.com/sc/docs/psheets/appnote.htm">TI applications</a> | <a href="http://www.circuitsage.com/">Circuit Sage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-adc-interface-for-microcontroller/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Design of a Constant Current Source</title>
		<link>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-constant-current-source/</link>
		<comments>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-constant-current-source/#comments</comments>
		<pubDate>Thu, 01 May 2008 00:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design and Development]]></category>

		<guid isPermaLink="false">http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-constant-current-source/</guid>
		<description><![CDATA[This article will explain the way a simple transistor based current source is designed, this will give an idea on how some components can be used in a practical way to make the circuit do some function, the objective is not design but to become familiar with the basic ideas.Requirement.
We need a fixed current around [...]]]></description>
			<content:encoded><![CDATA[<p>This article will explain the way a simple transistor based current source is designed, this will give an idea on how some components can be used in a practical way to make the circuit do some function, the objective is not design but to become familiar with the basic ideas.<br/><br/><strong>Requirement.</strong></p>
<p>We need a fixed current around 20mA for a voltage variation of 10V to 20V to drive a LED flasher circuit.</p>
<p>Component Selection. <img src="http://www.delabs-circuits.com/cirdir/theory/tutors/TO-92.gif" align="right" height="176" width="138" vspace="10" hspace="10"/> The transistor should handle 20V * 2 = 40V and a current of 20mA * 5 = 100mA. We have to overrate the components for long term reliability and make the design rugged. Chosen MPSA92 PNP-300V-500mA which is good for this job. Look at the pin details of MPSA92 in the bottom view given in the right of this page in its TO-92 package, it has a beta of 25 . The Power dissipation of MPSA92 can be upto 650mW , our requirement may be a max of 20V*20mA = 400mW which is just within limits.<br/><br/>Now we need a voltage reference a low cost voltage reference is a LED which has a 1.6V forward drop. As the circuit is a not an accurate one CFR 5% resistors are fine.</p>
<p><strong>Circuit design.</strong></p>
<p>The LED at 40mW will last long, some energy emits as heat and some as light. 40mW / 1.6V = 25mA. so let us choose 20mA max LED current as a thumb rule.</p>
<p><img src="http://www.delabs-circuits.com/cirdir/theory/tutors/del00016b.gif" align="right" height="472" width="357" vspace="10" hspace="10"/></p>
<p>In this circuit the LED is used as a reference so to keep it cool a 2.2K is chosen. (20V - 1.6V) / 2.2K = 8.3mA on the high side and when voltage is 10V the current will be 3.8mA min. .</p>
<p>You should know that the LED forward drop can change with ambient light as it is photo sensitive and will vary with temperature.</p>
<p>Look at the circuit in the right, the LED has a forward drop of 1.6V which is applied across the resistor R4 and the base-emitter diode. That means 1V across R4 as a diode drop is around 0.6V. The base-emmiter now gets forward biased and a small base current Ib flows . The Ic or collector current is 1V / 50E = 20mA. The Ib = Ic / beta, That means 20mA / 25 = 0.8mA which flows thru R4 and R5.</p>
<p>The Load Resistor R6 represents the LED flasher circuit that consumes 20mA, even on short circuit of R6 the current is limited to 20mA.</p>
<p>When more current flows in R6 the voltage at emitter falls, the voltage at base is 20V - 1.6V =18.4V, and the voltage at emitter should be 18.4 + 0.6V = 19V for bias and Ibto flow. When Ic increases the Ib reduces to that extent as only to maintain emitter voltage at 19V, this way Ic is kept constant, if Ic reduces the voltage at emitter builds up to rise Ibwhich in turn builds up Ic. so we made a current regulator.</p>
<p><strong>Circuit Improvement.</strong></p>
<p>The circuit can be improved by using a zener in place of the LED or better still a temperature compensated reference like LM336.</p>
<p><img src="http://www.delabs-circuits.com/cirdir/theory/tutors/del00016a.gif" align="right" height="471" width="337" vspace="10" hspace="10"/></p>
<p>The circuit on the right will be more stable, but still the forward drop on base-emmiter junction is temperature sensitive. The base current will also introduce an error, so you can get a 8 bit stability, that means around 255 counts on an A-D converter. If you need a more stable current source you should design with FET and opamps.</p>
<p><a href="http://www.national.com/ds/LM/LM136-2.5.pdf">LM336-2.5</a> pdf details, It has a 2.5V drop. A <a href="http://www.national.com/ds/LM/LM136-5.0.pdf">LM336-5.0</a> pdf version is also available for 5V. these are from <a href="http://www.national.com/catalog">National Semiconductor</a>.</p>
<p>Operating Current of LM336 is 400uA to 10mA, 20V The max. voltage 20V / 3.3K = 6mA. so within limits. Then you can compute the rest, wire it up to see if your design works.</p>
<p>&#8220;If all parts are working, connected in proper polarities and there are no dry solders and loose connections then any circuit well designed ought to work. &#8220;<br/>- <em>Solderman 1702</em></p>
<p><img width="58" height="63" src="http://www.delabs-circuits.com/cirdir/theory/tutors/solderman.gif"/></p>
<p>docc00009.html 21:46 01-Aug-04 anantha narayan delabs india</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delabs-circuits.com/amps-volts/2008/05/01/design-of-a-constant-current-source/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
