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/07/11 20:01] sdh7introduction_to_the_internet_of_things [2018/07/31 23:32] sdh7
Line 7: Line 7:
 Install Arduino IDE if you don't already have it, and upgrade to something recent if you're below version 1.7 - http://arduino.cc Install Arduino IDE if you don't already have it, and upgrade to something recent if you're below version 1.7 - http://arduino.cc
   * 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://cayenne.mydevices.com Set up a Cayenne account - https://cayenne.mydevices.com
 +  * FIXME: document getting MQTT connect info
  
 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 19: 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 editorchange #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 #define CLASS_BME280 at the beginning of your programso that way if you get an Adafruit BME280 board in the future, it will continue to work right...+===If Using Your Phone to Tether=== 
 +I have not tested phone tethering- the prototype worked directly with our in-space WiFi. However, if you wish to try it, there are some instructions to be found here: 
 +  * [[https://www.androidcentral.com/how-set-wi-fi-hotspot-android-phone|Android setup]] 
 +  * [[https://support.apple.com/en-il/HT204023|iOS setup]]
  
 ====THINGS WE WILL DO AT THE CLASS==== ====THINGS WE WILL DO AT THE CLASS====
Line 34: Line 32:
   * ESP8266 Wifi-enabled microcontroller   * ESP8266 Wifi-enabled microcontroller
   * BME280 sensor array   * BME280 sensor array
-  * AD1117 voltage regulator+  * AMS1117 voltage regulator
   * CH34x-based programmer for the ESP8266   * CH34x-based programmer for the ESP8266
  
 ==Hardware Construction== ==Hardware Construction==
   * 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  +  * 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. Theoreticallythe 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: 
-If you want to re-use the component boards for other projectssolder pins into the BME280/Voltage regulator boards.+    * ESP8266->BME280: GND->GND, IO2->SCL, IO0->SDA,3V3->VCC 
 +    * AMS1117->ESP8266: GND->GND, VOUT->3V3 
 +    * Note that the 3.3V & GND connections are going to multiple places.  
  
 +==Software Programming==
 +This is the stock program for the class, with some minor edits to account for our BME280 header hack above.
  
-==Software Programming== 
 <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
Line 114: Line 115:
  
 **Power considerations** **Power considerations**
-The kit does not come with a power source. The regulator board requires at least 4.5V (and at most 15V!) to adequately supply 3.3V to the ESP8266 and BME280 boards. A 9V battery or 6V AA case should work. You should be able to power via USB with the serial board as well- just run wires from 3.3v & ground to the appropriate ESP8266 pins.+The kit does not come with a power source. The regulator board requires at least 4.5V (and at most 15V!) to adequately supply 3.3V to the ESP8266 and BME280 boards. A 9V battery or 6V AA case should work. You should be able to power via USB with the serial board as well- just run wires from 3.3v & ground to the appropriate ESP8266 pins and leave out the AMS1117.
  
  
introduction_to_the_internet_of_things.txt · Last modified: 2018/08/22 11:09 by sdh7

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki