-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Feature request: analog temperature sensor support #4571
Comments
@Jetrell There are very small 1-wire digital temp sensors that don't need any kind of breakout board. I've used analog LM75 and they're crappy compared to the 1-wire digital ones. I believe INAV supports 1-wire temp sensors. |
@teckel12 The TO-92 cased DS18B20 is at top in the picture, above the 10K NTC thermistor. @shellixyz said he is also thinking of adding a 1-wire UART interface for the DS18B20. I assume it will then be stand alone. This too would not be ideal for small FC's in small models due to them having limited UARTs available. My idea for the thermistor was based around small lite weight FPV models that have minimum size and weight. Even sub 250grams plane/quads. While still being able to use the temperature function. |
@Jetrell But analog temp sensors are crap IMHO. I'd wait for 1-wire. I use that for other projects and it works great and small. |
I do agree Tim. Thermistors are not ideal. They do have drift, the farther the measured temperature gets above or below their factory calibrated 25°c. Unless you know anyone that makes a digital temp chip in a TO-92(S) case or a SOT-23 case. Then a thermistor is the smallest temperature sensing device that I know of. |
here's a couple of small to92 cased sensors... I would think the lm19 would be closest to what you want http://www.ti.com/product/LM19 the microchip MCP9700 has a humidity sensor too and can also be gotten in the to92 case form factor from allied tmp359: |
I am strongly in favor of "befriending" DS18B20 and likes with INAV. Someone just needs to adapt 1-Wire protocol to run directly on a spare pin of flight controller. The protocol itself is very simple and timing-relaxed. Standard NTC are very convenient and cheap (I recommend to look for ones from refrigeration thermostats, looks like small epoxy drop on the end of PVC cable - small and waterproof). However NTC needs a precision loading resistor and shall be individually calibrated. Also, transfer curve is non-linear and differs between types. And a random loading resistor from junk box may not work too because carbon film resistors have huge temperature drift themselves (was bitten by this recently when tried to do a simple battery voltage sense divider). Maxim 18B20's are instead already calibrated from the box to about +- 1C, saving MAJOR hassle, and packaged in to-92 case. |
Also, what we can do is to add an universal ADC data input "class". That way we can assign an ADC input to a few easily understandable configurable conversion steps and made it useful for almost all analog sensors possible - temp, voltage, currrent etc... Roughly like: step 0: get ADC data |
And some kind of lowpass filtering (at least fixed to about 0.5Hz) shall be here too. |
@rrk1 This is why I don't like analog temp sensors. I think it would be a better use of time to add a 1 wire protocol rather than analog nonsense. |
@shellixyz due to there being much dislike for analog sensors, even though they are the smallest and lightest type available. You did an awesome job of the temp sensor function. I use it in my larger planes and quads, But I would also like to use this function in my smaller planes as well. The only other possibility may be. If Dshot telemetry is implemented in iNav, for direct ESC temperature sensing...and RPM too. But its limited in usable hardware! |
Yes softserial or UART. It is in my todo list. |
I see this was closed as completed, but it seems it was never implemented? The instructions for using a DS18B20 still say the DS2482 is required. |
I would like to request this option. To keep the weight and size down in smaller models. That also use smaller devices like ESC's.
In the case of an LM75 breakout board. It is almost as large as the ESC, which blocks its cooling efficiency.
While a thermistor is very small and can be slipped under the heat shrink tube of the ESC, with ease.
The RSSI ADC pin on most Flight Controllers that is not used by many of us (who put RSSI/LQ on a radio channel) could be an option for this.
And it only uses 2 wires instead of four. To simplify the application.
The text was updated successfully, but these errors were encountered: