Lazarus
Lazarus
0
Project description
1. 프로젝트 개요
Lazarus는 미국 Jesuit High School의 로봇 개발팀 Rovotics가 2017년 MATE ROV 대회를 위해 개발한 수중 원격 제어 로봇입니다.
개발팀은 기존 상용 제어 보드와 확장 실드를 사용하는 방식에서 벗어나 ATmega2560과 WIZnet W5500을 하나의 PCB에 통합했습니다. 또한 Raspberry Pi와 Node.js를 기반으로 웹 제어 시스템을 구축하고, 유선 이더넷을 통해 수중 로봇을 원격으로 제어하도록 설계했습니다.
주요 구성 요소
| 항목 | 내용 |
|---|---|
| 프로젝트명 | Lazarus |
| 개발팀 | Jesuit High School – Rovotics |
| 개발연도 | 2017년 |
| 이더넷 컨트롤러 | WIZnet W5500 |
| 마이크로컨트롤러 | ATmega2560 |
| 상위 제어 시스템 | Raspberry Pi, Node.js |
| 통신 방식 | Ethernet, UDP, Serial |
| 추진기 | Blue Robotics T100 × 6 |
| 카메라 | 8개 |
| 적용 분야 | 수중 탐사 및 원격 로봇 제어 |
전체 시스템 아키텍처
Lazarus의 시스템은 수상 제어부(Topside)와 수중 제어부(Bottomside)로 구분됩니다. 두 시스템은 CAT6A 이더넷 케이블을 포함한 테더(Tether)로 연결되며, 로봇 제어 데이터와 IP 영상 데이터는 각각 독립적인 장치에서 처리됩니다.


이미지 출처 : https://20693798.fs1.hubspotusercontent-na1.net/hubfs/20693798/TechRepor
수상 제어부(Topside)
Raspberry Pi에서 Node.js 기반 웹 서버를 실행합니다. 조이스틱 입력을 처리하고 추진기의 제어 값을 계산하며, 웹 인터페이스를 통해 로봇의 상태를 모니터링합니다.
수중 제어부(Bottomside)
W5500을 탑재한 ROV1 메인 제어 보드가 네트워크 통신을 담당합니다. 나머지 MCU는 시리얼 인터페이스를 통해 연결되며 각 기능을 분산 처리합니다.
| 제어 보드 | 담당 기능 |
|---|---|
| ROV1 | UDP 통신, 추진기 및 카메라 제어 |
| ROV2 | 전원 및 습도 모니터링 |
| ROV3 | 자세, 수심 측정 및 상태 표시 |
| ROV4 | 임무 수행용 작업 도구 제어 |
영상 데이터는 별도의 Axis M7001 비디오 인코더를 통해 처리합니다. 네트워크 인프라는 공유하지만, 영상 처리와 로봇 제어를 분리함으로써 MCU의 연산 부담을 줄이는 구조입니다.
2. Why WIZnet? – W5500 기반 이더넷 제어
자체 PCB에 통합된 W5500
기술 보고서 10페이지에 따르면 개발팀은 Arduino Mega에 사용되는 ATmega2560과 Arduino Ethernet Shield 2에 사용되는 W5500을 하나의 PCB에 통합했습니다.
기존 개발 보드와 확장 실드를 조합하는 방식 대신 필요한 회로를 직접 설계하여 비용을 절감하고, 로봇의 기능에 맞는 모듈형 제어 시스템을 구축했습니다.
W5500은 별도의 소프트웨어 TCP/IP 스택 없이 MCU에서 소켓 기반 네트워크 통신을 구현할 수 있도록 지원합니다.
하드웨어 TCP/IP 오프로딩
ATmega2560은 8KB SRAM을 가진 8비트 MCU입니다. 이러한 제한된 자원으로 네트워크 프로토콜 처리와 로봇 제어를 동시에 수행하려면 메모리와 연산 자원을 효율적으로 관리해야 합니다.
일반적인 소프트웨어 TCP/IP 방식에서는 MCU가 네트워크 프로토콜과 애플리케이션을 함께 처리해야 합니다. 반면 W5500은 TCP/IP 프로토콜을 전용 하드웨어에서 처리하므로 MCU의 네트워크 처리 부담을 줄일 수 있습니다.
| W5500 주요 사양 | 기술적 특징 |
|---|---|
| Hardware TCP/IP Stack | MCU의 프로토콜 처리 부담 감소 |
| 8 Hardware Sockets | 독립적인 소켓 통신 지원 |
| 32KB TX/RX Buffer | MCU 외부에 네트워크 송수신 버퍼 제공 |
| 10/100 Mbps Ethernet | 유선 네트워크 연결 |
| SPI 최대 80MHz | MCU와의 데이터 교환 지원 |
Lazarus와 같이 여러 추진기, 센서 및 주변 장치를 동시에 제어해야 하는 시스템에서는 이러한 하드웨어 오프로딩 구조가 MCU 자원을 확보하는 데 유리합니다.
다만 원본 보고서에는 W5500 적용 전후의 CPU 사용률이나 통신 지연시간을 비교한 측정 결과가 포함되어 있지 않습니다.
3. 소프트웨어 및 통신 구현
UDP 기반 원격 제어
Lazarus는 조이스틱 입력과 로봇의 제어 상태를 지속적으로 갱신하기 위해 UDP를 사용합니다.
UDP는 TCP와 달리 연결 설정 및 전송 계층의 재전송 절차가 없습니다. 따라서 이전 제어 명령의 재전송보다 새로운 제어 명령의 전달이 중요한 원격 제어 시스템에서 활용할 수 있습니다.
Lazarus의 제어 과정은 다음과 같습니다.
Raspberry Pi에서 조이스틱 입력을 수집합니다.
Node.js 애플리케이션에서 추진기의 제어 값을 계산합니다.
수상 제어부에서 UDP 제어 패킷을 전송합니다.
수중 제어부의 W5500에서 패킷을 수신합니다.
ATmega2560에서 제어 명령을 처리하고 추진기와 주변 장치를 제어합니다.
수신한 패킷과 센서 데이터를 수상 제어부로 반환합니다.
웹 인터페이스와 HUD를 통해 로봇의 상태를 확인합니다.
개발팀은 ROV1이 수신한 패킷을 수상 시스템으로 반환하는 Echo 기능도 구현했습니다. 이를 통해 제어 패킷의 전달 상태를 확인하고 통신 문제를 진단할 수 있습니다.
Fail-safe: 통신 장애 대응
수중 로봇에서는 네트워크 연결이 끊어졌을 때 마지막 제어 명령이 계속 실행되는 상황을 방지해야 합니다.
Lazarus는 통신 연결이 끊어지면 추진기와 주변 장치를 비활성화하고, 통신이 복구될 때까지 Safe Mode를 유지하도록 설계되었습니다.
이러한 장애 대응 기능은 W5500 자체에서 제공하는 로봇 안전 기능이 아니라 MCU의 애플리케이션에서 구현한 제어 로직입니다.
UDP는 패킷 전달을 보장하지 않으므로, 유사한 시스템을 개발할 때는 패킷 수신 타임아웃, 데이터 유효성 검사 및 통신 복구 절차를 별도로 설계해야 합니다.
2017년 당시의 실제 펌웨어와 PCB 회로도는 확인되지 않아 구체적인 W5500 초기화 코드, SPI 핀 설정, UDP 포트 및 타임아웃 설정은 생략했습니다.
4. 이더넷 통신 장애와 해결 과정
이 프로젝트에서 특히 주목할 부분은 기술 보고서 17페이지에 기록된 이더넷 통신 장애 사례입니다.
수중 로봇은 긴 테더 케이블, 방수 커넥터, 모터 및 전력 변환 장치를 함께 사용합니다. 따라서 이더넷 컨트롤러의 성능뿐만 아니라 물리 계층의 신호 무결성(Signal Integrity)도 중요합니다.
실제 발생한 문제와 해결 방법
| 발생한 문제 | 해결 방법 |
|---|---|
| CAT5e 케이블 페어 분할로 인한 연결 장애 | 페어를 분할하지 않은 CAT6A 케이블 적용 |
| 수중 커넥터 내부 비연선 구간에서 발생하는 신호 간섭 | 비연선 구간의 길이 최소화 |
| 네트워크 장치 간 링크 속도 협상 문제 | 수상·수중 양측에 Gigabit Ethernet 스위치 적용 |
개발팀은 이러한 개선을 통해 안정적인 네트워크 링크를 확보했다고 보고했습니다.
기가비트 스위치는 전체 네트워크 구성을 위한 장치이며, W5500 자체의 최대 이더넷 링크 속도는 100Mbps입니다.
W5500 기반 로봇 개발 시 고려할 사항
Signal Integrity: 방수 커넥터를 포함한 전체 통신 경로에서 트위스트 페어 구조를 유지해야 합니다.
PHY Link: 물리적인 연결 상태와 링크 속도 협상 결과를 확인해야 합니다.
EMI: 추진기, ESC, DC-DC 컨버터에서 발생하는 전기적 노이즈를 고려해야 합니다.
SPI Clock: MCU의 지원 속도와 PCB의 신호 품질에 맞춰 클럭을 설정해야 합니다.
Socket Buffer: 제어 데이터의 크기와 전송 주기에 맞춰 송수신 버퍼를 할당해야 합니다.
Fail-safe: 패킷 수신 타임아웃과 통신 복구 절차를 설계해야 합니다.
Lazarus는 하드웨어 TCP/IP 오프로딩과 물리 계층 설계, 애플리케이션 수준의 장애 대응을 함께 고려한 임베디드 이더넷 적용 사례입니다.
이더넷 컨트롤러를 적용하는 것만으로 통신 안정성이 확보되는 것이 아니라 PCB, 케이블, 커넥터 및 펌웨어까지 전체 시스템을 고려해야 한다는 점에서 기술적으로 의미가 있습니다.
5. FAQ
Q1. 수중 로봇에 W5500을 사용하는 이유는 무엇인가요?
W5500은 하드웨어 TCP/IP 스택과 32KB 내부 송수신 버퍼를 제공합니다. 이를 통해 ATmega2560과 같이 메모리와 연산 자원이 제한된 MCU에서도 네트워크 통신과 로봇 제어를 효율적으로 병행할 수 있습니다.
Q2. W5500은 ATmega2560에 어떻게 연결하나요?
MOSI, MISO, SCK, CS로 구성된 SPI 인터페이스를 사용합니다. 자체 PCB를 설계할 경우 전원, 리셋, 클럭, 전압 호환성 및 이더넷 트랜스포머 회로도 함께 고려해야 합니다.
Q3. Lazarus에서 W5500은 어떤 역할을 하나요?
수상 제어부와 수중 메인 제어 보드인 ROV1 사이의 UDP 통신을 담당합니다. 조이스틱 제어 명령을 수신하고 센서 데이터 및 진단 정보를 반환하며, 카메라 영상은 별도의 비디오 인코더에서 처리합니다.
Q4. Arduino를 이용해 유사한 시스템을 개발할 수 있나요?
Arduino Mega와 W5500 기반 Ethernet Shield 2를 사용하면 자체 PCB 제작 없이 기본적인 UDP 원격 제어 시스템을 구현할 수 있습니다.
기본적인 Arduino 프로그래밍과 네트워크 지식이 있다면 구현을 시작할 수 있으며, 실제 수중 운용을 위해서는 방수 설계, 모터 제어 및 안전 기능에 대한 추가적인 지식이 필요합니다.
Q5. ENC28J60과 비교했을 때 W5500의 차이점은 무엇인가요?
| 항목 | W5500 | ENC28J60 |
|---|---|---|
| TCP/IP Stack | 하드웨어 | MCU 소프트웨어 |
| Ethernet | 10/100 Mbps | 10 Mbps |
| 내부 버퍼 | 32KB | 8KB |
| MCU 인터페이스 | SPI | SPI |
| 프로토콜 처리 | 전용 하드웨어 | MCU |
| MCU 자원 사용 | 상대적으로 적음 | 소프트웨어 스택에 의존 |
ENC28J60은 MCU에서 별도의 소프트웨어 TCP/IP 스택을 실행해야 하지만, W5500은 네트워크 프로토콜을 전용 하드웨어에서 처리합니다.
따라서 Lazarus와 같이 네트워크 통신과 여러 주변 장치의 제어를 동시에 수행해야 하는 임베디드 시스템에서는 W5500의 하드웨어 오프로딩 구조가 유리합니다.
1. Project Overview
Lazarus is a remotely operated underwater vehicle (ROV) developed by Rovotics, the robotics team at Jesuit High School in the United States, for the 2017 MATE ROV Competition.
The development team moved away from conventional off-the-shelf control boards and expansion shields by integrating the ATmega2560 and WIZnet W5500 into a single PCB. They also built a web-based control system using Raspberry Pi and Node.js, enabling remote operation of the underwater vehicle through wired Ethernet communication.


Image Source: 2017 Jesuit High School Rovotics Technical Documentation
Key Components
| Item | Description |
|---|---|
| Project Name | Lazarus |
| Development Team | Jesuit High School – Rovotics |
| Development Year | 2017 |
| Ethernet Controller | WIZnet W5500 |
| Microcontroller | ATmega2560 |
| Host Control System | Raspberry Pi, Node.js |
| Communication Interfaces | Ethernet, UDP, Serial |
| Thrusters | Blue Robotics T100 × 6 |
| Cameras | 8 units |
| Application | Underwater Exploration and Remote Robot Control |
Overall System Architecture
The Lazarus system consists of two main sections: the Topside Control System and the Bottomside Control System. These systems are connected through a tether incorporating a CAT6A Ethernet cable, while robot control data and IP video data are processed by separate devices.
Lazarus System Architecture

Reconstructed from the electrical system and software architecture diagrams in the 2017 Technical Documentation.

Image Source: https://20693798.fs1.hubspotusercontent-na1.net/hubfs/20693798/TechRepor
Topside Control System
A Node.js-based web server runs on a Raspberry Pi. It processes joystick inputs, calculates thruster control values, and monitors the vehicle's operational status through a web interface.
Bottomside Control System
The ROV1 main control board, equipped with the W5500, handles network communication. The remaining MCUs are connected through serial interfaces, allowing individual functions to be distributed across multiple controllers.
| Control Board | Primary Function |
|---|---|
| ROV1 | UDP communication, thruster and camera control |
| ROV2 | Power and humidity monitoring |
| ROV3 | Attitude and depth measurement, status display |
| ROV4 | Mission-specific tool control |
Video data is processed through a dedicated Axis M7001 video encoder. Although both systems share the same network infrastructure, separating video processing from robot control reduces the computational workload on the MCU.
2. Why WIZnet? – W5500-Based Ethernet Control
W5500 Integrated into a Custom PCB
According to page 10 of the technical documentation, the development team integrated the ATmega2560 used in the Arduino Mega and the W5500 used in the Arduino Ethernet Shield 2 into a single PCB.
Instead of combining existing development boards and expansion shields, the team designed the necessary circuitry directly, reducing costs and establishing a modular control system tailored to the vehicle's functional requirements.
The W5500 enables socket-based network communication without requiring a separate software TCP/IP stack on the MCU.
Hardware TCP/IP Offloading
The ATmega2560 is an 8-bit MCU with 8 KB of SRAM. With such limited resources, efficient memory and computational resource management is essential when handling network protocols and robot control simultaneously.
In a conventional software TCP/IP architecture, the MCU must process both network protocols and application logic. In contrast, the W5500 processes TCP/IP protocols using dedicated hardware, reducing the network processing workload on the MCU.
| W5500 Key Specifications | Technical Benefits |
|---|---|
| Hardware TCP/IP Stack | Reduces MCU protocol processing workload |
| 8 Hardware Sockets | Supports independent socket communication |
| 32 KB TX/RX Buffer | Provides network transmission and reception buffers outside the MCU |
| 10/100 Mbps Ethernet | Supports wired network connectivity |
| SPI up to 80 MHz | Supports data exchange with the MCU |
In systems such as Lazarus, where multiple thrusters, sensors, and peripheral devices must be controlled simultaneously, hardware offloading helps preserve MCU resources for application-level processing.
However, the original technical documentation does not include comparative measurements of CPU utilization or communication latency before and after implementing the W5500.
3. Software and Communication Implementation
UDP-Based Remote Control
Lazarus uses UDP to continuously update joystick inputs and vehicle control states.
Unlike TCP, UDP does not require connection establishment or transport-layer retransmission. This makes it suitable for remote control systems where delivering the latest control commands is more important than retransmitting previous commands.
The Lazarus control process operates as follows:
The Raspberry Pi collects joystick inputs.
The Node.js application calculates thruster control values.
The Topside Control System transmits UDP control packets.
The W5500 in the Bottomside Control System receives the packets.
The ATmega2560 processes the commands and controls the thrusters and peripheral devices.
Received packets and sensor data are returned to the Topside Control System.
The vehicle's operational status is monitored through the web interface and HUD.
The development team also implemented an Echo function that allows ROV1 to return received packets to the topside system. This functionality helps verify control packet delivery and diagnose communication issues.
Fail-safe: Communication Failure Handling
In underwater robotic systems, it is essential to prevent the last received control command from remaining active after network communication is lost.
Lazarus is designed to deactivate its thrusters and peripheral devices when communication is interrupted and remain in Safe Mode until communication is restored.
This fail-safe functionality is not an inherent robotic safety feature of the W5500. Instead, it is implemented through application-level control logic running on the MCU.
Since UDP does not guarantee packet delivery, similar systems require separate mechanisms for packet reception timeouts, data validation, and communication recovery.
The original firmware and PCB schematics from 2017 could not be verified. Therefore, specific W5500 initialization code, SPI pin configurations, UDP port assignments, and timeout settings have been omitted.
4. Ethernet Communication Issues and Troubleshooting
One of the most noteworthy aspects of this project is the Ethernet communication issues documented on page 17 of the technical report.
Underwater robotic systems incorporate long tether cables, waterproof connectors, motors, and power conversion devices. Consequently, both Ethernet controller performance and physical-layer signal integrity are important considerations.
Actual Issues and Solutions
| Identified Issue | Implemented Solution |
|---|---|
| Connectivity issues caused by splitting CAT5e cable pairs | Replaced the cable with CAT6A without splitting the twisted pairs |
| Signal interference in untwisted wire sections inside underwater connectors | Minimized the length of untwisted wire sections |
| Link speed negotiation issues between network devices | Installed Gigabit Ethernet switches on both the topside and bottomside |
The development team reported that these improvements established a stable network link.
The Gigabit Ethernet switches serve the overall network infrastructure, while the W5500 itself supports a maximum Ethernet link speed of 100 Mbps.
Design Considerations for W5500-Based Robotic Systems
Signal Integrity: Maintain the twisted-pair structure throughout the entire communication path, including waterproof connectors.
PHY Link: Verify physical connectivity and Ethernet link speed negotiation results.
EMI: Consider electromagnetic interference generated by thrusters, electronic speed controllers (ESCs), and DC-DC converters.
SPI Clock: Configure the SPI clock according to the MCU's supported frequency and PCB signal quality.
Socket Buffer: Allocate transmission and reception buffers according to control packet sizes and transmission intervals.
Fail-safe: Implement packet reception timeouts and communication recovery procedures.
Lazarus demonstrates a practical embedded Ethernet implementation that combines hardware TCP/IP offloading, physical-layer design, and application-level failure handling.
The project is technically significant because it demonstrates that implementing an Ethernet controller alone does not guarantee communication reliability. The entire system, including PCB design, cables, connectors, and firmware, must be considered.
5. FAQ
Q1. Why use the W5500 in underwater robotic systems?
The W5500 provides a hardware TCP/IP stack and 32 KB of internal transmission and reception buffers. This allows resource-constrained MCUs, such as the ATmega2560, to handle network communication and robot control efficiently without processing the entire network protocol stack in software.
Q2. How is the W5500 connected to the ATmega2560?
The W5500 communicates with the ATmega2560 through an SPI interface consisting of MOSI, MISO, SCK, and CS signals.
When designing a custom PCB, additional considerations include power supply, reset circuitry, clock configuration, voltage compatibility, and Ethernet transformer circuitry.
Q3. What role does the W5500 play in Lazarus?
The W5500 handles UDP communication between the Topside Control System and ROV1, the main underwater control board.
It receives joystick control commands and returns sensor data and diagnostic information, while camera video is processed through a separate video encoder.
Q4. Can a similar system be developed using Arduino?
Yes. A basic UDP-based remote control system can be implemented using an Arduino Mega and a W5500-based Ethernet Shield 2 without designing a custom PCB.
Developers with basic Arduino programming and networking knowledge can begin implementing the system. However, actual underwater operation requires additional knowledge of waterproof enclosure design, motor control, and safety mechanisms.
Q5. What are the differences between the W5500 and ENC28J60?
| Feature | W5500 | ENC28J60 |
|---|---|---|
| TCP/IP Stack | Hardware | MCU-based software |
| Ethernet | 10/100 Mbps | 10 Mbps |
| Internal Buffer | 32 KB | 8 KB |
| MCU Interface | SPI | SPI |
| Protocol Processing | Dedicated hardware | MCU |
| MCU Resource Usage | Relatively low | Dependent on the software stack |
The ENC28J60 requires a separate software TCP/IP stack running on the MCU, whereas the W5500 processes network protocols using dedicated hardware.
Therefore, in embedded systems such as Lazarus, where network communication and multiple peripheral devices must be managed simultaneously, the W5500's hardware offloading architecture offers an advantage in MCU resource management.
