Difference between revisions of "Electronics notes/Temperature sensing"

From Helpful
Jump to: navigation, search
m (DS18B20)
m (DHT11, DHT22)
 
(3 intermediate revisions by the same user not shown)
Line 114: Line 114:
  
 
* Relative Humidity
 
* Relative Humidity
: Range: 20-90 %RH  (note: range and accuracy vary somewhat with temperature)
+
: Range: 20 to 90 %RH  (note: range and accuracy vary somewhat with temperature)
 
: output reported to 1% but don't assume more than ±5%RH accuracy
 
: output reported to 1% but don't assume more than ±5%RH accuracy
  
Line 123: Line 123:
  
 
Pins: 3.5-5.5V, data, NC, Gnd.
 
Pins: 3.5-5.5V, data, NC, Gnd.
You will want a pullup resistor on the data pin, mostly because it's bidirectional onewire''ish''{{verify}}.
+
: You will want a pullup resistor on the data pin, mostly because it's bidirectional onewire''ish''{{verify}}.
  
 
Power: ~0.5mA while measuring, 0.1mA idle
 
Power: ~0.5mA while measuring, 0.1mA idle
Line 130: Line 130:
  
 
DHT22:
 
DHT22:
: RH: 0-100% range, 2-5% accuracy
+
: RH: 0 to 100% range, 2 to 5% accuracy
 
: Temp: -40 to 80°C range, ±0.5°C accuracy
 
: Temp: -40 to 80°C range, ±0.5°C accuracy
  
Line 141: Line 141:
 
https://www.instructables.com/id/IoT-MCU-Monitoring-Using-the-AskSensors-IoT-Platfo/
 
https://www.instructables.com/id/IoT-MCU-Monitoring-Using-the-AskSensors-IoT-Platfo/
 
-->
 
-->
 +
 +
====HDC1000====
 +
https://www.ti.com/lit/ds/symlink/hdc1000.pdf
 +
 +
 +
====HDC1080====
 +
http://www.ti.com/lit/ds/symlink/hdc1080.pdf
 +
 +
====LM92====
 +
http://www.ti.com/lit/ds/symlink/lm92.pdf
 +
 +
 +
====BMP085====
 +
https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf
 +
 +
https://www.sparkfun.com/tutorials/253
 +
 +
====BME680====
 +
https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf
 +
 +
 +
====BME280====
 +
https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf
 +
 +
====AM2320====
 +
https://akizukidenshi.com/download/ds/aosong/AM2320.pdf
  
 
===See also===
 
===See also===
  
 
http://www.electronics-tutorials.ws/io/io_3.html
 
http://www.electronics-tutorials.ws/io/io_3.html

Latest revision as of 14:46, 24 March 2020

This is for beginners and very much by a beginner.

It's intended to get an intuitive overview for hobbyist needs. It may get you started, but to be able to do anything remotely clever, follow a proper course.


Some basics and reference: Volts, amps, energy, power · Ground · batteries · resistors · changing voltage · transistors · fuses · diodes · varistors · capacitors · inductors · transformers · baluns · amplifier notes · frequency generation · skin effect


And some more applied stuff:

IO: Input and output pins · wired local IO wired local-ish IO · · · · Shorter-range wireless (IR, ISM RF, RFID) · bluetooth · 802.15 (including zigbee) · 802.11 (WiFi) · cell phone


Sensors: General sensor notes, voltage and current sensing · Knobs and dials · Pressure sensing · Temperature sensing · humidity sensing · Light sensing · Movement sensing · Capacitive sensing · Touch screen notes

Actuators: General actuator notes, circuit protection · Motors and servos · Solenoids

Some stuff I've messed with: Avrusb500v2 · GPS · Hilo GPRS · JY-MCU · DMX · Thermal printer

Audio notes: basic audio hacks · microphones · amps and speakers · device voltage and impedance, audio and otherwise ·

Less sorted: Common terms, useful basics, soldering · Microcontroller and computer platforms · Arduino and AVR notes · ESP series notes · Electronics notes/Phase Locked Loop notes · mounts, chip carriers, packages, connectors · signal reflection · pulse modulation · electricity and humans · Unsorted stuff


See also Category:Electronics.

This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, fix, or tell me)

Thermocouple

Inexpensive High range of temperature Not highly accurate - assume you won't get better than 1 degree Celcius of resolution, less if you don't calibrate well


Age with time and high-temperature use, so will need occasional recalibration and/or replacement.


They produce voltage due to the thermoelectric effect - on the order of millivolts so most uses, and accurate use, requires amplification (with high input impedance to avoid the measurement affecting the thermocouple itself).


https://en.wikipedia.org/wiki/Thermocouple#Types

Thermistor

Most resistors vary their resistance with temperature.

A thermistor (thermal resistor) does it intentionally, and more pronounced.


NTC: negative temperature coefficient, resistance drops (logarithmically) as its body temperature increases

PTC: positive temperature coefficient,


The 'at-rest' resistance varies with intent


They are frequently used in temperature sensing, temperature regulation, and (over)current protection.


Perhaps the he simplest way to get a voltage from a thermistor (think ADC, comparator) is to have it be one leg of a voltage divider.



Power thermistor

A power thermistor is a very low-resistance (NTC) thermistor in series with your main current, as a current limiter and/or (self-resetting) overcurrent protector.


One use is to spread the inrush current (in transformers and such) over more time:

  • place in series with the primarily coil
  • when cold (just switched on) it typically has a few hundred ohm resistance
  • and once it warms it (few seconds later) goes to under an ohm.

This lessens the magnitude of the sudden current that can happen right after you switch something on.


See also:

Diodes

The voltage across a diode will decrease by approx 2 mV per °C in a fairly linear way.

You need amplification and probably a DAC, accuracy isn't great, but it's very convenient inside FPGAs, processors, and such.

Unsorted

DS18B20

DHT11, DHT22

Measures:

  • Temperature (NTC thermistor)
0-50 ℃
output reported to 1℃ but don't assume more than ±2℃ accuracy
  • Relative Humidity
Range: 20 to 90 %RH (note: range and accuracy vary somewhat with temperature)
output reported to 1% but don't assume more than ±5%RH accuracy


In a quick test with two DHT11 modules next to each other, temperature was reported 0.0 to 1.0 degrees apart on average, but humidity was ~11 %RH apart on average (fairly consistently so you can probably improve this a little via calibration against a known value).


Pins: 3.5-5.5V, data, NC, Gnd.

You will want a pullup resistor on the data pin, mostly because it's bidirectional onewireish(verify).

Power: ~0.5mA while measuring, 0.1mA idle


DHT22:

RH: 0 to 100% range, 2 to 5% accuracy
Temp: -40 to 80°C range, ±0.5°C accuracy



HDC1000

https://www.ti.com/lit/ds/symlink/hdc1000.pdf


HDC1080

http://www.ti.com/lit/ds/symlink/hdc1080.pdf

LM92

http://www.ti.com/lit/ds/symlink/lm92.pdf


BMP085

https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf

https://www.sparkfun.com/tutorials/253

BME680

https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf


BME280

https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf

AM2320

https://akizukidenshi.com/download/ds/aosong/AM2320.pdf

See also

http://www.electronics-tutorials.ws/io/io_3.html