Uduino is now compatible with the esp8266 and esp32 boards. This tutorial will go through the main steps to use Wifi for esp8266 and and esp32 boards.

Download now !

Please be sure to look at the known compatible boards at the bottom of the page

Install esp8266/esp32 library (source)

Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).

  1. Install the current upstream Arduino IDE at the 1.8 level or later. The current version is at the Arduino website.
  2. Start Arduino and open Preferences window.
  3. 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.
  4. 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).

It is a similar procedure for esp32 boards, but with https://dl.espressif.com/dl/package_esp32_index.json.

Uduino Wifi Plugin

  1. Be sure Uduino is installed in your project first
  2. Install Uduino Wifi plugin
  3. Follow the instructions on the editor panel
  4. Upload the sketch under File>Examples>Uduino_Wifi>Uduino_Wifi

Using Uduino WiFi

Uduino Wifi is compatible with your Uduino serial code. Just replace Serial.println by `uduino.println, without changing anything else: it should work!

Update or Upload the Uduino code

Uduino Wifi works the same way Uduino works. You need to adjust a few lines:

  1. Add a reference to Uduino_WiFi on the header
  2. Connect to the Wifi in setup.
#include<Uduino_Wifi.h> // Notice that here we replace  uduino by Uduino_WiFi
Uduino_Wifi uduino("uduinoBoard");// Notice that here we replace 

void setup()
{
  uduino.connectWifi("your-ssid", "your-password"); // replace 
//... uduino.addCommand ...
}

void loop()
{
  uduino.update();
  if(uduino.isConnected()) {
    uduino.println("Connected!!");
  }
}

Configure Unity

To use Uduino Wifi, on the inspector Panel toggle "Wifi" and uncheck "DesktopSerial".
You now have access to additional settings: IP address and port.
The default port is 4222 , the default IP address is 192.168.x.x, replace it with the IP address of your board.

To get the IP address of the board, open the serial port once the sketch is uploaded.

Troubleshooting

When I open the Serial port I only see "..........."
Verify the ssid and the password of your WiFi credentials.

Compatible boards

So far, we didn't test most of the esp8266 boards. Theoretically, any board supported by the ESP8266 Arduino core and ESP32 should work.
Here is the list of the known compatible boards:

  • ESP8266-01
  • Node MCU 0.9
  • Node MCU 1.0
  • Node MCU 32S
  • WeMos D1, R1 &R2
  • ESPectro Core
  • SparkFun ESP8266 Thing