Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Version #6

Open
SchneHa opened this issue May 8, 2021 · 3 comments
Open

Improved Version #6

SchneHa opened this issue May 8, 2021 · 3 comments

Comments

@SchneHa
Copy link

SchneHa commented May 8, 2021

Meanwhile, I improved your HomeKit version. I added HK and webserver support for an air temperature sensor DS18B20 connected to GND, D1 and 3V3 (with 4k7 resistance between D1 and 3v3). Also I added WiFi Manager for easy configuration and changing WiFi credentials without reflashing the module. I added a button connected to D3 (with 10k resistance between D3 and 5V) and GND as trigger button for changing WiFi credentials.
Feeding the watchdog inserted in main loop to avoid sudden reboots.

@dvoc
Copy link

dvoc commented May 25, 2021

Meanwhile, I improved your HomeKit version. I added HK and webserver support for an air temperature sensor DS18B20 connected to GND, D1 and 3V3 (with 4k7 resistance between D1 and 3v3). Also I added WiFi Manager for easy configuration and changing WiFi credentials without reflashing the module. I added a button connected to D3 (with 10k resistance between D3 and 5V) and GND as trigger button for changing WiFi credentials.
Feeding the watchdog inserted in main loop to avoid sudden reboots.

Hello, could you share your code modifications? I'm interested in feeding the watchdog to increase stability.
Thx and BR

@SchneHa
Copy link
Author

SchneHa commented Jun 23, 2021

Feeding the watchdog timer is easy:

Insert the following lines:
After "void loop() {":

  ESP.wdtFeed();
  ESP.wdtEnable(0);

Maybe WDT must also be disabled in void setup()
As last line:
ESP.wdtDisable();

Try it out.

If you need more code you have to tell me how to send you a PM.

@dvoc
Copy link

dvoc commented Jun 27, 2021

Thank you for your answer. I suppose that these modifications are also valid to improve stability on "support saltwater version" of Ulrichmai. My email is dvoc0359@gmail.com many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants