Industrial Shields ESP32 User manual

ESP32 ETHERNET & WIFI & BLUETOOTH PLC
FAMILY
PLC ESP32 ETHERNET & WIFI & BLUETOOTH FAMILY

Rev. 9: 07-11-2022
3
Preface
This User Guide has been implemented by Boot & Work, S.L. working
under the name Industrial Shields.
Purpose of the manual
The information contained in this manual can be used as a reference to operating, to
functions, and to the technical data of the signal modules, power supply modules and
interface modules.
Intended Audience
This User Guide is intended for the following audience:
•Persons in charge of introducing automation devices.
•Persons who design automation systems.
•Persons who install or connect automation devices.
•Persons who manage working automation installation.
Warnings:
•Unused pins should not be connected. Ignoring the directive may damage the
controller.
•Improper use of this product may severely damage the controller.
•Refer to the controller’s User Guide regarding wiring considerations.
•Before using this product, it is the responsibility of the user to read the product’s User
Guide and all accompanying documentation.
•Maintenance must be performed by qualified personnel familiarized with the
construction, operation, and hazards involved with the control.
•Maintenance should be performed with the control out of operation and
disconnected from all sources of power.
•Care should be taken when servicing electrostatic sensitive components. The
manufacturer's recommendations for these components should be followed.
•The ESP32 ETHERNET&WIFI&BLUETOOTH PLCFamily PLCs are Open Type Controllers. It
is required that you install the ESP32 ETHERNET&WIFI&BLUETOOTH PLCPLC in a

Rev. 9: 07-11-2022
4
housing, cabinet, or electric control room. Entry to the housing, cabinet, or electric
control room should be limited to authorized personnel. Failure to follow these
installation requirements could result in severe personal injury and/or property
damage. Always follow these requirements when installing ESP32
ETHERNET&WIFI&BLUETOOTH PLC family PLCs.
•In case of installation or maintenance of the ESP32 ETHERNET&WIFI&BLUETOOTH PLC
please follow the instructions marked in the Installation and Maintenance section.
•Do not disconnect equipment when a flammable or combustible atmosphere is
present. Disconnection of equipment when a flammable or combustible atmosphere is
present may cause a fire or explosion which could result in death, serious injury and/or
property damage.
Avertissements:
•Les broches non utilisées ne doivent pas être connectées. Ignorer la directive peut
endommager le contrôleur.
•Une utilisation incorrecte de ce produit peut endommager gravement le contrôleur.
•Reportez-vous au Guide de l’utilisateur du contrôleur pour les considérations de
câblage.
•Avant d’utiliser ce produit, il incombe à l’utilisateur de lire le Guide de l’utilisateur du
produit et la documentation qui l’accompagne.
•La maintenance doit être effectuée par personnel qualifié familiarisé avec la
fabrication, le fonctionnement et les dangers liés au contrôleur.
•La maintenance doit être effectuée avec l’équipement hors service et déconnectée de
toutes les sources d'alimentation.
•Faites attention lors de l'entretien des composants sensibles à l'électricité statique.
Les recommandations du fabricant pour ces composants doivent être suivies.
•Les automates de la famille ESP32 ETHERNET&WIFI&BLUETOOTH PLCsont des
contrôleurs de type ouvert. Il est nécessaire d'installer l'automate ESP32
ETHERNET&WIFI&BLUETOOTH PLCdans un boîtier, une armoire ou une salle de
contrôle électrique. L'accès au boîtier, à l'armoire ou à la salle de commande
électrique doit être limité au personnel autorisé. Le non-respect de ces exigences
d'installation peut entraîner des blessures graves et/ou des dommages matériels
importants. Respectez toujours ces exigences lors de l'installation des automates de la
famille ESP32 ETHERNET&WIFI&BLUETOOTH.
•En cas d'installation ou de maintenance du ESP32 ETHERNET&WIFI&BLUETOOTH PLC,
veuillez suivre les instructions indiquées dans la section Installation et Maintenance.
•Ne débranchez pas l'équipement en présence d'une atmosphère inflammable ou
combustible. La déconnexion de l'équipement en présence d'une atmosphère

Rev. 9: 07-11-2022
5
inflammable ou combustible peut provoquer un incendie ou une explosion pouvant
entraîner la mort, des blessures graves et/ou des dommages matériels.
Application Considerations and Warranty
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your
comments or questions to Industrial Shields before using the product.
Application Consideration
THE PRODUCTS CONTAINED IN THIS DOCUMENT ARE NOT SAFETY RATED.
THEY SHOULD NOT BE RELIED UPON AS A SAFETY COMPONENT OR
PROTECTIVE DEVICE FOR ENSURING SAFETY OF PERSONS, AS THEY ARE
NOT RATED OR DESSIGNED FOR SUCH PURPOSES.
Please know and observe all prohibitions of use applicable to the products.
FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY
WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESSIGNED
TO ADDRESS THE RISKS, NEVER USE THE INDUSTRIAL SHIELDS PRODUCTS.
NEVER USE THE INDUSTRIAL SHIELDS PRODUCTS BEFORE THEY ARE
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE
OVERALL EQUIPMENT OR SYSTEM.
Industrial Shields shall not be responsible for conformity with any codes, regulations or
standards that apply to the combination of products in the customer’s application or use
of the product.
The following are some examples of applications for which particular attention must be
given. This is not intended to be an exhaustive list of all possible uses of the products,
nor is it intended to imply that the uses may be suitable for the products:
•Systems, machines, and equipment that could present a risk to life or property.
•Nuclear energy control systems, combustion systems, railroad systems,
aviation systems, medical equipment, amusement machines, vehicles, safety
equipment, and installation subject to separate industry or government
regulations.
•Outdoor use, uses involving potential chemical contamination or electrical
interference, or conditions or uses not described in this document.
At the customer’s request, INDUSTRIAL SHIELDS will provide applicable third party
certification documents identifying ratings and limitations of use that apply to the
products. This information by itself is not sufficient for a complete determination of the
suitability of the products in combination with the system, machine, end product, or
other application or use.

Rev. 9: 07-11-2022
6
Intended use or of Industrial Shields products
Consider the following:
Industrial Shields products should only be used for the cases of application foreseen in
the catalogue and the associated technical documentation. If third-party products and
components are used, they must have been recommended or approved by Industrial
Shields.
The correct and safe operation of the products requires that your transport, storage,
installation, assembly, operation and maintenance have been carried out in a correct It
must respect the permissible ambient conditions. You should also follow the indications
and warnings that appear in the associated documentation.
The product / system dealt with in this documentation should only be handled or
manipulated by qualified personnel for the task entrusted and observing what is
indicated in the documentation corresponding to it, particularly the safety instructions
and warnings included in it. Due to their training and experience, qualified personnel
are in a position to recognize risks resulting from the handling or manipulation of such
products / systems and to avoid possible hazards.
Disclaimers
Weights and Dimensions
Dimensions and weights are nominal and they are not used for manufacturing
purposes, even when tolerances are shown.
Performance Data
The performance data given in this manual is provided as a guide for the user in
determining suitability and does not constitute a warranty. It may represent the result of
INDUSTRIAL SHIELDS’s test conditions, and the users most correlate it to actual
application requirements. Actual performance is subject to the INDUSTRIAL SHIELDS
Warranty and Limitations of Liability.
Errors and Omissions
The information in this document has been carefully checked and is believed to be
accurate; however, no responsibility is assumed for clerical, typographical, or
proofreading errors, or omissions.
The control and drive components of an Industrial Shields PLC are approved for
industrial and commercial use in industrial line supplies. Their use in public line
supplies requires a different configuration and/or additional measures. These
components may only be operated in closed housings or in higher-level control
cabinets with protective covers that are closed, and when all of the protective devices
are used. These components may only be handled by qualified and trained technical
personnel who are knowledgeable and observe all of the safety information and
instructions on the components and in the associated technical user documentation.

Rev. 9: 07-11-2022
7
When carrying out a risk assessment of a machine in accordance with the EU
Machinery Directive, the machine manufacturer must consider the following residual
risks associated with the control and drive components of a PDS.
1. Unintentional movements of driven machine components during commissioning,
operation, maintenance, and repairs caused by, for example: − Hardware defects
and/or software errors in the sensors, controllers, actuators, and connection technology
−Response times of the controller and drive − Operating and/or ambient conditions not
within the scope of the specification − Condensation / conductive contamination −
Parameterization, programming, cabling, and installation errors − Use of radio devices /
cellular phones in the immediate vicinity of the controller − External influences /
damage.
2. Exceptional temperatures as well as emissions of noise, particles, or gas caused by,
for example: − Component malfunctions − Software errors − Operating and/or
ambient conditions not within the scope of the specification − External
influences / damage.
3. Hazardous shock voltages caused by, for example: − Component malfunctions −
Influence of electrostatic charging − Induction of voltages in moving motors − Operating
and/or ambient conditions not within the scope of the specification − Condensation /
conductive contamination − External influences / damage
4. Electrical, magnetic and electromagnetic fields generated in operation that can pose
a risk to people with a pacemaker, implants or metal replacement joints, etc. if they are
too close.
5. Release of environmental pollutants or emissions as a result of improper operation
of the system and/or failure to dispose of components safely and correctly.

Rev. 9: 07-11-2022
8
Warranty and Limitations of Liability
Warranty
Industrial Shields’s exclusive warranty is that the products are free from defects in
materials and workmanship for a period of one year (or other period if specified) from
date of sale by Industrial Shields.
INDUSTRIAL SHIELDS MAKES NO REPRESENTATION OR WARRANTY,
EXPRESSED OR IMPLIED, REGARDING MERCHANABILITY, NON-
INFRINGEMENT, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS.
ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE
HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE
REQUIREMENTS OF THEIR INTENDED USE. INDUSTRIAL SHIELDS DISCLAIMS
ALL OTHER WARRANTIES, EXPRESS OR IMPLIED
Limitations of Liability
INDUSTRIAL SHIELDS SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT,
OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR COMERCIAL LOSS IN
ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS
BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY.
IN NO EVENT SHALL INDUSTRIAL SHIELDS BE RESPONISBLE FOR WARRANTY,
REPAIR OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS INDUSTRIAL
SHIELDS’S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY
HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPIATE MODIFICATION OR
REPAIR.

Rev. 9: 07-11-2022
9
Table of Contents
General Description ESP32 ETHERNET&WIFI&BLUETOOTH PLC FAMILY Product ................ 12
1.1 Zones Table.................................................................................................................. 12
1.2 Measures Table............................................................................................................ 13
1.3 Zone - Nomenclature................................................................................................... 14
1.4 Zone Distribution......................................................................................................... 14
1.5 Zone Features .............................................................................................................. 15
1. ..................................................................................................................................... 16
1.6 Mechanical dimensions ............................................................................................... 16
1.7 General Features ......................................................................................................... 17
Technical Specifications ......................................................................................................... 18
2.1 General Specifications ................................................................................................. 18
2.2 Performance Specification........................................................................................... 19
2.3 Peripherial ports - USB & SIM Card Slot & Antennas .................................................. 19
2.4 Symbology.................................................................................................................... 20
Precautions ............................................................................................................................ 21
3.1 ESP32 Board................................................................................................................. 21
3.2 Intended Audience....................................................................................................... 21
3.3 General Precautions .................................................................................................... 21
Software interface.................................................................................................................. 21
How to connect ESP32 PLC to PC........................................................................................... 24
How to connect PLC to power supply.................................................................................... 26
ESP32 ETHERNET&WIFI&BLUETOOTH PLC Pinout................................................................. 27
7.1 I/Os Table..................................................................................................................... 27
7.2 0 Zone connection ....................................................................................................... 27
7.3 Analog/Digital Zone connection (I/Os) ........................................................................ 29
7.4 Relay Zone connection (I/Os) ...................................................................................... 30
7.5 Interrupt equivalence table......................................................................................... 31
Switch Configuration.............................................................................................................. 32
8.1 0 Zone: Communications............................................................................................. 32
8.2 Analog / Digital Zone ................................................................................................... 32
8.3 Relay Zone.................................................................................................................... 33

Rev. 9: 07-11-2022
10
Software set up...................................................................................................................... 34
9.1 Example........................................................................................................................ 34
I/O ESP32 PLC 3.3V pins ......................................................................................................... 36
10.1 I2C ................................................................................................................................ 36
10.2 SPI –MISO/MOSI/SCK.................................................................................................. 36
A Zone Features: Communications & RTC & uSD .................................................................. 37
11.1 RS-232.......................................................................................................................... 37
11.2 RS-485 (Half Duplex).................................................................................................... 37
11.3 Ethernet....................................................................................................................... 37
11.4 BLE ............................................................................................................................... 37
11.5 RTC............................................................................................................................... 37
11.6 I2C pins –SDA/SCL....................................................................................................... 37
11.7 SPI –MISO/MOSI/SCK.................................................................................................. 38
11.8 uSD............................................................................................................................... 38
11.9 GPIO_0......................................................................................................................... 38
Additional Features................................................................................................................ 39
12.1 Expansion modules...................................................................................................... 39
12.1.1 GPRS .................................................................................................................... 39
Equivalence Table .................................................................................................................. 40
13.1 Pin-Out......................................................................................................................... 40
13.1.1 Analog/Digital Devices Analog I/Os..................................................................... 40
13.1.2 Digital I/Os........................................................................................................... 41
13.1.3 Relay Devices Analog I/Os................................................................................... 41
13.1.4 Digital I/Os........................................................................................................... 42
13.1.5 Relay.................................................................................................................... 43
Internal I2C and SPI Connections........................................................................................... 44
Instructions for troubleshooting............................................................................................ 44
15.1 CP210x Driver (for USB 2.0/3.0) .................................................................................. 44
15.2 D2XX Driver (for USB 2.0) ............................................................................................ 44
15.3 D3XX Driver (for USB 3.0) ............................................................................................ 44
Instructions for interconnection between Industrial Shields controllers.............................. 45
16.1 RS-232 Communication: .............................................................................................. 45
16.2 RS-485 Communication: .............................................................................................. 45
16.3 Ethernet....................................................................................................................... 46

Rev. 9: 07-11-2022
11
Typical Connections ............................................................................................................... 47
Connector details:.................................................................................................................. 52
Mechanical Characteristics .................................................................................................... 53
Installation and Maintenance ................................................................................................ 54
Revision Table ........................................................................................................................ 57

Rev. 9: 07-11-2022
12
General Description ESP32 ETHERNET&WIFI&BLUETOOTH
PLC FAMILY Product
1.1 Zones Table

Rev. 9: 07-11-2022
13
1.2 Measures Table

Rev. 9: 07-11-2022
14
1.3 Zone - Nomenclature
The nomenclature shown in this point will be used in the whole User Guide, so it is
important to understand this nomenclature.
The nomenclature to differentiate the zones is based on Alphanumeric values, being 0
the internal communication shield and A, B or C the I/Os or Relay shield.
●The inputs in the zone A/B/C are named IX.X, being X any number suitable in
the Shield. Outputs are named as QX.X.
1.4 Zone Distribution
This is the possible zones scheme, whether the zone is Analog/Digital or Relay
depends on your device, you can consult it on the Zones Table. The distribution of the
different features that provide the Raspberry PLC Family are described below.
A ZONE
B ZONE
C ZONE
D ZONE
D ZONE
C ZONE
B ZONE
A ZONE
D ZONE
C ZONE
B ZONE
A ZONE

Rev. 9: 07-11-2022
15
1.5 Zone Features
Shield
Zone Characteristics
Communication Shield
(1x) Ethernet
(1x) WiFi
(1x) BLE
(1x) VN/VP
(2x) Serial TTL
(1x) I2C
(1x) RS-232
(1x) HALF Duplex RS-485
(1x) SPI external Port
(1x) RTC
(1x) uSD Socket
Analog Shield
13 Inputs:
8 Outputs:
13 Digital inputs, 6 of which can work as Analog Input
8 Digital Outputs, 3 of which can work as Analog Output
Relay Shield
6 Inputs:
11 Outputs:
6 Digital Inputs, 4 of which can work as Analog Input
8 Relay Outputs
3 Digital Outputs, 3 of which can work as Analog Output

Rev. 9: 07-11-2022
16
1.6 Mechanical dimensions
*NOTE: This device includes one 2.4GHz antenna and one 5G antenna (for the 5G option), and
both have a length of 5cm.

Rev. 9: 07-11-2022
17
1.7 General Features
ESP32 ETHERNET&WIFI&BLUETOOTH PLC FAMILY
MODEL TYPE
Controller General Specifications
Information
Input Voltage
12 to 24Vdc
Fuse protection (2.5A)
Polarity protection
Input rated voltage
24 Vdc
Rated Power
30 W
I max.
1.5A
Size
Consult the 1.6 Measure Table section
Clock Speed
External: adjustable from 80 MHz to 240 MHz
Internal: 8 MHz
External Flash
Memory
4 MB
SRAM
520 KB
ROM
448 KB
Communications
I2C –Ethernet Port –WiFi –BLE –RS485 (HD) –
RS232 –SPI –SerialTTL –VN/VP
Max232-Max485-W5500
USB consideration!
Only meant for uploading or debugging, not
always connected as a serial in a project!
Cannot be working in a final
application
An/Dig Input 11 bit
(0-10Vcc)
0 to 10Vac
Input Impedance: 39K
Separated PCB ground
Rated Voltage: 10Vac
5 to 24Vdc
I min: 2 to 12 mA
Galvanic Isolation
Rated Voltage: 24 Vdc
Digital Isolated Input
(24Vcc)
5 to 24Vdc
I min: 2 to 12 mA
Galvanic Isolation
Rated Voltage: 24 Vdc
* Interrupt isolated
Input HS (24Vcc)
5 to 24Vdc
I min: 2 to 12 mA
Galvanic Isolation
Rated Voltage: 24Vdc
Analog Output 12 bit
(0-10Vcc)
0 to 10Vac
I max: 20 mA
Separated PCB ground
Rated Voltage: 10Vac
Digital Isolated
Output (24Vcc)
5 to 24Vdc
I max: 70 mA
Galvanic Isolation
Diode Protected for Relay
Rated Voltage: 24Vdc
Imax 24Vdc: 410 mA

Rev. 9: 07-11-2022
18
Technical Specifications
2.1 General Specifications
Item
ESP32 ETHERNET&WIFI&BLUETOOTH PLC
Power supply
voltage
DC power supply
12 to 24Vdc
Operating
voltage range
DC power supply
11.4 to 25.4Vdc
Power
consumption
DC power supply
30W max.
External
power supply
Power supply
voltage
24Vdc
Power supply
output capacity
700Ma
Insulation resistance
20MΩ min.at 500Vdc between the AC terminals and the protective earth terminal.
Dielectric strength
2.300 VAC at 50/60 Hz for one minute with a leakage current of 10mA max. Between all the
external AC terminals and the protective ground terminal.
Shock resistance
80m/s2in the X, Y and Z direction 2 times each.
Ambient temperature (operating)
0º to 60ºC
Ambient humidity (operating)
10% to 90% (no condensation)
Ambient environment (operating)
With no corrosive gas
Ambient temperature (storage)
-20º to 60ºC
Power supply holding time
2ms min.
Weight
See the measure table.
Relay Output
(220Vac / 30Vdc)
220V Vac / 5A
30Vdc / 3A
Galvanic Isolation
Diode protected for Relay
PWM Isolated Output
12 bit (24Vcc)
5 to 24Vdc
I max: 70 mA
Galvanic Isolation
Diode Protected for Relay
Rated Voltage: 24Vdc
Expandability
I2C - 127 elements - Serial Port RS232/RS485
* By using this type of signal can no longer use Digital signal
(24Vdc)

Rev. 9: 07-11-2022
19
2.2 Performance Specification
Board
ESP32-WROOM-32UE
Control method
Stored program method
I/O control method
Combination of the cyclic scan and immediate refresh processing methods.
Programming language
Arduino IDE. Based on wiring (Wiring is an Open Source electronics platform
composed of a programming language. (We recommend minimum version 1.8.13).
http://arduino.cc/en/Tutorial/HomePage
Microcontroller
ESP32
External Flash Memory
4MB
Program capacity (SRAM)
520KB
SRAM in RTC
16KB
Clock Speed
Adjustable from 80 MHz to 240 MHz
2.3 Peripherial ports - USB & SIM Card Slot & Antennas
-The microUSB type B port for programming is located at the right side of the PLC
enclosure
-The SIM Card Slot is also located at the right side of the PLC enclosure
-Additional Wi-Fi Antenna with SMA famale connector (on the frontal top side) included
on the PLC
-Expansion Board Antenna (if required) with SMA female connector (on the frontal top
side) included on the PLC
This manual suits for next models
11
Table of contents
Other Industrial Shields Controllers manuals
Popular Controllers manuals by other brands

HomeMatic
HomeMatic HM-LC-Dim1T-FM Installation and operating manual

Omron
Omron E5GN instruction manual

Screen Innovations
Screen Innovations LinkPro Z installation instructions

SEW-Eurodrive
SEW-Eurodrive MOVIDRIVE MOVI-PLC DHP11B manual

Vestamatic
Vestamatic MC P4 LoVo Installation and operating instructions

Maxcess
Maxcess GMA-BL-1-1 Installation and service manual