Environmental Sensing Workshop

Arduino IDE Preparation

  1. Go to https://www.arduino.cc/en/Main/Software and download the Arduino IDE.
  2. Add Adafruit boards manager to your Arduino IDE: https://learn.adafruit.com/adafruit-feather-m0-adalogger/setup
  3. Add Adafruit Feather M0 board: https://learn.adafruit.com/adafruit-feather-m0-adalogger/using-with-arduino-ide
  4. Connect the Feather M0 Adalogger and run the SD card test: https://learn.adafruit.com/adafruit-feather-m0-adalogger/using-the-sd-card

Working with Sensors

  1. We are using BME280 temperature, barometric pressure and humidity sensor: https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/overview
  2. Use I2C wiring: https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/arduino-test
  3. Basic testing. Follow the previous tutorial and go to Load Demo section.
  4. Before uploading the code, do comment out* following lines (these are for SPI wiring):

#define BME_SCK 13

#define BME_MISO 12

#define BME_MOSI 11

#define BME_CS 10

* In C++, use double slash (//) to comment. The Arduino IDE won’t compile comments into the microcontroller. Use ctrl + / to comment out the whole line.

Working with GPS

  1. https://learn.adafruit.com/adafruit-ultimate-gps-featherwing
  2. Basic test: https://learn.adafruit.com/adafruit-ultimate-gps-featherwing/basic-rx-tx-test

Run the Code

  1. Download the code from here: https://github.com/zihaoooo/FeatherGPS-logger
  2. Hit verify button on the top left corner and fix all the missing libraries if necessary. Go to Sketch > Include Library > Manage Libraries… and search for the missing libraries and install.
  3. Upload.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.