yoelk / instrumentino

Instrumentino is an open-source modular graphical user interface framework for controlling Arduino based experimental instruments
GNU General Public License v3.0
137 stars 59 forks source link

Using a pid-controlled heater #7

Closed meeschka closed 8 years ago

meeschka commented 9 years ago

Hello again, I am trying to control a small heating element based on readings from a thermistor. However, Whenever I try to "set" the heater using methods or sequences, it runs for about 15-30 seconds and then stops. Likewise, setting the heating element temperature, or simply turning it off/on through digital pins by adjusting the sidebar seems to make it think for 15-30 seconds, but no real change... I am using the pid function included in the instrumentino package, and my thermistors are reading correctly, so I'm wondering if I'm just not understanding how the pid system works. If I set the heater in a method, and then run it, how long should it go for? Until it reaches the desired temperature? Until the system is stopped? A I missing something obvious about how to use the pid system? Cheers, Michelle

yoelk commented 9 years ago

Hi Michelle, can you send me your python system description file? I've also upgraded since then both Instrumentino and Controlino (the sketch that runs on the Arduino), so you might want to download the new version.

Send me the file and I'll see if I can find something.

Joel

On Mon, Mar 23, 2015 at 10:26 PM, meeschka notifications@github.com wrote:

Hello again, I am trying to control a small heating element based on readings from a thermistor. However, Whenever I try to "set" the heater using methods or sequences, it runs for about 15-30 seconds and then stops. Likewise, setting the heating element temperature, or simply turning it off/on through digital pins by adjusting the sidebar seems to make it think for 15-30 seconds, but no real change... I am using the pid function included in the instrumentino package, and my thermistors are reading correctly, so I'm wondering if I'm just not understanding how the pid system works. If I set the heater in a method, and then run it, how long should it go for? Until it reaches the desired temperature? Until the system is stopped? A I missing something obvious about how to use the pid system? Cheers, Michelle

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/7.

meeschka commented 9 years ago

Hi Joel, Part of my problems were resolved with the new Instrumentino and Controlino files. For the rest, I realized it has to do with how I am mapping the fraction output to thermistor values, which are non-linear with respect to resistance. Long story short: I'm going to play around with it for a while, see what I can do, will keep you posted. Thanks :) Michelle

yoelk commented 9 years ago

Great! I'm happy it worked out for you.

On 3/24/15, meeschka notifications@github.com wrote:

Hi Joel, Part of my problems were resolved with the new Instrumentino and Controlino files. For the rest, I realized it has to do with how I am mapping the fraction output to thermistor values, which are non-linear with respect to resistance. Long story short: I'm going to play around with it for a while, see what I can do, will keep you posted. Thanks :) Michelle


Reply to this email directly or view it on GitHub: https://github.com/yoelk/Instrumentino/issues/7#issuecomment-85549950