Proof of Concept

EthernetIP-Scale

EtherNet/IP adapter for ESP32-P4 with NAU7802 scale, Modbus TCP, and OTA

Status: This project is a proof-of-concept implementation and requires further development, testing, and validation before production use.

Waveshare ESP32-P4-ETH SparkFun Qwiic Scale (NAU7802)

Overview

A comprehensive EtherNet/IP communication adapter for the ESP32-P4 microcontroller, integrating NAU7802 precision scale support, Modbus TCP, and web-based configuration. The device serves as a bridge between EtherNet/IP networks and industrial scale applications, providing real-time weight data via EtherNet/IP assemblies and Modbus TCP.

This project implements a full-featured EtherNet/IP adapter device on the ESP32-P4 platform using the OpENer open-source EtherNet/IP stack. The device has been tested with Waveshare ESP32-P4-ETH, SparkFun Qwiic Scale (NAU7802), and S‑type load cells.

Hardware Platform

Development Board: Waveshare ESP32-P4-ETH

The Waveshare ESP32-P4-ETH development board provides the core processing and Ethernet connectivity:

Ethernet Configuration: PHY Address: 1 (default), MDC/MDIO pins configurable via menuconfig

Scale Module: SparkFun Qwiic Scale - NAU7802

The SparkFun Qwiic Scale - NAU7802 breakout board provides high-precision weight measurement capabilities:

Connection: Connect to ESP32-P4-ETH via I2C bus (default GPIO7 SDA, GPIO8 SCL). External pull-up resistors (4.7kΩ) required.

Load Cell: S-Type Beam High-Precision Load Cell

Tested with S-type (S-beam) strain gauge load cells:

EtherNet/IP Protocol Support

Core Functionality

CIP File Object Integration

The device implements the CIP File Object (Class 0x37) to serve the EDS file and icon directly from the device:

LLDP Support

IEEE 802.1AB compliant Link Layer Discovery Protocol support:

Modbus TCP Server

Standard Modbus TCP/IP server (port 502) provides additional protocol access:

All assembly data is stored in little-endian format (Modbus converts to big-endian for transmission).

NAU7802 Scale Integration

The device provides comprehensive NAU7802 scale support:

Dedicated web-based configuration page (/nau7802) and REST API are provided for scale configuration and monitoring.

Network Configuration

The device includes RFC 5227 compliant Address Conflict Detection (ACD):

Web-Based Configuration Interface

Essential device management via web interface:

OTA Firmware Updates

Firmware updates can be performed via:

Software Requirements