Tuesday, July 10, 2012

Extending the digital temperature sensor

This was the really difficult part with my last analog sensor, which was analog. Anything beyond being plugged directly into the Arduino would cause the sensor to give me all sorts of unreliable readings. This digital sensor is supposedly immune to this issue, which is why it costs $4 instead of $2 like the analog sensor. The only thing I'm not quite sure about is the pull-up resistor that needs to go between pins 2 and 3 (basically connect pins 2 and 3 via a 4.7K resistor). I'm guessing it needs to happen where the pins enter the Arduino and not up near the sensor itself. Hopefully I'm right.

In terms of the larger plan, this step will allow me to measure the temperature of the water coming out of my sink, and the servos will adjust it to compensate for changes. Once it's all working, I should be able to move the apparatus to my shower! Of course, then I'll have to deal with waterproofing, loosening up the knobs so the servos can turn them, and a few other things.

But first things first: I'm going to extend the new digital temp sensor about 18 inches.

Update: I did it! Although I haven't tested it yet. I took two twisted pair strands from a solid-core ethernet cable, twisted them together, and attached the sensor to the end. It's a little stiff, but it should conduct really well. I'll let you know when I start testing it. The step after that will be to attach it to my sink!!

No comments:

Post a Comment