temperature sensor to 10 bit ADC - Home Brew Forums
Home Brew Forums > Home Brewing Beer > Electric Brewing > temperature sensor to 10 bit ADC

Reply
 
Thread Tools
Old 12-07-2010, 04:28 PM   #1
cheese
Recipes 
 
Nov 2008
Israel
Posts: 90
Liked 3 Times on 3 Posts



Hi,

I'm trying to automate my brewery and using this board.

It's usb powered and has a 10 bit adc input among other IO's.


Which temperature sensor do you think will fit this board?


I was thinking of LM35/34 but wasn't sure if the usb voltage supply is stable enough for it.



Thanks,
Royi



 
Reply With Quote
Old 12-07-2010, 05:33 PM   #2
Quaffer
Recipes 
 
Dec 2008
Snohomish, WA
Posts: 418
Liked 29 Times on 15 Posts


Quote:
Originally Posted by cheese View Post
I was thinking of LM35/34 but wasn't sure if the usb voltage supply is stable enough for it.
That should work. It is not clear, however, what the input voltage range of the ADC is. You may have less than 10 bit resolution for your temperature range.

I would try it with the 5V source from the board. If it is too noisy or have drift you will need to provide a more stable supply. Try doing other things with the computer and see if the temperature reading fluctuates. Generally, computer power supplies (which this is) tend to be rather noisy when used for data acquisition. Since the board receives 5V from the USB port there is no headroom to regulate the 5V output on the board. There appears to be a regulator in the bottom left of the board, but it must be for a lower voltage used internally only. The LM34/35 temp sensors require at least 5V supply.


__________________
Alcohol, the source of - and solution to - all of life’s problems. H.J.S.
My keezer, My E-brewery build thread, How I soldered 1" nut for heater

 
Reply With Quote
Old 12-07-2010, 08:23 PM   #3
jkarp
Recipes 
 
Jun 2008
Elizabeth, CO
Posts: 2,108
Liked 44 Times on 34 Posts


LM35 supports down to 4V. In my experience, these aren't that sensitive to Vs. Certainly nothing a cap or two couldn't handle. You could also average out any noisy readings in your code.

 
Reply With Quote
Old 12-07-2010, 11:20 PM   #4
Quaffer
Recipes 
 
Dec 2008
Snohomish, WA
Posts: 418
Liked 29 Times on 15 Posts


Quote:
Originally Posted by jkarp View Post
LM35 supports down to 4V.
That's weird. I just now realized that LM35 can indeed go as low as 4V while LM34 needs 5V. I guess it has to do with the numerical difference of Fahrenheit vs. Celsius.
__________________
Alcohol, the source of - and solution to - all of life’s problems. H.J.S.
My keezer, My E-brewery build thread, How I soldered 1" nut for heater

 
Reply With Quote
Old 12-08-2010, 08:08 AM   #5
cheese
Recipes 
 
Nov 2008
Israel
Posts: 90
Liked 3 Times on 3 Posts


Thanks, Guys

I'll try it and update.

National suggests to add capacitor and/or resistor in some cases , Do you think I need that?

 
Reply With Quote
Old 12-13-2010, 06:21 AM   #6
cheese
Recipes 
 
Nov 2008
Israel
Posts: 90
Liked 3 Times on 3 Posts


I've connected the LM35 to Vdd, Gnd and one of the ADC inputs.
It got very hot in a few secs and then the board automatically turned off.

tried that with 2 sensors, same thing.

Any suggestions?

 
Reply With Quote
Old 12-13-2010, 12:46 PM   #7
jkarp
Recipes 
 
Jun 2008
Elizabeth, CO
Posts: 2,108
Liked 44 Times on 34 Posts


Can you sketch out your circuit?

 
Reply With Quote
Old 12-13-2010, 04:33 PM   #8
Quaffer
Recipes 
 
Dec 2008
Snohomish, WA
Posts: 418
Liked 29 Times on 15 Posts


Yes, a sketch would really help. In the mean time check that you don't have the VDD and GND pins swapped. That would make it heat up quick.
__________________
Alcohol, the source of - and solution to - all of life’s problems. H.J.S.
My keezer, My E-brewery build thread, How I soldered 1" nut for heater

 
Reply With Quote
Old 12-13-2010, 07:57 PM   #9
cheese
Recipes 
 
Nov 2008
Israel
Posts: 90
Liked 3 Times on 3 Posts


pretty strait forward ,
I double checked the pins, but now I'm that positive...

 
Reply With Quote
Old 12-14-2010, 07:22 PM   #10
Quaffer
Recipes 
 
Dec 2008
Snohomish, WA
Posts: 418
Liked 29 Times on 15 Posts


Quote:
Originally Posted by cheese View Post
pretty strait forward ,
I double checked the pins, but now I'm that positive...
Your sketch looks OK. It is so simple it is hard to see what can go wrong. Well, there is one thing that still could be wrong, but you already checked the pinout. Do you understand that the pinout drawing is the view from the bottom of the sensor? If you think it is the top view then Vs+ and GND pins will indeed be reversed. Look at the data sheet again, compare to your part. That's the only thing I can think of now.


__________________
Alcohol, the source of - and solution to - all of life’s problems. H.J.S.
My keezer, My E-brewery build thread, How I soldered 1" nut for heater

 
Reply With Quote
Reply
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fermentation Temperature Controller Sanity Check bacampbe Electric Brewing 6 01-24-2015 04:52 AM


Forum Jump