blakadder / nspanel

Sonoff NSPanel protocol and hacking information. Tasmota Berry driver for NSPanel
https://blakadder.github.io/nspanel/
Creative Commons Zero v1.0 Universal
129 stars 35 forks source link

Wrong external temperature reading #31

Closed iandronowicz closed 2 years ago

iandronowicz commented 2 years ago

Hi, first of all: thanks for your work, this is great I really appreciate it.

I’ve just flashed my first NSPanel and got everything running ok, except for the external temperature reading, I don’t know it may be a faulty sensor? The nspanel is brand new, but it shows 4C when it’s actually around 23C. Couldn’t get around it, the ESP32 cpu sensor I think it’s fine around 53C.

Any suggestions? Thanks! 6930043D-8149-4AD0-A8D3-8356367709BE

blakadder commented 2 years ago

Calibrate using command AdcParam

iandronowicz commented 2 years ago

Thanks!

Just in case, this worked for me: Adcparam1 2,13500,10000,3950

tested with 2 different temp sensor placed next to the nspanel

s-hemer commented 1 year ago

Thanks for sharing your parameters. Yet, for me this resulted in around 16°C whereas my multimeter measures around 18°C. Other parameters suggested elsewhere: ADCParam 2,64000,10000,3950 -> results in around -12 °C ADCParam 2,11200,10000,3950 -> results in around 20 °C ADCParam 2,14600,10000,3950 -> as expected lower than with your parameters, around 15 °C

So to sum up: the second parameter is the one that seems to be played around with (which is also clear when looking at the parameters of the command and the stats of the NTC, cmp teardown): for me the closest fit was 12500.

When I find more time, I may document that at https://github.com/blakadder/templates/tree/master/_templates/sonoff_NSPanel