Comments (9)
from esphome-fan-controller.
sensor maybe broken?
the wiring is definitely ok?
these are the most common reasons for this problem in my case.
how long is the cable between esp and dalles? for longer distances 5V works better than 3.3
from esphome-fan-controller.
Here is where that error is being thrown: https://github.com/esphome/esphome/blob/dev/esphome/components/dallas/dallas_component.cpp#L242
Looks like you can set logging to "very verbose" and get a little more information.
I've not used this sensor, so I can't help further. You could also try asking in the ESPHome Discord #hardware channel?
from esphome-fan-controller.
Success!
I have the temp probe in front of a halogen light which is the approximation of the solar battery pad heaters. The PWM waveform out of the EWP32 absolutely SUCKS but this is a known problem w/ PWM and AC dimmers. There's a ton of flicker, but I don't really think that's going to affect something passive like a pad heater.
The adjustments I have are:
kd - 0
ki - 0
kp - 0.3
what's curious is that the actual avg temp rides below the set temp once it settles. Not that I think that will ultimately matter.
Thoughts?
from esphome-fan-controller.
Yes the offset is because you need to set ki to some small value, try 0.001. The purpose of ki is to eliminate an offset like that. See the instructions where I outline how ki works.
Also try setting up the deadband to eliminate that oscillation you're seeing.
I'm not aware of PWM being flaky. Have you tried setting the output samples to smooth the output?
What is that graphing component you're using?
from esphome-fan-controller.
The Pwm issue was config related, it literally took me 4 hours to cycle through all the permutations to find the right method/mode/int config for the zero cross gpio. I landed here:
output:
- platform: ac_dimmer
id: dimmer
gate_pin: GPIO18
zero_cross_pin:
number: GPIO39
mode: INPUT_PULLDOWN
method: leading pulse
init_with_half_cycle: true
But now it's finally acting like a true dimmer. I'll give the offset a go. I read about the deadband, I'll implement that tomorrow.
I'm using Plotly for graphing, it really slick. A bit of a steep learning curve at first, and understanding the multiple Y axis', but worth the time investment. You can code filters in real time AND see the results as you type. Great for figuring out how to hard code them in ESPHome!
I built a wicked dashboard for my heavily modified pellet stove I flashed with ESPHome
from esphome-fan-controller.
Im struggling to figure out why I cant get rid of this temp offset:
I've tried ki values all the way up to 50! no change. I got rid of all oscillations by using KD=20. No idea why. but without it all I get is this:
I suppose I can just adjust the thermostat 1.2 degrees higher than I want it, but it would be nice to know why...
from esphome-fan-controller.
That ki is far too large and will cause big oscillations.
Try turning off the kd temporarily.
Set ki to something small like ki: 0.0009
1/ki is the seconds it should attempt to correct an offset. So 0.03 will quickly adjust in 30seconds. 0.0009 will close a small temperature delta in 20 minutes. See a good description here https://blog.opticontrols.com/archives/344
Higher numbers like 0.03 will respond much quicker, but it also will cause a lot of noise and oscillation in the fan speed.
from esphome-fan-controller.
Ok, iI deployed it into the real world. No matter what values I test with, I get about a 3.4 degree difference between Set temp and probe temp. It's fine I just set the climate set temp 4 degrees higher than I want it.
It's a Complex graph, but all the elements are there and it works as expected.
And this is the actual bms sensor inside the battery, reported by the BMS. I deployed on 2/24 and raised the temp from 55F to 65F. Prior to 2/24, I had wide fluctuations both positive and negative depending on home assistant status (up/down) the Pi running the BMS, Wifi signal loss, etc, etc. Now everything is local within ESPHome and the PID controller.
you can see the on/off plug controlling the temp before 2/24.
I think I need to move the probe to inside one of the batteries. Right now it's sandwiched between the top and second one, so the reading location might not be perfect, but it's pretty good, so overall I'm happy with the result!
This all becomes ultra important in Dec/Jan ⛄️ when the temp drops into the teens and below zero F ❄️. LifePO4 batteries self destruct if you charge the when they are less than 32F. And that's $15,000 worth of batteries I'm now protecting with a $2.00 Chinese ESP32-S2 😳
from esphome-fan-controller.
Related Issues (20)
- LED strip control HOT 3
- Set the target temperature from an automation HOT 3
- Tacho connection in documentation HOT 1
- Additional fans HOT 10
- question about external temperature instead of built in dht HOT 1
- Fritzing Img ESP Pinouts? HOT 4
- Manual and thermostat fan control HOT 1
- constantly reboots HOT 13
- Two Sensors HOT 3
- DHT11 temperature stops updating periodically HOT 6
- Need advice: Still high temps. What RPM is good? HOT 1
- 3 wire fan HOT 3
- Can I do this project with a fan control with potentiometer? HOT 1
- min_power and max_power from input field HOT 5
- 2 powers Input (5v & 12v) [ QUESTION ] HOT 3
- ESP32 Mini + box HOT 2
- Improvments and toughts regarding wiring, components, temperature-sensors and fan min_power HOT 3
- Must add platform: esphome under ota in yaml HOT 1
- Bin file HOT 1
- error: operation on 'write_val' may be undefined [-Werror=sequence-point] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-fan-controller.