Tuesday, May 8, 2012

More steps

Since last post, I've added a "desired temperature" variable, which I arbitrarily set to 22 because that's the ambient air temperature here. I set the servo to rotate +5 degrees per second if the sensor detected less than the desired temperature, and -5 degrees per second if the sensor was more than the desired temperature. I also had to set limits on its movement or else it would hit its own physical limits and start grinding. It worked! All I had to do was warm it up with my fingers or cool it by blowing on it, and it compensated. Ok, awesome. What's next?

My next step is to get it to recognize user input. I think a potentiometer will be the simplest to get working, and then I can work on better methods later. I'll use the pot (that's what the cool kids call it) to set the desired temperature.

No comments:

Post a Comment