Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Mayfly Data Logger Software

You can use the free Arduino IDE programming software to program the EnviroDIY Mayfly.

  1. Download and install the latest version from Arduino.cc. (If you already have the IDE installed on your computer, ensure that you are using version 1.6.5 or newer.)
  2. Add the Mayfly board to the list of available boards:
    1. Start the Arduino software, then click on File > Preferences and paste the following URL into the box labeled Additional Boards Manager URLs: https://raw.githubusercontent.com/EnviroDIY/Arduino_boards/master/package_EnviroDIY_index.json
    2. Back in the IDE, click on Tools > Board > Boards Manager.
    3. Use the dropdown box to select Contributed. You should then see an option for EnviroDIY ATmega Boards.
    4. Click the Install button to add the EnviroDIY boards to your IDE.

Now when you click Tools > Board you will see the EnviroDIY Mayfly 1284P listed either at the top or bottom of your list of available boards.

Example Sketches and Tutorials

  • You can find a series of example sketches using the EnviroDIY Mayfly in the EnviroDIY_Mayfly_Logger GitHub repository. The examples folder has a series of sketches of increasing complexity showcasing many of the features of the Mayfly. The workshop folder has a similar set of sketches, specifically those used in workshops taught by Stroud Water Research Center.
  • You can find another full set of tutorials on programming Arduino-framework micro-controllers as environmental data loggers at https://envirodiy.github.io/LearnEnviroDIY/.
  • Are you somewhat comfortable with programming and looking for ready-to-use code for the Mayfly as an environmental data logger? Check out the ModularSensors GitHub repository.
  • Are you new to programming? Try your hand with the Blinking LEDs and Battery Measurement sketches.

Looking for the Simple File Example, Digital Humidity/Temperature Sensor, Serial Communication, Ultrasonic Sensor, and/or Sleeping Mayfly Logger sketch? We have removed them as they are outdated and depend on old libraries. Please refer to the examples sketches listed above instead.