Skip to content

Latest commit

 

History

History
136 lines (100 loc) · 4.29 KB

File metadata and controls

136 lines (100 loc) · 4.29 KB

Table of contents

Introduction

An OPC UA running server on ESP32-ISO development board with Ethernet and BME280 Sensor,DHT22 Sensor. Also with a temperature,pressure,humidity nodes reading over GPIO 4 and I2C from a DHT-22 sensor and BME280. The Project Build on ESP-IDF Environment to make it compatible with FreeRTOS and xtensa-toolchain.

Hardware Setup

BME280 GPIO ESP32
VCC 3V
GND GND
SDA GPIO13
SCL GPIO16
SDO 3V

NOTE: BME280 has 2 mode SPI and I2C and when connecting SDO to 3V this will mapping to I2C

DHT22

DHT22 GPIO ESP32
VCC 3V
GND GND
DATA OUT GPIO 4

Photos

Technologies

Project is created in 2021:

  • TCP-IP
  • OPC-UA Protocol
  • Power over Ethernet DC

Setup

These Points you need to follow :

* Building ESP-IDF Environment
* Clone OPC-UA Project & Building
* Flashing and Monitoring 
* Connect With OPC-UA Client 
  • Building IDF Environment:

  • Ubuntu and Debian:

  • sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools

  • sudo apt-get install cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0

  • mkdir -p ~/esp

  • cd ~/esp

  • git clone --recursive https://github.com/espressif/esp-idf.git

  • cd ~/esp/esp-idf

  • ./install.sh

  • . ./export.sh

ENDING Build ESP32-IDF Environment


Clone OPC-UA Project & Building

  • cd ~/esp/esp-idf/examples/
  • git clone https://github.com/leonvita91/OPC-UA-SERVER-with-BME280-DHT22-Ethernet-POE.git
  • cd opc-ua-with-bme280/
  • idf.py build
  • idf.py flash && idf.py monitor

NOTE: Connect your ESP32 with USB and Ethernet Cable to get (IP,MAC)

{- CAUTION !! -}

{-Dont Connect the ESP32 Board With USB and POE Ethernet in the same Time this will cause reverse electricity to your PC-}

{+ Please Connect Usb with cable without POE when you doing Monitoring OR Connecting POE Ethernet without Usb +}

ENDING Build OPC-UA With Flashing ESP32 Board

Extra_setups

The Extra Setup include :

  • add new nodes.
  • editing OPC-UA buffer.
  • editing idf.py menuconfig settings.

Please Check the link below for extra_setup.md

Problems We Had Solved

Reference


{+Inspiration and Thanks!+}

  • Paul Petring, I appreciate your consideration/guidance/help/time. With your guidance and support,Thank you for sharing your wisdom and knowledge with me when I need it. [email protected]

  • Paul schwanse, I'm humbled and grateful for all your support,Thank you for your assistance/consideration/encouragement/guidance/support/thoughtfulness/time. [email protected]

  • Finally, Many thanks for Helmholtz-Zentrum Dresden-Rossendorf giving me this opportunity.