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.) Do not use the new 2.0 beta version until all the bugs are worked out of the software and all the supporting library interactions.
  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:
    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 Data Logger 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. If you are new to programming, start with the Blinking LEDs and Battery Measurement sketches.
    • 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.