-
Notifications
You must be signed in to change notification settings - Fork 4
Getting Started with Android Firmata and NodeMcu Board
Starting with 1.6.4, Arduino IDE allows installation of third-party platform packages using Boards Manager.
-
Install the current upstream Arduino IDE at the 1.8 level or later. The current version is at the Arduino website.
-
Start Arduino and open Preferences window.
-
Enter
http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas. -
Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
See https://github.com/esp8266/Arduino for more information.
Download and install the SiLabs serial driver for the chip.
See https://github.com/nodemcu/nodemcu-devkit/wiki/Getting-Started-on-OSX for more information.
-
Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmataWiFi
-
Open Tools > Board, select: NodeMCU 1.0 (ESP-12E Module)
-
Open Tools > Port, select the corresponding port
-
Hold the flash button on the NodeMCU board and Click the "Upload" button.
If the upload was successful, the board is now prepared as an Access Point.
On your Android Device, open: Settings > WLAN, you will find an Access Point with a name like ESP_XXXX, connect it.
By default the network is open, and the IP Address is 192.168.4.1
.
Now you can change the Transport URI to tcp://192.168.4.1
.
connectBoard("tcp://192.168.4.1".toTransport(), {
...
})