Below are instructions on how to install firmware on the WeMos D1 Mini that allows its use with Johnny Five and other Node.js projects.
- Get a high quality micro-USB to USB cable. This cannot be understated. A cheap cable will only provide power and an unreliable data connection. Get a nice USB cable that you know can transfer data.
- Install the CH340G USB driver for your computer. In order to communicate over USB, you’ll need to install the proper USB to Serial driver: https://wiki.wemos.cc/downloads. This driver should be signed and ready to go. There are other unsigned versions available, but they are deprecated.
- Download the Arduino IDE Get the installable IDE, not the Web Editor.

- Open the Arduino IDE.
- Open the Preferences... menu.
- In the Additional Board Manager URLs field, enter the following URL:
ttp://arduino.esp8266.com/stable/package_esp8266com_index.json
- Open the Tools menu and select Board > Board Manager...
- Search for "ESP8266" and install the esp8266 package.

- In the Tools > Board select "WeMos D1 R2 & Mini"

- Go to the Firmata repository and download the .zip file.

- Unzip the file into your Documents/Arduino/libraries/ folder. ("My Documents" on Windows).
- Restart the Arduino IDE
- Open the File menu. Select Examples > Firmata > StandardFirmataWifi.

- This will open 2 files: StandardFirmataWifi and wifiConfig.h in your Arduino IDE.

- StandardFirmataWifi - Line 85: Uncomment
#define SERIALL_DEBUGby deleting the//. - StandardFirmataWifi - Link 998: Add
analogWriteRange(255);betweenDEBUG_BIGIN(9600);andinitTransport();. - wifiConfig.h - Line 119: Replace "your_network_name" with the name of your wireless network (e.g. "WebWorkers Guest").
- wifiConfig.h - Line 151: Replace "your_wpa_passphrase" with the password for your Wifi network.
- Select File > Save As... and save your firmware with a new name like StandardFirmataWifi-Nodebots.
- Plug the WeMos D1 Mini board into a USB port on your computer.
- Open the Tools > Port > and select the USB Serial entry (it will look different on Mac vs. PC).

- Click the "Verify" button on the Arduino IDE (the checkmark).
- Then click the "Upload" button (the right-arrow) to upload the firmware to your WeMos.

- Open the Tools menu and select Serial Monitor. Change the baud rate to 9600 baud.
- Press the 'reset' button on the WeMos (a very tiny button near the USB port). You should see the WeMos reset in the Serial Monitor window, and print out an IP address.
.