Commit Graph

66 Commits

Author SHA1 Message Date
Chris Giacofei
0e74d66125 Change check for out of bounds setpoints.
Makes more sense this way, and is compatible with more boards.

ESP32 chips don't seem to like min/max with mixed types.
2024-04-29 12:47:49 -04:00
Chris Giacofei
ff8129f400 Just declare the enum. 2024-04-29 12:46:41 -04:00
Chris Giacofei
81133f2221 Unused libries go away. 2024-04-26 08:57:39 -04:00
Chris Giacofei
6730f9f390 Latest boil kettle code. 2024-04-26 08:55:20 -04:00
Chris Giacofei
31b23910f0 Added PID submodule. 2024-04-26 08:48:05 -04:00
Chris Giacofei
b302480610 Remove to add as submodule. 2024-04-26 08:47:39 -04:00
Chris Giacofei
99600c9135 rearrange custom libraries. 2024-04-26 08:41:06 -04:00
216e80e642 Don't start mqtt unless network is connected.
Also comments.
2022-01-24 11:41:52 -05:00
8565c87ce4 Kettle power won't change on compute if mode is manual.
There's no point in checking first.
2022-01-24 11:41:09 -05:00
85c710e3b7 Don't update the menu if nothing actually changed. 2022-01-24 11:40:12 -05:00
045d5a8feb This is simpler and far easier to read. 2022-01-24 11:39:18 -05:00
484db54d89 Encoder interrupt handles auto mode.
Add logic for changing the setpoint temperature
as well as duty cycle.
2022-01-24 11:11:10 -05:00
a0a25f05e2 Put more conplex datatype definitions in separate file. 2022-01-24 10:57:09 -05:00
50bee2daa0 Improved readability... I hope.
Arduino sketch file now only contains #includes and setup/loop
functions. Everything else moved to separate included files.
2022-01-24 10:30:57 -05:00
05280526b0 Need Adafruit RTD control class. 2022-01-24 08:29:14 -05:00
e2b0205709 That's not the right data type. 2022-01-24 08:28:43 -05:00
be781f1275 Use overloaded functions for get/set. 2022-01-21 11:44:28 -05:00
9a535c665b Use simpler constructor. 2022-01-21 11:35:09 -05:00
8b72a16203 Made a much more involved kettle control class.
All the input/output tracking is handled with class members
instead of passing pointers to global variables.
2022-01-21 10:56:41 -05:00
c7857c1b03 Changed pin names because I can. 2022-01-21 10:55:13 -05:00
e12f3e262f Get rid of sprintf. 2022-01-20 14:13:49 -05:00
3a1d2ad3ad Use settings from EEPROM. 2022-01-20 14:13:20 -05:00
f75cbe5f6c Use begin() method for temp controller. 2022-01-20 14:12:00 -05:00
a1eb11b81a Merge branch 'use-eeprom' into temp-control 2022-01-20 10:57:01 -05:00
24b3cdae1c Cleanup 2022-01-20 10:21:55 -05:00
2673fa7fa3 Use a separate sketch to load EEPROM. 2022-01-20 09:53:25 -05:00
fb0afa7e43 Merge remote-tracking branch 'origin/use-eeprom' into no-more-strings 2022-01-20 09:33:19 -05:00
421a0c6580 Change libraries used for mqtt and json parsing.
Not using strings for data any more.
2022-01-20 08:40:32 -05:00
8750bceead Load config to EEPROM 2022-01-19 16:30:26 -05:00
1aef2aa15f LCD_Line will return garbage if not static. 2022-01-19 11:03:21 -05:00
c4fb9fa0b3 Use integer math.
This feels like a good idea. ?
2022-01-19 09:47:59 -05:00
2a70f6e89a Update LCD outputs. 2022-01-19 09:08:42 -05:00
e0d2d0aa52 Fix type mismatches. 2022-01-19 07:42:15 -05:00
18c43187cb Initial junk to get temp control working.
Totally not working yet, just getting it pushed
to the remote
2022-01-18 19:45:05 -05:00
180e3b065f Make slowPWM::compute return state instead of changing pin.
I just like it better this way.
2022-01-15 18:10:46 -05:00
0970dee99a Git rid of extra blanks lines. 2022-01-14 14:34:34 -05:00
ff48bcb52d Line endings 2022-01-14 13:50:41 -05:00
f9d9005c3b Incorrect type used. 2022-01-14 13:46:47 -05:00
d165adb63d Use encoder speed to increment duty faster. 2022-01-14 13:45:24 -05:00
Chris Giacofei
a8e3e6d0ed Only do mqtt stuff if ethernet is connected. 2022-01-14 13:44:14 -05:00
f7af46ee95 Update the readme. 2022-01-14 08:52:17 -05:00
5b92a738ae Formatting. 2022-01-14 08:41:02 -05:00
22842dfc70 Turn slowPWM into a class.
Slightly cleaner looking this way.
2022-01-14 08:23:51 -05:00
69bf638c39 Remove duplicate pin mode. 2022-01-14 07:56:43 -05:00
da937ecde5 Revert master back to old code that actually worked. 2022-01-14 07:50:34 -05:00
e85a8d1704 Just rearranging crap to my liking. 2022-01-13 09:55:17 -05:00
5af0919960 Use much smaller simpler button debounce. 2022-01-13 09:54:53 -05:00
e6e133cff2 Use dtostrf to format RTD readings. 2022-01-13 08:33:49 -05:00
7d10dbf75f That's already set in the setup function. 2022-01-13 07:56:00 -05:00
5412793db6 It compiles, but will it work? 2022-01-12 15:22:32 -05:00