Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

wHATS THE DIFFERENCE IN SCHEMATICS

Status
Not open for further replies.

MrDEB

Well-Known Member
I have assembled a constant current source using an LM317 but the schematic was described as a disaster but why??
It appears to work as planned. R1 in my circuit adjusts the ADC for the RTD temperature sensor.
My as built schematic is the one on the right.
 
I can't tell what you want to do with R1. Are you trying to adjust the current?
 
Here is the RTD sensor section

As I understand it I only want 1ma to the RTD to avoid self heating issues.
The circuit as pictured seems to work. Adjusting the pot I get various ADC readings which IMO would indicate the circuit as pictured works.
BUT I was told that the circuit pertaining to the LM317 is a disaster if referring to the data sheet?
 
The circuit is supposed to be a constant current source. The value of R2 should be adjusted to change the current.

Adding R1 allows the constant current source to saturate (like two diodes in series with R2) so it is not a constant current source anymore.
 
Last edited:
I don't want to be able to adjust the current, just the output voltage as it is connected to the RTD/ADC input.
I need more research?
simulated using TINA but?
 
A constant current source keeps the current constant by adjusting its output voltage up and down.
If you want the output voltage to be constant but adjusted by you then remove the constant current source and replace it with an adjustable voltage reference or adjustable voltage regulator.
 
Here is the simulation using TINA

I can change the ADC input from -9.74v (RTD=58) to -31.53(RTD=200)
The current varies from -171ma to -171ma at AM1
what am I missing?
I don't have a LM317 to sim but the schematic is supposed to be a CCS.
Maybe the simulation is wrong?
 
As I understand it I only want 1ma to the RTD to avoid self heating issues.
The circuit as pictured seems to work. Adjusting the pot I get various ADC readings which IMO would indicate the circuit as pictured works.
BUT I was told that the circuit pertaining to the LM317 is a disaster if referring to the data sheet?
It is. The LM317 has a minimum current draw of either 5mA or 10mA depending on which version. You can't set up a design which only draws 1mA or it will not work right.
 
Last edited:
So in other words I need to use lower resistance on the LM317 output to obtain a draw of 5-10ma. But then need to worry about self heating of the RTD?
Need a better solution? but it seems to work as is but might not be right?
The LM317 was suggested on another forum. I guess I was lead down the wrong path on using the LM317?
 
Each IC is different. Some LM317 ICs need a minimum load of a couple of mA but the max is 10mA for some of them.
If the load current is not enough for your IC then its output voltage will rise.
 
MrDBE said:
I guess I was lead down the wrong path on using the LM317?

No, the LM317 is fine. Try this:

View attachment 60882

Just ditch R2, replace R2 with R1 (probably don't need R3, but leave it for now and see).

Then tie the juncture of R1 and R3 to the A/D input on the PIC.

Adjust R1 for appropriate output of RTD at a known temp.

Remember that the LM317 has a minimum load current of around 3.5 to 10mA: less than that will result in squirrelly values from the RTD.

Don't know what RTD you're using but there ought to be info on it's response to current versus heating.

That ought to work.
 
Last edited:
Thanks cowboy bob I will give it a try.
As far as appropriate RTD I have no clue as its in a Hakko soldering iron.
At room temp it measures about 58 ohms.
contemplating sticking it in freezer to obtain 0C then maybe graph out a temp curve?
room temp I measure using schematic I posted I get 79mv at RT and 130mv at solder melt which is around 370F.
 
Interesting circuit I found

This I found searching the web. It is in the lm324 data sheet.
The output is very low current .
thinking of using the lm317 as ref voltage of maybe the pic has a ref voltage source (more research).
this circuit is very similar to the one that the Hakko soldering iron uses.
 

Attachments

  • hakko schematic.png
    hakko schematic.png
    53.5 KB · Views: 627
  • constant ciurrent source.png
    0 bytes · Views: 5
  • op amp ccs.png
    0 bytes · Views: 6
Using the LM324 and Hakko schematic

I may have stumbled on the circuit I can use and I have all the parts on hand.
RTD resistance = 50 ADC input = 624mv Current at AM1 = 831ua

RTD resistance = 200 ADC input = 645mv Current at AM1 = 831
Looks good but??
Thinking using the Vcc or perhaps an LM317 set for 4volts or so.
 
R3 in your current source circuit is supposed to have a constant voltage across it so it can create a constant current. But you have its voltage and current being changed by the pot. So connect R3 directly to the +5V regulated supply instead like this:
 
Ah yes I see where my mistake was. Wasn't thinking at 11pm last night.
now to figure out a better constant voltage source seeing how the Vcc powering the rest of the circuit may vary some maybe? or just don't worry about it.
 
now to figure out a better constant voltage source seeing how the Vcc powering the rest of the circuit may vary some maybe? or just don't worry about it.
If you use a 5V regulator IC and the load current does not exceed about 600mA then the 5V will not change.
 
MrDEB,

Could you let us know in what sort of system the RTD is being used as a monitor?

I see that in it's former life, the RTD was used to monitor a soldering iron's temperature. This implies a rather broad hysteresis in control and, as a result, none too tight a requirement for a rock steady power supply for the RTD (not to mention no real concern for current related heating of the RTD).

Just asking.
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top