This is an old revision of the document!
Software Setup You should do the following things before the class:
Install Arduino IDE if you don't already have it - http://arduino.cc
- Unordered List ItemIn Boards Manager, add ESP8266 Board support
Set up a Cayenne account - https://cayenne.mydevices.com
Install the following libraries:
- Cayenne MQTT Library - https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino
- Adafruit Sensor Library
- Adafruit BME280 library
- Arduino SimpleTimer library https://github.com/marcelloromani/Arduino-SimpleTimer
Modify BME280 library
- on OS X, navigate using the finder or otherwise cd ~/Documents/Arduino/libraries/Adafruit_BME280_Library-master/
- edit Adafruit_BME280.h using your favorite editor- change #define BME280_ADDRESS from 0x77 to 0x76
- more advanced C programmers may do something like:
#define BME280_ADDRESS 0x77 #ifdef CLASS_BME280 #define BME280_ADDRESS 0x76 #endif
and then add #define CLASS_BME280 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…
Hardware Construction - On the programming board, wire an SPST or SPDT switch between GPIO
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.