- Install Arduino Drivers Mac
- Install Arduino On Mac
- Install Arduino On Mac
- Install Arduino On Mac Windows 10
- Install Arduino On Mac Free
- 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.
- 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.
- Open Arduino
- Open File → Preferences
- 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
- 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.
- Open Tools → Board:xxx and select WeMos D1 R2 & mini.
- 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.
- 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
- Plug your WeMos D1 board into your Mac using a micro USB.
- Open Tools → Port:xxx and in the dropdown, select the option with 'usb' in its name.
- Your Tools dropdown should look like this:
- To make sure everything is working properly, let's download WeMos' example files: https://github.com/wemos/D1miniExamples/archive/master.zip
- Rename the uncompressed directory to D1miniExamples
- In Arduino, open File → Preferences
- In Finder, navigate to the Sketchbook location show in in Arduino's Preferences
- Move the D1miniExamples directory to Sketchbook location
- The path will look like Sketchbookdirectory/D1mini_Examples
- Restart the Arduino IDE
- All examples are under File→Sketchbook→D1miniExamples
- Open File→Sketchbook→D1miniExamples→01.Basics→HelloWorld
- Click Upload
- 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 Label | Knockoff WeMos D1 Board Label | Digital Port | Arduino Software |
---|---|---|---|
RX | RX<-D0 | D0 | 3 |
TX | TX->D0 | D1 | 1 |
D0 | D2 | D2 | 16 |
SCL/D1 | D15/SCL/D3 | D3 | 5 |
SDA/D2 | D14/SDA/D4 | D4 | 4 |
D3 | D13/SCK/D5 | D5 | 0 |
D4 | D12/MISO/D6 | D6 | 2 |
D5 | D11/MOSI/D7 | D7 | 14 |
D6 | D8 | D8 | 12 |
D7 | TX1/D9 | D9 | 13 |
SS/D8 | D10/SS | D10 | 14 |
MOSI/D7 | D11/MOSI | D11 | 13 |
MISO/D6 | D12/MISO | D12 | 12 |
SCK/D5 | D13/SCK | D13 | 14 |
SDA/D2 | D14/SDA | D14 | 4 |
SCL/D1 | D15/SCL | D15 | 5 |
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
- Restart the Arduino IDE
- Try a different micro USB cable
- 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:
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)
- Download the Windows CH340 Driver
- Unzip the file
- Run the installer which you unzipped
- 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
Download the Windows CH340 DriverUnzip the folder.If you are running a 64Bit Windows: – run the SETUP_64.EXE installer.If you are running a 32Bit Windows: – run the SETUP_32.EXE installer.If you don’t know, try the 64 bit and if it doesn’t work, the 32 bit.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
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
- Open a terminal and type:
cd /Library/Extensions/
- Verify that the .kext file is present:
ls | grep usbserial.kext
- Output should be:
usbserial.kext
- Then type:
sudo rm -R usbserial.kext
- Verify that the .kext file has been removed:
ls | grep usbserial.kext
- Output should be empty.
- After you should remove the files stored in receipts folder:
cd /private/var/db/receipts/
- Find the enties:
ls | grep usbserial*
- Output should be:
codebender.cc.ch34xinstaller.usbserial.pkg.bom codebender.cc.ch34xinstaller.usbserial.pkg.plist
- Remove each one of the files of the above list:
sudo rm -r
filename
`