Giter VIP home page Giter VIP logo

Comments (8)

thebentern avatar thebentern commented on June 17, 2024 1

A dirt cheap supported BMP180 or SHT temp i2c sensor can be added for little cost and effort. Trying to use problematic CPU temperatures isn't something that seems like a fruitful effort in the face of relatively easy alternatives.

from firmware.

GUVWAF avatar GUVWAF commented on June 17, 2024

"The ESP32-S2 has a built-in sensor used to measure the chip's internal temperature."

"it can measure the die temperature over the temperature range of the device. Linearity compensation can be implemented if required by the application."

"The temperature sensor works by measuring the voltage of a diode in the chip itself, so straight off the bat we aren’t really measuring the ambient room temperature. We are measuring the temperature of the chip itself instead."

You'll get a temperature that's (much) higher than the actual ambient temperature, and it's unknown how to compensate for it. I'm not sure how useful this really is.

from firmware.

roha-github avatar roha-github commented on June 17, 2024

You'll get a temperature that's (much) higher than the actual ambient temperature, and it's unknown how to compensate for it. I'm not sure how useful this really is.

It depends ... I have already used the RTC temperature sensor in projects. With a correction value you can adjust the measurement temperature to the little heating of the chip.

But with pure sensors, the MCU is almost always in sleep mode anyway and there is de facto no heating. The values are then +/-1°C and a good indicator of heat.

Btw you can also use LEDs as light sensors for certain circuits.

from firmware.

caveman99 avatar caveman99 commented on June 17, 2024

any measurement close to the MCU board will have to be compensated, and the formula is non-linear, because the components produce constant heat. A sensor inside the MCU is even less useful. If you want to measure ambient temperature the sensors need to be put in a special ventillated enclosure away from the processing unit.

I know about these quirks because i have 2 DECT repeater plugs in my home router system that include an ambient sensor. the readings are pretty useless, even with offset configured.

from firmware.

roha-github avatar roha-github commented on June 17, 2024

@caveman99 This is about the possibility of enabling a temperature sensor WITHOUT additional hardware. I would leave it up to the user to decide exactly what this is and for what purposes it can be used.

Have you had any practical experience with the temperature sensors from RTC? What were your deviations from reality?

There is the sensor device type, which hopefully does not permanently heat the MCU and where the RTC temperature should be close to or equal to the ambient temperature.

from firmware.

roha-github avatar roha-github commented on June 17, 2024

@thebentern Everything is correct, more precise measurements could be determined with an external sensor. This makes less sense for permanently radioing routers in permanent TX. And of course any experienced hobbyist can solder on a few components and developers can program them into the firmware themselves.

What I particularly like about Meshtastic is that it's not just made for nerds. Without IT knowledge, users can buy one of the inexpensive devices and simply flash it via the web UI.

I have the feeling that I am being misunderstood here. RTC is an posible option e.g. for Heltec V3, the most used device in the wild.

from firmware.

GUVWAF avatar GUVWAF commented on June 17, 2024

What I particularly like about Meshtastic is that it's not just made for nerds. Without IT knowledge, users can buy one of the inexpensive devices and simply flash it via the web UI.

That's indeed nice. However, if a temperature sensor is included by default, those people expect it to be accurate. You can’t really say that you shouldn’t rely on it when it’s -20 degrees outside, but if it’s +20 degrees it might be accurate, depending on how busy your mesh and thus processor and radio is, etc.

from firmware.

roha-github avatar roha-github commented on June 17, 2024

As caveman99 says, the real temperature and the RTC temperature are not directly identical.

Instead of a simple correction value, you could also determine how the RTC temperature behaves depending on the proportion of deep / light sleep. The deviation depends on how much energy the MCU consumes in heat.

For the device type sensor or as an indicator for the temperature, this should be negligible. Btw, the battery voltage and the percentage of charge are also only approximated.

from firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.