Arduino I2C temp sensor on mDot
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_example_TTN_connect by
This program connects the Adafruit temp sensor board MCP9808 through I2C and sends the temperature output to the The Things Network.
Based on:
- mDot TTN Connect Example: https://developer.mbed.org/users/ropu/code/mDot_LoRa_example_TTN_connect/rev/609e7bb06486
- Adafruit MCP9808 Library: https://github.com/adafruit/Adafruit_MCP9808_Library
- mbed I2C Example: https://developer.mbed.org/handbook/I2C
- TTN Backend: https://www.thethingsnetwork.org/wiki/Backend/Overview
Requiremens:
- Multitech UDK board and mDot: https://developer.mbed.org/platforms/MTS-mDot-F411/
- Adafruit MCP9809: https://learn.adafruit.com/adafruit-mcp9808-precision-i2c-temperature-sensor-guide/overview
- Serial to USB like this or similar: https://www.amazon.com/Sabrent-Serial-RS-232-Converter-CB-DB9P/dp/B00IDSM6BW/ref=sr_1_5?ie=UTF8&qid=1470167137&sr=8-5&keywords=serial+usb
- Default serial port baudrate is 9600
Wiring:
- MCP9808 : UDK
- Vdd : D8 3.3V
- Gnd : D3 GND
- SCL : D15
- SDA : D14
Diff: mbed.bld
- Revision:
- 1:0edc781de3cb
- Child:
- 4:36e214ebfa56
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 18 15:37:05 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file