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
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
8:ebec2e50d421 | 2016-08-02 | elwinong | Arduino I2C to mDot example |
7:609e7bb06486 | 2015-11-19 | ropu | Commented network address |
6:8f7276e7d206 | 2015-11-19 | ropu | Hello world for the TTN |
5:89218e2c1d37 | 2015-10-24 | ropu | test commit |
4:36e214ebfa56 | 2015-09-30 | mfiore | add comments clarifying configuration and behavior |
3:fa15d594858c | 2015-09-10 | mfiore | update libmDot revision to 0.0.9-1 |
2:6e2c378339d9 | 2015-08-25 | mfiore | clean up code, add more comments about configuration |
1:0edc781de3cb | 2015-08-18 | mfiore | update libmDot, replace mbed-src with mbed |
0:09250cd371d2 | 2015-06-24 | mfiore | initial commit |