Shop OBEX P1 Docs P2 Docs Learn Events
Question about voltage measurment — Parallax Forums

Question about voltage measurment

Brian218Brian218 Posts: 92
edited 2007-11-03 20:34 in General Discussion
Hi,

I'm new to programming the SX, and am attempting to·build a simple temperature measuring circuit,·in order to better learn·SX/B programming.

I',m using a LM34DZ as the temperature sensor; the LM34DZ's output voltage changes by 10 mV for each degree (fahrenheit).

1. Is there any way for the SX to directly measure the change in voltage, or Can the sensor's output voltage be scaled in a similar·manner to the·way a POT. is scaled? If not, what would be the best way to measure the voltage?

BTW this is a great site!

Thanks in advance
B-

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-11-03 19:46
    Have you read the SX/B online Help?· Therein we read, "Using the Analog Comparator·-- I/O pins 0 through 2 in port B can be set for comparator operation."

    Whatever else that you want to do and haven't mentioned would go far in helping answer·your question.
  • JonnyMacJonnyMac Posts: 9,216
    edited 2007-11-03 20:15
    Following on PJ's suggestion... there's a simple experiment in the SX/B help file that shows how to turn the comparator into a a simple ADC using a PWM output from another pins -- it's in the Example Projects section. If you need more resolution you could use an external ADC like the LTC1298.
  • Brian218Brian218 Posts: 92
    edited 2007-11-03 20:34
    Thanks for both replies, it looks like that was exactly what I'm looking for.

    B-
Sign In or Register to comment.