Installing the Arduino IDE – macOS
by Jon Murphy
Arduino themselves have a wealth of information on installing the IDE on most operating systems in the ’Getting Started’ part of their website. Be sure to read through this before continuing.
Download the latest Arduino IDE here and click on the Mac OS X installer.
This will download the Arduino app to the Download folder. After completion move the Arduino.app to your Applications folder.
Note: If the file is downloaded as a ZIP file then double-click to uncompress. And then move the file to the Applications folder.
Download and Install the Drivers
If you are using the OpenEnergyMonitor USB to serial UART Programmer, do not follow the instructions for installing the drivers on the Arduino website, instead download the drivers from https://learn.openenergymonitor.org/electricity-monitoring/programmers/ftdi-programmer.
If you are using the OpenEnergyMonitor USB to serial UART Programmer sold before January, 2021, follow these instructions: https://learn.openenergymonitor.org/electricity-monitoring/programmers/wicked-device to install the drivers.
Make sure you restart the Arduino IDE after installing the drivers. Before connecting the programmer, check
Tools > Port and make note of the available ports. Now connect the programmer and your module (emonTx, emonTH, etc). Go back to the main menu and select
Tools > Port again.
Port should be available and showing a new port. Select the port
/dev/cu.SLAB_USBtoUART. And under
Tools > Board ensure
Arduino/Genuino Uno is selected.
If you have a favourite text editor, you can use it instead of the built-in editor. Select
File > Preferences and tick the box
Use external editor. When you use an external editor, your workflow is slightly different. You must still open the sketch in the IDE, but the IDE does not open your editor - you must yourself open the sketch file in your external editor, and save the file when editing is done. Then you switch to the IDE where you can click
Upload and the IDE will read the file again and then proceed to compile it (“Verify”) or compile and upload it (“Upload”).
Read the section on Installing the Arduino Libraries – macOS before you set your Sketchbook location (under