Matienzo
Member
Hi all
The project I'm working on requires me to use two linear 20k potentiometers to change two values, time and temperature.
What I'm doing is running a heating element for a certain period of time. The user selects the time(Range 5-9 min) and temperature (100-150C) and pushes a button, then the program reads the time and temp selected by the user,and starts until it reaches the time selected by the user. The heating element is controlled via PWM using a MOSFET to control the temperature by changing the duty cycle. Temperature input is taken from a thermistor.
This project has several milestones but I'm starting with the potentiometers.
My questions are:
How do I change a value on the program with the potentiometer? I'm assuming that when the user pushes the button the program picks up a value of resistance and turns it into a desired value (temperature or time)
How do I convert a resistance into a value of time and a value of temperature? I'm guessing I could assign to a certain range of resistance a value of time or temp. I wonder if there is a better way.
I'm not a programmer so please keep it as plain as possible. THANKS A BUNCH!!!!
Matienzo
EDIT: I forgot to mention I'm using an arduino.
The project I'm working on requires me to use two linear 20k potentiometers to change two values, time and temperature.
What I'm doing is running a heating element for a certain period of time. The user selects the time(Range 5-9 min) and temperature (100-150C) and pushes a button, then the program reads the time and temp selected by the user,and starts until it reaches the time selected by the user. The heating element is controlled via PWM using a MOSFET to control the temperature by changing the duty cycle. Temperature input is taken from a thermistor.
This project has several milestones but I'm starting with the potentiometers.
My questions are:
How do I change a value on the program with the potentiometer? I'm assuming that when the user pushes the button the program picks up a value of resistance and turns it into a desired value (temperature or time)
How do I convert a resistance into a value of time and a value of temperature? I'm guessing I could assign to a certain range of resistance a value of time or temp. I wonder if there is a better way.
I'm not a programmer so please keep it as plain as possible. THANKS A BUNCH!!!!
Matienzo
EDIT: I forgot to mention I'm using an arduino.
Last edited: