Installation

You have to follow a few steps before programming Nayad.

This setup is necessary only if you haven’t yet configured your Arduino IDE to work with Nayad.

Make sure you already have installed Python and Pyserial before starting with the installation (check troubleshooting to see how to install them).

Installing the Arduino IDE

Linux, Mac, Windows

  1. Install the software Arduino IDE

  2. Go to File > Preferences

There is a field called Additional Boards Manager URLs Adiconais in which we add the following line:

https://dl.espressif.com/dl/package_esp32_index.json

  1. In Tools > Boards Manager add ESP32:

  1. Then we should be able to see the list of new boards in Tools > Board

  1. Now just select the ESP32 Dev Module, the model used by Nayad Modular.

Eventually Mac and Windows users might face problems connecting with NAYAD card. This is a known issue, due to missing of a communication drivers.

Windows and Mac - Extra Step

To solve the issue with serial communication, we have to install the following drivers:

Windows

CH341SER.zip

Mac

CH341SER_MAC.ZIP

Add libraries:

Nayad uses different libraries, including extra libraries developed specifically for its configuration and sensors. There are two different ways to install standard and extra libraries. They are described bellow:

Standard Libraries:

In tools > library manager add the following libraries:

ArduinoHttpClient
ArduinoJson
DallasTemperature
OneWire
PubSubClient
ThingsBoard

Extra Libraries

  1. Download the libraries in zip format:
Nayad-RTC Repository Nayad-pH Repository Nayad-pH Repository
  1. Go to Sketch > Include Library > Add ‘.zip’ Library.
  2. Open the download .zip files.