EQSP32x
Quickstart Guide

End to End Industrial IoT Application Overview

An End-to-End IoT automation application consists of the main/local system, which interacts with the environment using sensors and actuators and the IoT component, interfacing via a database/server with the users’ end.

EQSP32 Industrial IoT controller end to end IIoT application layout

Setup

Install EQSP32 Library

In “Library Manager”:

  • type “EQSP32”
  • press “install” on “EQSP32 by Erqos Technologies”

 

To install EQSP32 library, either use “Add .ZIP Library” method, after downloading the .zip file from EQSP32 Library link below, or simply search for “EQSP32” in Arduino IDE’s library manager.

Setup Arduino IDE

Install ESP32 Boards

In “Boards Manager”:

  • type “esp32”
  • press “Install” on “esp32 by Espressif System” package

EQSP32 is build around ESP32-S3 core, which is not by default included in Arduino IDE.

To add esp32 device support in our IDE, go to “Boards Manager”, type “esp32” and press “Install” in the “esp32 by Espressif System” package.

Note that EQSP32 v0.1.1 library supports up to esp32 v2.0.14 core.

Define EQSP32 Board Parameters

Tools > Board > esp32 > ESP32S3 Dev Module

EQSP32’s core is ESP32-S3.

We need to define this to Arduino IDE for our program to be build.

Tools > Flash size > 8M

Specify flash memory size.

Tools > Partition Scheme > 8M with spiffs

Setup the partition scheme of our program.

EQSP32 Configuration

EQConnect Configuration Utility

Download EQConnect mobile app to configure EQSP32’s WiFi credentials, timezone and link the device with your email.

EQConnect Overview

EQConnect will automatically search for available EQSP32 devices connect.

Make sure the Bluetooth led is flashing for your EQSP32 to be discoverable.

If not, a short press on the boot button will enable BLE for 2 minutes.

EQConnect automatic device search
EQConnect connected to bluetooth

Navigate to the WiFi configuration tab and EQSP32 will automatically scan for the strongest nearby networks.

EQConnect automatic network scan
EQConnect strongest networks found

Select your preferred network, type your password and connect.

EQConnect network select
EQConnect enter password
EQConnect connect to wifi

Add IoT Functionality

Getting Started with Firebase

For an end-to-end IoT automation application, effective communication between the native/local system and the end user through the internet is essential.

The end user may use a mobile application to access the system’s information and to issue configurations and commands.

To enable this interaction, the IoT system requires a server and a database.

The server is the remote system running the database and the database stores all the system parameters that are shared with the user, who can then access these parameters to configure and command the shared systems.

Create a Realtime Database Project

Press “Get started”.

“Add project”.

Choose a name for your database and press “Continue”.

Wait for project setup and then press “Continue”.

Navigate to “Build” > “Realtime Database”, on the left side of the dashboard.

Press “Create Database”.

Select a location that is closest to your systems location. Choosing the closest server will increase database performance.

Select “Start in test mode” and EQSP32 will handle the security rules when it connects on the database.

Navigate to Build > Authentication to select the authentication method and trigger the automatic API key generation.

Press “Get started”.

Go to “Sign-in method and select “Email/Password”.

Make sure only Email/Password is enabled and press save.

We can see that Email/Password is now enabled as Sign-in provider.

Get your API Key and Database URL

On the top left, next to “Project Overview”, press the gear > Project settings.

Your Web API Key has been automatically generated and it is ready to be copied to your code.

Navigate to Build > Realtime Database to find your database’s URL.

Copy this also to your EQSP32 initialization code.