Sunday, May 13, 2012

A real test with real water!

I managed to get the setup to a point where I could run water from the bathroom sink over the sensor and control the flow with the servo! The only issue was that (hopefully) due to the plastic over the sensor, it took a few seconds for the sensor to register change. During that time, the unit would compensate by turning the knob. However, it was adjusting so far ahead of what it was detecting that by the time it sensed that the temperature was correct, it had adjusted too far. When the temperature kept changing beyond what it was expecting, it started correcting in the opposite direction - again, much too fast for the sensor to keep up. So what ended up happening was the servo would move the temperature back and forth between freezing and burning over and over.

Luckily, the fix for this is easy enough: increase the time it waits to detect a change. I'd also like to brace the servo so I don't have to hold it in order to keep it from turning freely when it's trying to turn the knob. Lastly, I want to use some cables or other robust hardware to make this thing less fragile. I'll report back when I've done some of these things.

No comments:

Post a Comment