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
History
Arduino I2C to mDot example
2016-08-02, by elwinong [Tue, 02 Aug 2016 19:49:55 +0000] rev 8
Arduino I2C to mDot example
Commented network address
2015-11-19, by ropu [Thu, 19 Nov 2015 20:15:09 +0000] rev 7
Commented network address
Hello world for the TTN
2015-11-19, by ropu [Thu, 19 Nov 2015 20:10:43 +0000] rev 6
Hello world for the TTN
test commit
2015-10-24, by ropu [Sat, 24 Oct 2015 22:54:25 +0000] rev 5
test commit
add comments clarifying configuration and behavior
2015-09-30, by mfiore [Wed, 30 Sep 2015 19:49:02 +0000] rev 4
add comments clarifying configuration and behavior
update libmDot revision to 0.0.9-1
2015-09-10, by mfiore [Thu, 10 Sep 2015 18:23:17 +0000] rev 3
update libmDot revision to 0.0.9-1
clean up code, add more comments about configuration
2015-08-25, by mfiore [Tue, 25 Aug 2015 21:35:39 +0000] rev 2
clean up code, add more comments about configuration
update libmDot, replace mbed-src with mbed
2015-08-18, by mfiore [Tue, 18 Aug 2015 15:37:05 +0000] rev 1
update libmDot, replace mbed-src with mbed
initial commit
2015-06-24, by mfiore [Wed, 24 Jun 2015 22:22:07 +0000] rev 0
initial commit