Install Arduino On Mac

  1. Install Arduino Drivers Mac
  2. Install Arduino On Mac
  3. Install Arduino On Mac
  4. Install Arduino On Mac Windows 10
  5. Install Arduino On Mac Free
  6. Install Arduino Library Mac

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

Go to the Arduino download page and download the latest version of the Arduino software for Mac. When the download is finished, un-zip it and open up the Arduino folder to confirm that yes, there are indeed some files and sub-folders inside. Installing the ESP32 Board in Arduino IDE (Mac OS X and Linux instructions) There’s an add-on for the Arduino IDE that allows you to program the ESP32 using the Arduino IDE and its programming language. 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. Install the Arduino Software (IDE) on MAC OS X 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.

  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

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.

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:

Mac

This is what my knockoff WeMos D1 board looks like:

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.

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

The CH340 chip is used by a number of Arduino compatible boards to provide USB connectivity, you may need to install a driver, don’t panic, it’s easier than falling off a log, and much less painful.


Windows

(Manufacturer’s Chinese Info Link)

  1. Download the Windows CH340 Driver
  2. Unzip the file
  3. Run the installer which you unzipped
  4. In the Arduino IDE when the CH340 is connected you will see a COM Port in the Tools > Serial Port menu, the COM number for your device may vary depending on your system.

Older Windows Driver Version and Instructions

  1. Download the Windows CH340 Driver
  2. Unzip the folder.
  3. If you are running a 64Bit Windows: – run the SETUP_64.EXE installer.
  4. If you are running a 32Bit Windows: – run the SETUP_32.EXE installer.
  5. If you don’t know, try the 64 bit and if it doesn’t work, the 32 bit.
  6. In the Arduino IDE when the CH340 is connected you will see a COM Port in the Tools > Serial Port menu, the COM number for your device may vary depending on your system.

Macintosh

(Manufacturer’s Chinese Info Link)

The following github has up to day pkg files for 1.3, 1.4 and 1.5 at time of writing, thanks to Joshua Wallis for bringing this to my attention…

Direct Download Links (from the github repo above):

See the github link above for installation instructions if you need them.

Previous macinstosh downloads if the above doesn’t work for you…

(V1.3) Download the CH340 Macintosh Signed Driver for Mavericks (10.9), Yosemite (10.10) and El Capitan (10.11) and Sierra (10.12)

Inside the zip file you will find a PDF and a “pkg” file, short version, double click the pkg file, the PDF has some extra information.

OSX Sierra (10.12) Note

A kindly user, Maarten Segers reports

FYI, the driver documented here WILL crash on OSX Sierra.

Install Arduino Drivers Mac

Make sure to use this one instead: https://github.com/MPParsley/ch340g-ch34g-ch34x-mac-os-x-driver

I can personally not test on MacOS and can not vouch for the above drivers at github, but there you go.

Install Arduino On Mac

See uninstalling information at the bottom of the page if the driver causes problems for you.

Here is an older version of the Mac driver, NOT FOR 10.12 Sierra

Install Arduino On Mac

(V1.0) Download the CH340 Macintosh Signed Driver for Mavericks (10.9), Yosemite (10.10) and El Capitan (10.11)

Linux

(Manufacturer’s Chinese Info Link)

Drivers are almost certainly built into your Linux kernel already and it will probably just work as soon as you plug it in. If not you can download the Linux CH340 Driver (but I’d recommend just upgrading your Linux install so that you get the “built in” one).

Uninstalling From Macinstosh

A couple of Mac users have said “the driver crashes my mac Sierra how do I uninstall”.

Install Arduino On Mac Windows 10

Firstly regards the crash make sure you installed the 1.3 version of the driver, not the old one. You could download it directly from the Manufacturers Website in case they have issued an update since I wrote this page.

Install Arduino On Mac Free

Secondly a quick google search reveals that this is how you uninstall:

Install Arduino Library Mac

  1. Open a terminal and type: cd /Library/Extensions/
  2. Verify that the .kext file is present: ls | grep usbserial.kext
  3. Output should be: usbserial.kext
  4. Then type: sudo rm -R usbserial.kext
  5. Verify that the .kext file has been removed: ls | grep usbserial.kext
  6. Output should be empty.
  7. After you should remove the files stored in receipts folder: cd /private/var/db/receipts/
  8. Find the enties: ls | grep usbserial*
  9. Output should be: codebender.cc.ch34xinstaller.usbserial.pkg.bom codebender.cc.ch34xinstaller.usbserial.pkg.plist
  10. Remove each one of the files of the above list: sudo rm -r filename`