Thermisistor!!!!!
bomber
Posts: 297
Recently, I was mesing around with a computer power supply, and after tripping a circuit breaker by accidentally touching the chopper transistor's heatsink, I thought that I should just use that baby for parts. I started looking around and on the heatsink (that was NOT the chopper's heatsink) I found a part that looked like a small blue capacitor. It was a thermesistor!!!!!! I hooked up the circuit (the circuit uses a 555 running so that a resistance between pins 2 and 3 wil change the output frequency) , and used the code below to measure the outcoming pulses. After doing some math in the pogram, I was ready to go.
Code:
' {$STAMP BS2}
' {$PBASIC 2.5}
temp VAR Word ' variable to hold temperature.
DO
COUNT 0, 250 ,temp ' count the number of pulses in 1/4 of a second
temp = temp / 4 'calibration: divide by 4
temp = temp - 5 'calibration: subtract 5
DEBUG CLS,? temp ' display temp
LOOP
Code:
' {$STAMP BS2}
' {$PBASIC 2.5}
temp VAR Word ' variable to hold temperature.
DO
COUNT 0, 250 ,temp ' count the number of pulses in 1/4 of a second
temp = temp / 4 'calibration: divide by 4
temp = temp - 5 'calibration: subtract 5
DEBUG CLS,? temp ' display temp
LOOP
Comments
hope this helps
Jeff T.
thanks
Jeff T.