introduction_to_the_internet_of_things
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
introduction_to_the_internet_of_things [2018/08/01 02:07] – sdh7 | introduction_to_the_internet_of_things [2018/08/22 15:09] (current) – sdh7 | ||
---|---|---|---|
Line 6: | Line 6: | ||
Install Arduino IDE if you don't already have it, and upgrade to something recent if you're below version 1.7 - http:// | Install Arduino IDE if you don't already have it, and upgrade to something recent if you're below version 1.7 - http:// | ||
+ | *Go to Preferences in the Arduino app, and enter http:// | ||
* In Boards Manager, add ESP8266 Board support | * In Boards Manager, add ESP8266 Board support | ||
- | * FIXME: This is missing steps | ||
Set up a Cayenne account - https:// | Set up a Cayenne account - https:// | ||
- | * FIXME: document getting | + | * Click on "Add new..." |
+ | * In the page that comes up, click "Bring Your Own Thing" The page that brings up will have your MQTT username/ | ||
Install the following libraries: | Install the following libraries: | ||
* Cayenne MQTT Library - https:// | * Cayenne MQTT Library - https:// | ||
- | * Adafruit Sensor Library - FIXME: URL | + | * Adafruit Sensor Library - https:// |
- | * Adafruit BME280 library - FIXME: URL | + | * Adafruit BME280 library - https:// |
* Arduino SimpleTimer library https:// | * Arduino SimpleTimer library https:// | ||
- | Modify BME280 library | + | For each of these four libraries, click on the "Clone or download" |
+ | |||
+ | Modify BME280 library: | ||
* on OS X, navigate using the finder or otherwise cd ~/ | * on OS X, navigate using the finder or otherwise cd ~/ | ||
- | * 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, and 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- it should be around line 34 or so. |
+ | * I originally had some stuff about modifying the library further, but it didn't work. Just do this, and remember to change it back if you ever get an official Adafruit BME280 breakout board. | ||
===If Using Your Phone to Tether=== | ===If Using Your Phone to Tether=== | ||
Line 36: | Line 40: | ||
==Hardware Construction== | ==Hardware Construction== | ||
+ | * First things first- TEST THE VOLTAGE REGULATOR BOARD. Unfortunately, | ||
* On the programming board, wire an SPST or SPDT switch between GPIO and GND | * On the programming board, wire an SPST or SPDT switch between GPIO and GND | ||
* 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, | * 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, | ||
Line 48: | Line 53: | ||
< | < | ||
#define CAYENNE_PRINT Serial | #define CAYENNE_PRINT Serial | ||
- | #define CLASS_BME280 1 //enable non-Adafruit BME280 board hack | ||
#include < | #include < |
introduction_to_the_internet_of_things.1533089271.txt.gz · Last modified: 2018/08/01 02:07 by sdh7