PDA

View Full Version : temp sensor and a/d converter on bs2 project need help



betaboy
02-14-2005, 07:20 AM
i need help on writing a program

im using a lm335 temp sensor,
and a ad0804 a/d converter,
and a bs2 microcontroller

i want it to detect the temp and display in debug terminal
can anyone help me?

MacGeek117
02-14-2005, 07:43 AM
Please post your ideas.
bugg

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I know what I'm doing...

betaboy
02-14-2005, 07:49 AM
i want it to detect the current temp using the sensor, then compare it to the reference temp (i don't know what that should be), if it is higher than the reference temp sound an alarm. since the sensor output is analog, im using an analog/digital converter adc0804 chip that outputs digitally to the bs2
i cant figure out how to put that in pbasic.
can u help me

MacGeek117
02-14-2005, 07:51 AM
look at the Help Guide on the Basic Stamp Editor.
bugg

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I know what I'm doing...
...Maybe...

betaboy
02-14-2005, 07:55 AM
would they have those exact parts being used?
ˇ

MacGeek117
02-14-2005, 08:01 AM
They should have the basic(excuse the pun...)program that you will be using.
bugg

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I know what I'm doing...
...Maybe...

betaboy
02-14-2005, 08:48 AM
im a newbie,



can u please talk me through program for this?

Chris Savage
02-14-2005, 10:07 AM
Betaboy,

ˇˇ If you simply want to read/display the current temp, and set an alarm when it exceeds a preset temp, you might consider using the DS1620.ˇ It has that capability built-in, and there's free text on how to use it on the Parallax website under "Stampworks."ˇ There are also alot of projects using a BASIC Stamp and DS1620 found on Google.



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--==<{Chris}>==--

betaboy
02-16-2005, 11:58 AM
i dont have that option

im stuck with these parts

Chris Savage
02-17-2005, 05:50 AM
Okay, just a thought.ˇ I don't have those particular parts, but I am going to assumeˇthey're similiar to other comparable parts.ˇ It shouldn't be too hard to find some example code for interfacing something like an LM34 to an ADC0831.ˇ That could get you started.ˇ Good luck!



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--==<{Chris}>==--