zephyr/samples/sensor/th02
Marcus Shawcroft f0da59b062 sensor: Fix samples that assume incorrect sensor_value type.
Various sensor samples are hardwired to expect returned sensor values
are represented as doubles.  In each case this assumption is incorrect.

Introduce a generic sensor_value to double helper function and adjust
the samples to use it.

Change-Id: I89c788686576562b84e07a36064640231340c33b
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2017-01-08 16:16:15 +00:00
..
src sensor: Fix samples that assume incorrect sensor_value type. 2017-01-08 16:16:15 +00:00
Makefile samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
README.rst samples: sensors: fix documentation layout of TH02 sample 2017-01-06 16:32:31 -05:00
prj.conf sensors: th02: convert to and build with unified kernel 2016-11-03 01:45:50 +00:00
testcase.ini samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00

README.rst

TH02: Temperature and Humidity Monitor
######################################

Overview
========
This sample periodically reads temperature and humidity from the Grove
Temperature & Humidity Sensor (TH02) and display the results on the Grove LCD
display.


Requirements
============

This sample uses the TH02 sensor and the grove LCD display. Both devices are
controlled using the I2C interface.

More details about the sensor and the display can be found here:

- `Grove Tempture And Humidity`_
- `Grove LCD Module`_

Wiring
======

The easiest way to get this wired is to use the Grove shield and connect both
devices to I2C. No additional wiring is required. Depending on the board you are
using you might need to connect two 10K ohm resistors to SDL and and SDA (I2C).
The LCD display requires 5 volts, so the volatage switch on the shield needs to
be on 5v.


References
==========

 - TH02: http://www.datasheetspdf.com/mobile/748107/TH02.html


.. _Grove LCD Module: http://wiki.seeed.cc/Grove-LCD_RGB_Backlight/
.. _Grove Tempture And Humidity: http://wiki.seeed.cc/Grove-TemptureAndHumidity_Sensor-High-Accuracy_AndMini-v1.0/