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:20] – [THINGS WE WILL DO AT THE CLASS] 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 52: Line 39:
   * If you plan on re-using the boards for something else in the future, solder in header pins on the other boards. If you're building this as a fixed-in-place design, you'll want to just solder wires to the boards. Theoretically, the person that designed this de-solders the pins from the ESP8266 board, but that seems foolhardy to me (makes it MUCH more difficult to reprogram...)   * If you plan on re-using the boards for something else in the future, solder in header pins on the other boards. If you're building this as a fixed-in-place design, you'll want to just solder wires to the boards. Theoretically, the person that designed this de-solders the pins from the ESP8266 board, but that seems foolhardy to me (makes it MUCH more difficult to reprogram...)
   * wiring:   * wiring:
-    * ESP8266->BME280: GND->GND, IO2->SCL, IO0->SDA, 3.3V->3.3V +    * ESP8266->BME280: GND->GND, IO2->SCL, IO0->SDA,3V3->VCC 
-    * AMS1117->ESP8266: GND->GND, VOUT->3.3V+    * AMS1117->ESP8266: GND->GND, VOUT->3V3
     * Note that the 3.3V & GND connections are going to multiple places.       * Note that the 3.3V & GND connections are going to multiple places.  
  
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