-
Notifications
You must be signed in to change notification settings - Fork 53
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
Problems using Dallas sensor #14
Comments
sensor maybe broken? 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 |
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? |
I just replaced the D1 Mini with an ESP32-S2 and the problem comp,Evelyn went away. I'm almost ready to deploy this heater!
… On Feb 8, 2023, at 5:45 PM, Patrick Collins ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
--
This message may contain confidential and/or privileged information. If
you are not the addressee or are not authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein. If you have received this message
in error, please advise the sender immediately by reply email and delete
this message.
|
Success! The adjustments I have are: 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? |
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? |
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... |
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. |
I have this controller working well on my Solar battery heater application. I use it with a Pwm dimmer to control the heating pads and I use a temp sensor from the battery BMS software that is exposed via a homeassistant sensor. It's all detailed in this Solar forum:
https://diysolarforum.com/threads/new-battery-heater-controller-home-assistant-and-esphome.53665/#post-685275
however, I have noticed that there are dropouts of that sensor when home assistant becomes unavailable for any reason which results in the battery either not being heated or being heated too much. So I am trying to add a local Dallas temp probe that I can sandwich between the batteries and have a self contained system running completely in ESPHome on one chip.
The problem is whenever the Pwm dimmer is ON (even at 1%), the Dallas temp sensor throws "Scratch pad checksum invalid!" errors and can't be read.
I'm no stranger to this approach in ESPHome or these sensors. I have several in use in my greenhouse and other areas. I've tried shielding the sensor wires, and even tried every available GPIO for the sensor and even watched the Dallas waveform on my scope when adjusting the pull-up resistor, all to no avail.
using a DHT type sensor isn't an option due to the way the batteries are mounted. It really needs to be a "probe" type sensor.
Any pointers or ideas to solve this are welcome!
The text was updated successfully, but these errors were encountered: