ProDino WiFi
Examples

ProDino WiFi examples suggest you how to use your board. The board details...

ProDino WiFi Tutorials...

How to start with examples


Following next steps

  • 1
    If you don't install a board and examples, see here...
  • 2
    In Arduino IDE select File>Examples>PRODINo_WiFi-ESP_WROOM-02>(example name)
  • 3
    Click over the button "Verify"
  • 4
    Press the button "Upload"

In examples which connect to your WiFi network (without access point examples) you have to set WiFi credentials in a sketch code:

PRODINo WiFi ESP WiFi settings

Working with Blynk short version (WiFiBlynk)


It's an example shows how to use a PRODINo WiFi-ESP WROOM-2 device with http://www.blynk.cc/ (Blynk is designed for the Internet of Things. It can control hardware remotely, it can display sensor data, it can store data, visualise it and do many other cool things.).

PrerequisitesBefore start this an example you need to install

  • 1
    Install Blynk library: SketchInclude libraryMenage Libraries... find Blynk and click Install
  • 2
    DHT library: https://github.com/adafruit/DHT-sensor-library
  • 3
    Connect DHT22 sensor to GROVE connector. Use pins:
     - first sensor EXT_GROVE_D0, Vcc+, Gnd(-)
     - second sensor (if you need) EXT_GROVE_D1, Vcc+, Gnd(-)

Pin maps PRODINo WiFi-ESP -> Blynk:

  • OptoIn and DHT data -> V0 {Type: "LCD", Mode: "Advanced", Input: "V0", Color: "Green" }
  • Relay1 -> V1 {Type: "Button", Name: "Relay 1", Color: "Green", Output: "V1", Mode: "Switch" }
  • caret-right
    Relay2 -> V2 {Type: "Button", Name: "Relay 2", Color: "Blue", Output: "V2", Mode: "Switch" }
  • caret-right
    Relay3 -> V3 {Type: "Button", Name: "Relay 3", Color: "LightBlue", Output: "V3", Mode: "Switch" }
  • caret-right
    Relay4 -> V4 {Type: "Button", Name: "Relay 4", Color: "Orange", Output: "V4", Mode: "Switch" }

1. Download

 your a mo​​​​bile application from http://www.blynk.cc/

2. You should register in Blynk

3. Create a new project

PRODINo WiFi Examples Blynk

4. Adding the project name

PRODINo WiFi Examples Blynk settings

5. Copy your project token

It should fill in the example code on a row:

char AUTH_TOKEN[] = "1234567890abcdef1234567890abcde";

6. Showing the widgets

PRODINo WiFi Examples Blynk

7. Adding four Button with fallows names: Relay 1, Relay 2, Relay 3 and Relay 4. Set button Mode to Switch

PRODINo WiFi Examples Blynk relay
PRODINo WiFi Examples Blynk relay
PRODINo WiFi Examples Blynk relay
PRODINo WiFi Examples Blynk relay

8. The result is followed

PRODINo WiFi Examples Blynk relays buttons

9. Adding LCD widget. Set LCD widget to Advanced mode

PRODINo WiFi Examples Blynk

10. This is the application 

PRODINo WiFi Examples Blynk display

11. After you start the ProDino WiFi-ESP WROOM-2 device, on your mobile device you see:

PRODINo WiFi Examples Blynk

A Blynk full version (WiFiBlynkFull)


Prerequisites: see example above

Pin maps PRODINo WiFi-ESP -> Blynk:

  • Relay1 -> V1 {Type: "Button", Name: "Relay 1", Color: "Green", Output: "V1", Mode: "Switch" }
  • caret-right
    Relay2 -> V2 {Type: "Button", Name: "Relay 2", Color: "Blue", Output: "V2", Mode: "Switch" }
  • caret-right
    Relay3 -> V3 {Type: "Button", Name: "Relay 3", Color: "LightBlue", Output: "V3", Mode: "Switch" }
  • caret-right
    Relay4 -> V4 {Type: "Button", Name: "Relay 4", Color: "Orange", Output: "V4", Mode: "Switch" }
  • caret-right
    OptoIn1 -> V5 {Type: "LED", Name: "In 1", Color: "Green", Input: "V5" }
  • caret-right
    OptoIn2 -> V6 {Type: "LED", Name: "In 2", Color: "Green", Input: "V6" }
  • caret-right
    OptoIn3 -> V7 {Type: "LED", Name: "In 3", Color: "Green", Input: "V7" }
  • caret-right
    OptoIn4 -> V8 {Type: "LED", Name: "In 4", Color: "Green", Input: "V8" }
  • caret-right
    DHT1T -> V9 {Type: "Value Display", Name: "Temperature", Color: "Green", Input: "V9", Min:"-40", Max:"80", ReadingFrecuency: "5sec" }
  • caret-right
    DHT1H -> V10 {Type: "Value Display", Name: "Humidity", Color: "Green", Input: "V10", Min:"0", Max:"100", ReadingFrecuency: "5sec" }

1. Create a new project

2. Adding the project name

PRODINo WiFi Examples Blynk

3. Copy your project token

4. Start the project

5. Showing the widgets

6. Adding four Button with fallows names: Relay 1, Relay 2, Relay 3 and Relay 4 (see example above)

7. Add four LED widgets with names: In 1, In 2, In 3 and In 4

PRODINo WiFi Examples Blynk inputs
PRODINo WiFi Examples Blynk inputs
PRODINo WiFi Examples Blynk inputs
PRODINo WiFi Examples Blynk inputs

8. Adding two Value display widgets for a Temperature (set input Min from -40 and Max to 80) and a Humidity (set input Min from 0 and Max to 100).

PRODINo WiFi Examples Blynk temperature
PRODINo WiFi Examples Blynk Humidity

9. This is the application 

PRODINo WiFi Examples Blynk

10. After you start the ProDino WiFi-ESP WROOM-2 device, on your mobile device you see:

PRODINo WiFi Examples Blynk temperature and humidity

Measuring temperature and humidity with DHT sensors web server version (WiFiWebDHTSrv)


Prerequisites

  • Before start this example you need to install DHT library: https://github.com/adafruit/DHT-sensor-library
  • caret-right
    Connect DHT22 sensor to External GROVE connector. Use pins:
     - first sensor EXT_GROVE_D0, Vcc+, Gnd(-)
     - second sensor (optional) EXT_GROVE_D1, Vcc+, Gnd(-)
  • caret-right
    Setting your WiFi ID and Password

The code and debug information

PRODINo WiFi ESP temperature and humidity DHT22

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP temperature and humidity DHT22

Temperature and humidity with DHT sensors web AP (access point) version (WiFiWebDHTSrvAP)


Prerequisites (see example above)

With your mobile device you can find WiFi device with SSID "KMP ProDino WiFi-ESP xx:xx" and password "kmp12345".

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP temperature and humidity DHT22

Checking optical isolated inputs, web server version (WiFiWebOptoInSrv)


Prerequisites

  • caret-right
    Setting your WiFi ID and Password

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP optical isolated inputs

Optical isolated inputs, web AP version (WiFiWebOptoInSrvAP)


Prerequisites (see example above)

With your mobile device you can find WiFi device with SSID "KMP ProDino WiFi-ESP xx:xx" and password "kmp12345".

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP optical isolated inputs

Working with relays, web server version (WiFiWebRelaySrv)


Prerequisites

  • caret-right
    Setting your WiFi ID and Password

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP Internet relay

Relays web AP version (WiFiWebRelaySrvAP)


Prerequisites (see example above)

With your mobile device you can find WiFi device with SSID "KMP ProDino WiFi-ESP xx:xx" and password "kmp12345".

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP Internet relay

Working with RS485, web server version (WiFiWebRS485)


Prerequisites

  • caret-right
    Before start this an example you need to install other RS485 device which after receives data, transmit data back or an echo device
  • caret-right
    Default RS485 speed is 19200
  • caret-right
    Setting your WiFi ID and Password

The result

Find your device IP address. You enter it in browser. The result is:

PRODINo WiFi ESP RS485