Skip to content

Commit

Permalink
samples: sensors: fix documentation layout of MCP9808 sample
Browse files Browse the repository at this point in the history
Change-Id: Iab5426a0689fd7ac22933e3c61e22d217af7f067
Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Jan 6, 2017
1 parent 813df21 commit a6997bb
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions samples/sensor/mcp9808/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Overview

Sample application that periodically reads temperature from the MCP9808 sensor.


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

The MCP9808 digital temperature sensor converts temperatures between -20°C and
+100°C to a digital word with ±0.5°C (max.) accuracy. It is I2C compatible and
supports up to 16 devices on the bus. We do not require pullup resistors on the
Expand All @@ -14,16 +18,11 @@ data or clock signals as they are already installed on the breakout board.
The MCP9808 is available in a discrete component form but it is much easier to
use it mounted on a breakout board. We used the Adafruit breakout board.

In this hookup we are only connecting one device to one of the supported boards.
It reads the temperature and displays it on the console.

Software
========
- `MCP9808 Sensor`_

This sample uses the Zephyr sensor APIs and the provided driver for the MCP9808
sensor.
This sample uses the sensor APIs and the provided driver for the MCP9808 sensor.

Pinouts
Wiring
=======

The MCP9808 requires 2 wires for the I2C bus plus power and ground. The power
Expand All @@ -32,9 +31,14 @@ can be either 5V or 3.3V.
We connect the Data and clock wires to Analog ports A4 and A5 which is the I2C
pins on Arduino compatible boards.

In this hookup we are only connecting one device to one of the supported boards.
It reads the temperature and displays it on the console.

Data Sheets

References
===========

http://www.microchip.com/wwwproducts/en/en556182
- http://www.microchip.com/wwwproducts/en/en556182


.. _`MCP9808 Sensor`: https://www.adafruit.com/product/1782

0 comments on commit a6997bb

Please sign in to comment.