Install Arduino On Mac

Install the Arduino Software (IDE) on Windows PCs

This document explains how to install the Arduino Software (IDE) on Windows machines

Download the Arduino Software (IDE) Get the latest version from the download page. The file is in Zip format; if you use Safari it will be automatically expanded. If you use a different browser you may need to extract it manually. Welcome to Learn ESP32 with Arduino IDE: Unit 2: Introducing ESP32: Unit 3: Installing the ESP32 Board in Arduino IDE (Windows, Mac OS X, and Linux) Unit 4: How To Use Your ESP32 Board with this Course: Unit 5: Make the ESP32 Breadboard Friendly: Unit 6: ESP32 Troubleshooting Guide: Unit 7 Optional Programming ESP32 with Atom Text Editor.

On this page... (hide)

Download the Arduino Software (IDE)

Get the latest version from the download page. You can choose between the Installer (.exe) and the Zip packages. We suggest you use the first one that installs directly everything you need to use the Arduino Software (IDE), including the drivers. With the Zip package you need to install the drivers manually. The Zip file is also useful if you want to create a portable installation.

When the download finishes, proceed with the installation and please allow the driver installation process when you get a warning from the operating system.

MacInstall


Choose the components to install


Choose the installation directory (we suggest to keep the default one)


The process will extract and install all the required files to execute properly the Arduino Software (IDE)

Install Arduino On Mac Os

Proceed with board specific instructions

When the Arduino Software (IDE) is properly installed you can go back to the Getting Started Home and choose your board from the list on the right of the page.



Mac

Last revision 2016/08/09 by SM

The text of the Arduino getting started guide is licensed under aCreative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.

It took me way too long to get started with the WeMos D1 R2 board, partly because mine is an eBay knockoff.

  1. Download and install the Arduino IDE (just called Arduino): https://www.arduino.cc/en/Main/Software Note: I use version 1.6.8, newer versions may not work.
  2. Open Arduino
  3. Open File → Preferences
  4. Copy and paste http://arduino.esp8266.com/stable/packageesp8266comindex.json into Additional Boards Manager URLs field. You can add multiple URLs, separating them with commas
  5. Open Tools → Board:xxx → Boards Manager and install esp8266 by ESP8266 Community
  1. Open Tools → Board:xxx and select WeMos D1 R2 & mini.
  2. Open Tools → Upload Speed and select 115200. If you're brave, you can try 230400 to upload code to the board faster, but watch the console for errors.
  3. Download a driver so your Mac recognizes the WeMos D1 board (the site looks sketchy, but I can confirm the driver is legit): Note: This driver is needed for both real and knockoff D1 boards. http://www.wch.cn/download/CH341SERMACZIP.html
  1. Plug your WeMos D1 board into your Mac using a micro USB.
  2. Open Tools → Port:xxx and in the dropdown, select the option with 'usb' in its name.
  3. Your Tools dropdown should look like this:
  1. To make sure everything is working properly, let's download WeMos' example files: https://github.com/wemos/D1miniExamples/archive/master.zip
  2. Rename the uncompressed directory to D1miniExamples
  3. In Arduino, open File → Preferences
  4. In Finder, navigate to the Sketchbook location show in in Arduino's Preferences
  5. Move the D1miniExamples directory to Sketchbook location
  6. The path will look like Sketchbookdirectory/D1mini_Examples
  7. Restart the Arduino IDE
  8. All examples are under File→Sketchbook→D1miniExamples
  1. Open File→Sketchbook→D1miniExamples→01.Basics→HelloWorld
  2. Click Upload
  3. After upload, open Tools→Serial Monitor, set baudrate to 9600 baud

If you've gotten to this point, good work! Now we're going to learn a bit more about the WeMos D1's I/O ports. They're f***ed.

The fact that I have a knockoff board doesn't help either. Anyways, enough complaining. Basically, the labels on the WeMos D1 are not the same as those used in Arduino programs.

As an example, if I want to use digital port 3 (D3) as an output, this is the code I would use:

I've created a couple of reference tables for your convenience.

Official WeMos D1 Board LabelKnockoff WeMos D1 Board LabelDigital PortArduino Software
RXRX<-D0D03
TXTX->D0D11
D0D2D216
SCL/D1D15/SCL/D3D35
SDA/D2D14/SDA/D4D44
D3D13/SCK/D5D50
D4D12/MISO/D6D62
D5D11/MOSI/D7D714
D6D8D812
D7TX1/D9D913
SS/D8D10/SSD1014
MOSI/D7D11/MOSID1113
MISO/D6D12/MISOD1212
SCK/D5D13/SCKD1314
SDA/D2D14/SDAD144
SCL/D1D15/SCLD155
Install arduino library mac

Note: I can't guarantee the official WeMos D1 board mappings are correct, but they're based off this:
http://www.instructables.com/id/Programming-the-WeMos-Using-Arduino-SoftwareIDE/?ALLSTEPS

  1. Restart the Arduino IDE
  2. Try a different micro USB cable
  3. In Finder, navigate to ~/Library (to get to Library, click on Go, then press control, and click on Library). Rename Arduino15 to Arduino15-backup.Download and install the latest version of the Arduino IDE (replace your current version)Open Arduino, re-install esp8266 in the Boards Manager.

If you have any other troubleshooting tips, send them my way.

Install Arduino Library Mac Os

A good amount of the content here is based on the official WeMos documentation ( http://www.wemos.cc/tutorial/getstartedin_arduino.html ). I've simply filled in many of the gaps preventing my board from functioning properly.

This is what an actual WeMos D1 board looks like:

This is what my knockoff WeMos D1 board looks like:

Install Arduino Library Mac

Now you know how to set up your WeMos D1 board and use its ports. I'm going to leave out discussion on its WIFI capabilities because there's plenty of documentation on that already.

Arduino Setup On Mac

In the next article, I will discuss how to connect a stepper motor to the WeMos D1.