Skip to main content

EdgeBox-ESP-100 Getting Start with Arduino

Edgebox-ESP-100

EdgeBox-ESP-100 is an ESP32-based controller designed for lightweight automation solutions. It supports analog input, effectively monitoring and controlling in a remote environment, ideal for PID control loops, logic sequencing control, or a gateway with flexible wireless and field sensors expansion.

Besides EdgeBox-ESP-100, We also have the other 2 Edge products for different solutions in the Edge family, powered by Raspberry Pi. To help you understand the differences deeply and choose the most suitable part for your projects, please refer to the Seeed Studio Edge Series Page.

It offers isolated CAN, RS485 Fieldbus connections, and rich IO resources for extensive facilities and sensors input, for both digital and analog signals. It is perfectly satisfactory to the PLC and field automation applications.

Since it contains on-chip Wi-Fi and BLE functions, and also includes a 4G LTE module Cellular, EdgeBox-ESP-100 can be utilized to establish an industrial gateway, enabling the original PLC to connect the network or cloud.

This portable box comes with rugged hardware, an electrical design, and an aluminum alloy enclosure, by which it maintains its function in a wide temperature range and provides high surge and short circuit protection, for diverse deployment methods based on your business.

Features

  • Multi-Fieldbus Support: CAN, RS485, Ethernet
  • Multi-wireless Capability: On-chip Wifi, BLE connectivity; built-in Cellular 4G LTE module
  • Reliable Hardware Design: Rugged, maintenance-reduced structure
  • Reliable Electrical Design: High isolation, High surge, and short circuit protection
  • IEC 61131-3 compliant programs support (under development)
  • Programmable with ESP-IDF, Arduino

Specifications comparison

Parameters

Detail

Basic

CPU

ESP32S3

Memory

512KB + 8MB RAM

Storage

16MB Flash

Wireless

WiFi

on-chip 2.4 GHz

Bluetooth

on-chip Bluetooth 5.0, BLE

Cellular

4G - A7670G SIMCom LTE Cat 1 module

LoRa

Supported*

Interface

Ethernet

100M RJ45 *1

USB

USB2.0 A*1

CAN BUS

CAN BUS *1 (Isolated)

RS Serial

RS485 *1 (Isolated)

Digital Input

4 (Isolated) onboard

DC input Voltage - 24V

Digital Output

6 (isolated)

Recommended Voltage - 24V

Analog Input

4 (Isolated)

Input: 0 ~ 20 mA default, 0-10V optional

Analog Output

2 (Isolated)

Output: 0 ~ 5 V

Power Supply

10.8 ~ 36 V

Extra features

RTC

RTC

Encryption Chip

Atecc608a(optional)

Operation temperature

-20 to +60 °C

Certification

RoHS, CE, FCC, UKCA

Warranty

2 Years

Hardware overview

Front Overview

Side Ports

  1. 4 X LEDs
  2. Ethernet Port
  3. CAN bus and RS485 Port
  4. Multi-Func phoenix connector

LED Indicator:

LED NameSignalDescription
PWRPower Status
Cellular4G/LTE
ACTSerial TX statusMultiplexed with U0TXD
ERRSerial RX statusMultiplexed with U0RXD

Ethernet Port:

pir
PIN#SignalDescription
1TXP
2TXN
3RXP
4N.C.
5N.C.
6RXN
7N.C.
8N.C.
Yellow LEDACTIVEActive when TX and RX data come through
Green LEDLINKActive when LINK UP

CAN bus and RS485 Port:

pir
PIN#SignalDescription
1N.C.
2N.C.
3N.C.
4CAN_H
5CAN_L
6N.C.
7RS485_A
8RS485_B
Yellow LEDACTIVEActive when TX and RX of CAN BUS data come through
Green LEDLINKActive when TX and RX of RS485 data come through
note
1. The 120 Ohm termination resistor for RS485 has been installed inside.
2. The 120 Ohm termination resistor for CAN BUS has been installed inside.

Multi-Func phoenix connector

pir
FucntionPIN No.PIN No.Fucntion
S/S21DO_24V
DI043DO_0V
DI165DO0
DI287DO1
DI3109DO2
AGND1211DO3
AI01413DO4
AI11615DO5
AI21817AO0
AI32029AO1
AGND2221AGND
GND2423+24V
note
1. 24AWG to 16AWG cable are suggested
2. GND and AGND are isolated
3. All AGND signals are connected internally
4. DC voltage for input is 24V(+- 10%)
5. DC voltage for output should be 24V(+- 10%). the current capacity is 1A.

TOP Ports

pir
  1. Wi-Fi Antenna Port (SMA Female)
  2. SIM CARD
  3. Reset
  4. USB PORT (5V power output only)
  5. 4G/LTE Antenna Port (SMA Female)

GPIO Multiplex

Pin NameESP32S3 IOTypeFunction
DO0IO40Digital OutputDigital Output 0
DO1IO39Digital OutputDigital Output 1
DO2IO38Digital OutputDigital Output 2
DO3IO37Digital OutputDigital Output 3
DO4IO36Digital OutputDigital Output 4
DO5IO35Digital OutputDigital Output 5
DI0IO4Digital InputDigital Input 0
DI1IO5Digital InputDigital Input 1
DI2IO6Digital InputDigital Input 2
DI3IO7Digital InputDigital Input 3
AO0IO42Analog OutputAnalog Output 0
IO41Analog OutputAnalog Output 1
RS485 IO17U1TXD
IO18U1RXD
IO8RS485_RTS
4G/LTEIO48U2TXDWWAN
IO47U2RXD
IO21PWR_KEY
IO16PWR_EN
Ethernet IO10FSPI_CS0Connected to W5500
IO11FSPI_MISO
IO12FSPI_MOSI
IO13FSPI_SCLK
IO14INT #
IO15RST #
CAN_TXDIO1CAN BUS TX
CAN_RXDIO2CAN BUS RX
TXD0/LED_ACT#U0TXDProgramming/Debug and LED driver
RXD0/LED_ERR#U0RXD
BeepIO45BeepHigh active Enables Buzzer
ResetIO0Reset button
I2C IO19I2C_SCL
IO20I2C_SDA
IO9Alarm or Wake up from PCF8563

Programming/Debug port

pir
Debug portESP32 IOOther Function
RXDRXD0LED_ACT#
TXDTXD0LED_ERR#
GNDGND
GPIO0IO0RESET Button
note

The GIPIO0 is also connected to the Reset Button. And the RXD, TXD of UART0 are used in download mode. These allow the users to develop the EdgeBox-ESP-100 in bare meta.

Built-in Devices

I2C PIN Map & Built-in I2C Devices

  • I2C PIN Map:
I2C PINESP32 IO
I2C_SDAIO20
I2C_SCLIO19
I2C_INTIO9
  • Built-in I2C Devices and Address:
DeviceAddressFunction
FM24CL64B0x50Retain memory
PCF85630x51RTC
Atecc608a0x68Crypto device
SGM580310x48ADC

4G LTE

pir
A7670G 4G moduleESP32 IOFunction
PWR_ENIO16Enable power for A7670G through SY8089A
PWRKEYIO21PWR_KEY
RXDIO48U2TXD
TXDIO47U2RXD

Analog Input (SGM58031)

SGM58031 (I2C address 0x48)IO
CH1+AI0
CH2+AI1
CH3+AI2
CH4+AI3
SDAIO20/I2C_SDA
SCLIO19/I2C_SCL
note

The default input type is 4-20ma. 0-10V Input type is optional.

Analog Output

The dual Analog Output channels are made up by PWM and LPF technology.

Analog outputESP32 IO
AO0IO42
AO1IO41

Electrical specifications

How-to Power

pir

Power consumption

The power consumption of the EdgeBox-ESP-100 strongly depends on the application, the mode of operation and the peripheral devices connected. The given values have to be seen as approximate values.

note

On condition of power supply 24V

Mode of operationCurrent(ma)
Idle81

Getting started with Ardunio Programming

Requirement

Hardware requirement

You need to prepare the following:

  • 1 x EdgeBox-ESP-100
  • 1 x PC
  • 1 x USB to Serial Adopter
  • 1 x PH2 Phillips head Screwdriver (Optional)
  • 1 x Allen Key H2.5
  • 1 x 12V3A(Minimun input power requirement) Power supply

Software requirement

Preparation

Hardware

  • STEP 1: Remove the case and locate the Programming port

  • STEP 1-1: Please locate and remove the two black allen socket head screws

pir
  • STEP 1-2: Then remove the 3 M.3 PH2 Phillips head screws.
pir
  • STEP 1-3: Now you should be able to locate the Programming port.
pir
  • STEP 2: connect the USB-to-Serial to the Edgebox-ESP-100

The connection should follow as below

pir
caution

Make sure the connection is right, Edgebox-ESP-100 is powered off during the connection.

Edgebox-ESP-100USB-To-Serial
RXDTX
TXDRX
GNDGND
GPIO0GND (Program Download mode)
Unconnected when used as serial debugger

Software

  • STEP 1: Download the Ardunio IDE 2.0.X from the Arduino offical website and then install it.

  • STEP 2: Find and Install ESP32 from the board manager.

  • STEP 2-1: Open the Arduino IDE and click the Board Tab (Second tab) to open the Board Manager

  • STEP 2-2: In the Search Bar please type in ESP32 and press enter, now you should be able to see the esp32 board library listed.

  • STEP 2-3: Select the latest Version from the verion dropdown manu, e.g. at the time this wiki is written the latest verion is version 2.0.7

note

Please install version >= 2.0.7 of the esp32 board library.

  • STEP 2-4: Click Install
pir

Edgebox-ESP-100 Controlling Solenoid with Arduino

Wiring diagram

pir

Code

Here is the code for cycling through all the Solenoid, Please copy the code to the Arduino IDE Code editor

void setup() {
//setup DO pins to output mode
pinMode(DO0, OUTPUT);
pinMode(DO1, OUTPUT);
pinMode(DO2, OUTPUT);
pinMode(DO3, OUTPUT);
//setup DO pins default to Logic LOW
digitalWrite(DO0, LOW);
digitalWrite(DO1, LOW);
digitalWrite(DO2, LOW);
digitalWrite(DO3, LOW);
}

void loop() {
//Switch on DO0 and Swith off DO3
digitalWrite(DO0, HIGH);
digitalWrite(DO3, LOW);
delay(2000);

//Switch on DO1 and Swith off DO0
digitalWrite(DO0, LOW);
digitalWrite(DO1, HIGH);
delay(2000);

//Switch on DO2 and Swith off DO1
digitalWrite(DO1, LOW);
digitalWrite(DO2, HIGH);
delay(2000);

//Switch on DO3 and Swith off DO2
digitalWrite(DO2, LOW);
digitalWrite(DO3, HIGH);
delay(2000);
}

Upload code

  • STEP 1: Now please plug-in the USB-To-Serial adptor your PC and the connection of Edgebox-ESP-100 with USB-To-Serial convertor should set to download program mode.
note

Do not Power Up the Edgebox-ESP-100 until next step

  • STEP 2: Power up the Edgebox-ESP-100

  • STEP 3: Select Board and PORTS

  • STEP 3-1: Open the Board and Port selection window

pir
  • STEP 3: Select Boards and PORTS from the Board and Port selection window in this case we can put edgebox into the search bar and select Edgebox-ESP-100 as the board, and select Port according to your USB-to-Serial adaptor. Then press OK to comfirm.
pir
  • STEP 4: Press upload code button to upload the code.
pir
  • STEP 5: reset Power to monitor the Edgebox-ESP-100 controlling Solenoid.
pir

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...