Skip to content

Heat stabilizer for mixture motor with Keypad LCD and DS18B20 sensor

Notifications You must be signed in to change notification settings

ngfelixl/HeatControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino based heat stabilizer

Reads temperature from DS18B20 Sensor via DallasTemperature and OneWire library. Uses up and down button from shield to adjust the target temperature in range [20,38]. Shield displays current temperature, target temperature, temperature derivative, output open isActive and output close isActive.

Getting Startet

Clone repo, open either with VSCode or Arduino IDE. Should work with every Arduino capable editor. Adjust pin constants at

#define OUTPUT0 11
#define OUTPUT1 12
#define TEMPPIN 12

where OUTPUT0 is the motor open gate (true means active) and OUTPUT1 is the close gate. Now you can adjust the time settings. The controller works with timer variables and millis() function instead of delays. With the following constants you can adjust the duration of some actions.

#define CONTROL_ACTIVE_TIME 1000 // [ms]
#define CONTROL_LOOP_TIME 30000  // [ms]
#define BUTTON_DEAD_TIME 500     // [ms]

Here CONTROL_ACTIVE_TIME sets the activated time for the output gates. If it's 1000 the gate will open exactly for one second. CONTROL_LOOP_TIME sets the time for checking the temperature difference before and now, and opens the appropriate gate. BUTTON_DEAD_TIME disables the buttons for the adjusted value after press.

Output

Has two digital outputs defined for controlling the heater. As mentioned above they are labelled OUTPUT0 and OUTPUT1. Never open both outputs at the same time. If DS18B20 is not connected, the library will retrieve a value of -127 degree. The controller closes all gates if temperature < 0.

Dependencies

Arduino Libraries

  • LiquidCrystal
  • OneWire
  • DallasTemperature

External

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%