上QQ阅读APP看书,第一时间看更新
Supported sensors
Some connectors on a board may support only analog sensors, while others are only digital.
Digital sensors output a discrete signal, meaning that there is a limited set of possible values for that signal. For example, temperature sensor DHT11 outputs an integer in a range between 0 and 50.
On the other hand, analog sensors output a continuous signal, meaning that there is an infinite number of possible values for that signal. For example, temperature sensor TMP36 can measure temperature from -50°C to 125°C including floating point values such as 11.9°C.
While converting one type of the signal to another is possible, it requires additional components and complicates the design.