You can use the free Arduino IDE programming software to program the EnviroDIY Mayfly.
- 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.
- Add the Mayfly board to the list of available boards:
- Start the Arduino software, then click on File > Preferences and paste the following URL into the box labeled Additional Boards Manager URLs:
1https://raw.githubusercontent.com/EnviroDIY/Arduino_boards/master/package_EnviroDIY_index.json
- Back in the IDE, click on Tools > Board > Boards Manager.
- Use the dropdown box to select Contributed. You should then see an option for EnviroDIY ATmega Boards.
- Click the Install button to add the EnviroDIY boards to your IDE.
- Start the Arduino software, then click on File > Preferences and paste the following URL into the box labeled Additional Boards Manager URLs:
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.