User Tools

Site Tools


introduction_to_the_internet_of_things

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
introduction_to_the_internet_of_things [2018/08/01 00:34] sdh7introduction_to_the_internet_of_things [2018/08/01 03:32] sdh7
Line 14: Line 14:
 Install the following libraries: Install the following libraries:
   * Cayenne MQTT Library - https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino   * Cayenne MQTT Library - https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino
-  * Adafruit Sensor Library +  * Adafruit Sensor Library - FIXME: URL 
-  * Adafruit BME280 library+  * Adafruit BME280 library - FIXME: URL
   * Arduino SimpleTimer library https://github.com/marcelloromani/Arduino-SimpleTimer   * Arduino SimpleTimer library https://github.com/marcelloromani/Arduino-SimpleTimer
  
Line 21: Line 21:
   * on OS X, navigate using the finder or otherwise cd ~/Documents/Arduino/libraries/Adafruit_BME280_Library-master/   * on OS X, navigate using the finder or otherwise cd ~/Documents/Arduino/libraries/Adafruit_BME280_Library-master/
     * On Windows & Linux the files will be somewhere similar.     * On Windows & Linux the files will be somewhere similar.
-  * edit Adafruit_BME280.h using your favorite editor, at a minimum change #define BME280_ADDRESS from 0x77 to 0x76 +  * edit Adafruit_BME280.h using your favorite editor, and change #define BME280_ADDRESS from 0x77 to 0x76
-  * more advanced C programmers may do something like: +
-<code> +
-#define BME280_ADDRESS 0x77 +
-#ifdef CLASS_BME280  +
-#define BME280_ADDRESS 0x76 +
-#endif +
-</code> +
- +
-and then add  +
-<code> +
-#define CLASS_BME280 +
-</code> +
-at the beginning of your program, so that way if you get an Adafruit BME280 board in the future, it will continue to work right...+
  
 ===If Using Your Phone to Tether=== ===If Using Your Phone to Tether===
Line 61: Line 48:
 <code> <code>
 #define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space #define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
-#define CLASS_BME280 1 //enable non-Adafruit BME280 board hack 
  
 #include <Wire.h> #include <Wire.h>
introduction_to_the_internet_of_things.txt · Last modified: 2018/08/22 15:09 by sdh7

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki