Installing Arduino Libraries
In this example we will install the EmonLib Library which is an openenergymonitor library for doing AC Voltage and Current sampling and calculations and is used by the emontx. This project requires several different libraries from Ethernet libraries to LCD and one wire temperature sensing libraries, most of these are listed at the bottom of this page for quick reference but always check the firmware (arduino sketch) and accompanying docs for latest versions and links.
In this example we use Linux Ubuntu, the procedure is exactly the same on windows/mac.
1) Download the Library
EmonLib can be found here: https://github.com/openenergymonitor/EmonLib
2) Locate your Arduino sketchbook folder and unzip into the libraries sub directory
When downloading from github, github adds some extra foldername that needs to be removed.
3) Rename the Library to EmonLib
Arduino only accepts ASCII characters in library names so you have to rename after extracting.
4) Important step: Close and restart any open arduino IDE window.
For this example click on File>Sketchbook>libraries>EmonLib>Voltage_and_current to load the EmonLib Voltage and current measurement example. Click on the tick button or Sketch>Verify/Compile. If everything is setup correctly it should compile and show the message Done Compiling as in the screenshot below.
5) Repeat the above steps for all the other libraries needed: