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.)
- 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: https://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.
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.