How Does the Open Acidification Tank Controller Hold pH to 0.005 on an 8 KB Arduino?
A $250 open-hardware pH and temperature controller for ocean acidification work. The W5100 carries its web UI and telemetry so the PID loop never stalls.
0
Components
Hardware components
WIZnet - W5100
On an Arduino Ethernet Shield v1. TCP server for the web UI + TCP client to Google Sheets, 2 of 4 sockets
Project description
01 — What is this project?
Ocean acidification research has a replication problem, and it is a budget problem. To test how a falling pH affects an organism you need tanks held at precise, stable pH values — and you need many of them, because one tank is one replicate.
The commercial options make that arithmetic brutal. The paper lists them:
| System | Cost |
|---|---|
| Loligo Systems OmniCTRL | "approximately $7,500 USD (7,108 euros) to control a single aquarium" + ~$2,100 per additional tank |
| Honeywell UDA 2182 meter (used by other open projects) | ~$1,500 |
| Neptune ApexEL | $560 |
| American Marine Pinpoint pH Controller | $200 |
A lab wanting eight replicate tanks is looking at roughly $22,000 before it buys a single octopus.
The Open Acidification Tank Controller is a complete, documented, openly licensed answer: an Arduino Mega-based controller that holds aquarium pH and temperature to research standards for "less than $250 USD per aquarium." Not a sketch on a blog — a HardwareX paper with a bill of materials, a KiCad PCB, a FreeCAD enclosure, firmware under MPL-2.0, OSHWA certification, and validation data.
And the measured performance is not a compromise. At a 7.9 setpoint, "the tank had a measured pH of 7.899 ± 0.005 (mean ± SD) over the course of 100 hr." The paper's own comparison table puts commercial systems in the range of 0.01 to 0.2 SD. The $250 device is at 0.005.
02 — Why an Arduino Mega with a hardware TCP/IP shield?
🔷 Reason 1 — The controller must never stop controlling
This is a PID loop driving a CO₂ solenoid against a 935 L body of seawater. The loop runs continuously for months. Every millisecond the MCU spends somewhere else is a millisecond the gas valve state is stale.
That constraint rules out an awful lot of networking architectures before you start.
🔷 Reason 2 — The Mega cannot host a software TCP/IP stack
An ATmega2560 has 8 KB of SRAM. A software stack such as LwIP or uIP needs buffers, a connection table, retransmission queues and timers — and on a chip with 8 KB total, the stack and the application are competing for the same scarce resource. Add a web server to it and the contest is over.
So the decision is structural rather than aesthetic: on an 8-bit MCU this small, the TCP/IP stack has to be somewhere other than the MCU. A hardwired controller puts it on the other side of the bus, where it costs the Mega no RAM at all.
🔷 Reason 3 — Two simultaneous network roles, in opposite directions
The device is both a server and a client, at the same time, for the whole deployment:
- Inbound: a researcher opens a browser to change the setpoint. "When connected by Ethernet to a network, the device settings can be viewed and configured using a web browser."
- Outbound: the device pushes readings to a spreadsheet. "The Tank Controller devices can report current pH and Temperature readings for the tank to a Google Sheet."
Both have to work without either blocking the PID loop. That is the requirement that picks the part.
🔷 Where the W5100 sits in the WIZnet line
The W5100 documentation gives the relevant figures: "Support 4 Independent Hardware SOCKETs simultaneously", "Internal 16 Kbytes Memory for TX/ RX Buffers", "Support Serial & Parallel Host Interface: High Speed SPI(MODE 0/3), Parallel System Bus with 2 Address signal & 8bits Data", "Support Hardwired Internet Protocols: TCP, UDP, WOL over UDP, ICMP, IGMPv1/v2, IPv4, ARP, PPPoE", and "10BaseT/100BaseTX Ethernet PHY Integrated".
Those two numbers — 4 sockets and 16 KB of buffer, none of it borrowed from the host — are exactly what this device needs and twice what it uses. The W5100 is the part this class of long-lived Arduino instrument was built around, and the reason classic Arduino Ethernet shields are still viable platforms for serious scientific hardware a decade on.
03 — System architecture
┌──────────────── 935 L seawater aquarium (35 psu, 23 °C) ────────────────┐
│ │
│ BNC glass pH electrode PT100 RTD (3-wire, waterproof) │
│ │ │ │
└────────────┼──────────────────────────────────────┼─────────────────────┘
│ │
┌──────────────▼──────────────┐ ┌────────────────▼─────────────────┐
│ Atlas Scientific EZO pH │ │ Adafruit MAX31865 RTD amplifier │
│ + isolated BNC carrier │ │ (resistance → temperature) │
│ 0.001 res, ±0.002 accuracy │ └────────────────┬─────────────────┘
└──────────────┬──────────────┘ │
│ I²C │ SPI
┌────────────▼──────────────────────────────────────▼──────────────┐
│ Arduino Mega 2560 (8 KB SRAM) │
│ │
│ PID loop ──────▶ setpoint modes: hold / ramp / sine │
│ PCF8523 RTC ───▶ timestamps, scheduled ramps │
│ 4×4 keypad + 1602 LCD ──▶ local UI, no network needed │
│ │
│ custom KiCad "Half_Shield" PCB: connectors + power │
└───────┬──────────────────────────────────┬───────────────────────┘
│ SPI │ GPIO
┌───────────▼────────────┐ ┌────────────▼─────────────────┐
│ Ethernet shield │ │ 2-ch relay (Songle SRD-05) │
│ WIZnet W5100 │ │ ├─ AC outlet → heater/chiller│
│ 4 HW sockets, 16 KB │ │ └─ 12 V solenoid → CO₂ feed │
│ micro-SD (local log) │ └──────────────────────────────┘
└───────────┬────────────┘
│ 10/100 Ethernet
┌───────────▼───────────────────────────────────────────────────┐
│ TCP server socket ◀── browser: view & configure settings │
│ TCP client socket ──▶ PushingBox → Google Apps Script │
│ → Google Sheet (tankid/temp/pH) │
└───────────────────────────────────────────────────────────────┘
Housing: 3D-printed PLA (front plate / back plate / skirt), ~250 g, M4 press-fit
04 — Why the W5100? ⭐
🔷 The technical core: the stack is off the MCU, so the control loop keeps the MCU
Everything about this device's viability rests on one division of labour. The Mega runs the PID loop, reads the EZO circuit over I²C, reads the MAX31865 over SPI, drives the keypad and LCD, and switches two relays. The W5100 runs TCP, UDP, ICMP, ARP and IGMP in silicon, with its own 16 KB of buffer memory.
The Mega never allocates a packet buffer. It never runs a retransmission timer. It never services a TCP state machine. It writes bytes to a socket and reads bytes back, and the pH loop timing is unaffected by whether anyone is browsing the web interface.
On an 8 KB-SRAM host this is not an optimization — it is the difference between the device existing and not existing.
🔷 Socket modes used — TOE TCP, in both directions
- TCP server (
Sn_MR_TCP, listen) — the configuration web interface. Implemented through the Arduino Ethernet library's server class, which maps onto a hardware-accelerated TCP socket. - TCP client (
Sn_MR_TCP, connect) — the telemetry push. The device issues an HTTP GET to the PushingBox "Custom URL" service with the reading as query parameters (tankid,tempData,pHdata), which relays into a Google Apps Script web app and lands in a Google Sheet. The reporting interval is user-set via a "Google mins" option. - Sockets used: 2 of 4. Two remain free, which is why the design has headroom for additional reporting endpoints without touching the MCU side.
- IPRAW / MACRAW — not used. This is an instrument, not a packet tool.
The assembly instructions name the part explicitly: "Arduino Ethernet Shield v1 (WIZnet W5100)."
🔷 Why not Wi-Fi?
The device lives beside a saltwater tank in a wet lab, often in a basement, often in a row of eight identical units. Wired Ethernet gives it a stable address, no RF contention with the other seven, no credential rotation, and no reconnection logic in a system whose entire value proposition is running untouched for 100-hour validation runs. The paper's choice of a cabled shield over a Wi-Fi module is the quiet correct answer for permanent lab instrumentation.
🔷 Verified evidence ✅
| Claim | Evidence |
|---|---|
| pH hold accuracy | 7.899 ± 0.005 (mean ± SD) at 7.9 setpoint, over 100 hours |
| Second setpoint | 7.701 ± 0.005 at 7.7 setpoint |
| vs commercial systems | Paper's comparison table: commercial SD 0.01 – 0.2; other open projects 0.02–0.06; this device 0.005 |
| Dynamic control | 24-hour linear ramp 7.9 → 7.7, and a sine wave (mean 7.75, amplitude 0.25, period 24 h) — the authors state sine control "is completely unique to ocean acidification pH tank controllers to our knowledge" |
| Cost | "less than $250 USD per aquarium"; pH meter assembly "under $90"; PCB "as little as $5" |
| Sensor spec | Atlas Scientific EZO pH: 0.001 resolution, ±0.002 accuracy |
| Real scientific use | Two peer-reviewed studies already published using the device — immune function in Octopus rubescens, metabolic rate in Muusoctopus leioderma |
| Test conditions | 935 L saltwater holding tank, ~35 psu, 23 °C, CO₂ via air stone |
05 — Key components
🌐 WIZnet W5100 — TOE TCP, server + client concurrently
On an Arduino Ethernet Shield v1. 4 independent hardware sockets, 16 KB internal TX/RX buffer, SPI host interface, 10/100 PHY integrated. Carries the configuration web server and the Google Sheets telemetry client simultaneously, using 2 of 4 sockets, with zero SRAM cost to the host.
🧠 Arduino Mega 2560
The controller. 8 KB SRAM — the constraint that makes the hardware stack mandatory rather than merely convenient. Listed in the BOM as an Elegoo-compatible board at $20.99.
🧪 Atlas Scientific EZO pH circuit + electrically isolated carrier
$45.99 + $41.99. 0.001 resolution, ±0.002 accuracy, 1/2/3-point calibration. The isolated carrier matters in a tank full of grounded equipment. A user-supplied BNC glass electrode completes it ($30 to $500+); the consumer-grade Atlas probe is expected to last about 12 months of continuous use.
🌡️ PT100 RTD + Adafruit MAX31865
$12.98 + $14.95. Three-wire waterproof RTD, amplifier converts resistance to temperature.
⚡ 2-channel relay + CO₂ solenoid
Songle SRD-05VDC-SL-C module, $6.79, switching panel-mount AC outlets for a heater or chiller, plus a ~2.5 W 12 V solenoid on a CO₂ regulator. Note the honest asymmetry: the design adds CO₂ but cannot remove it, so pH can be driven down and allowed to drift up.
🕒 Adafruit PCF8523 RTC
$6.95. Keeps time for timestamped logs and scheduled ramps independently of the network.
🔌 Custom "Half_Shield" KiCad PCB
Carries connectors and power circuitry. TI switching regulator steps 9 V to 7 V for the Arduino; buck converters supply 5 V and 9 V rails. As little as $5 to fabricate.
🖥️ Local interface
4×4 keypad ($1.80) and 1602 LCD ($4.50) — the device is fully operable with no network at all. Ethernet is an addition, not a dependency.
📦 3D-printed enclosure
PLA, FDM, 20% infill, ~250 g per unit before supports. Front plate, back plate, skirt, M4 press-fit nuts.
06 — Application scenarios
01. Replicated ocean acidification experiments
The original purpose. Eight tanks at eight setpoints for the price of one commercial single-tank controller, each reporting into one shared spreadsheet so a researcher can see all eight from a phone.
02. Aquaculture and hatchery pH management
Shellfish hatcheries are acutely sensitive to carbonate chemistry. The sine-wave mode maps directly onto reproducing natural diel pH cycles rather than an artificially flat value.
03. Any single-variable chemostat
Swap the probe and the actuator and the architecture is unchanged: a PID loop, a relay, a web interface for setpoints, and a telemetry push. Dissolved oxygen, ORP, conductivity, or temperature-only control all fit.
04. Teaching open instrumentation
A complete, OSHWA-certified, peer-reviewed example spanning KiCad, FreeCAD, embedded C++, PID tuning, and networked telemetry — with validation data to reproduce. The paper notes that most units were assembled at the authors' School of Engineering.
Conclusion
A $250 open-hardware controller beat $7,500 commercial systems on its headline specification — and it is only possible because an 8 KB MCU was allowed to delegate its entire TCP/IP stack to a W5100.
- ✅ pH 7.899 ± 0.005 held over 100 continuous hours; best standard deviation in the paper's own comparison table against commercial systems at 0.01–0.2
- ✅ "less than $250 USD per aquarium" against a cited $7,500 for a single-tank commercial controller — roughly a 30× cost reduction
- ✅ W5100 carries a TCP server and a TCP client simultaneously, using 2 of 4 hardware sockets, with zero SRAM cost to an 8 KB host
- ✅ Hold, 24-hour linear ramp, and sine-wave pH control — the last "completely unique to ocean acidification pH tank controllers" per the authors
- ✅ Complete design release: KiCad PCB + FreeCAD/STL housing under CERN-OHL-W, firmware under MPL-2.0, all on Zenodo
- ✅ OSHWA certified (UID US002053)
- ✅ Already used in two published peer-reviewed studies — this is deployed scientific instrumentation, not a proof of concept
- ✅ Fully operable from keypad and LCD with no network — Ethernet extends it rather than gating it
Q&A
Q. Which W5100 socket mode does this use? A. TOE TCP in both roles. One socket listens as a server for the configuration web interface; another connects out as a client to issue an HTTP GET to PushingBox, which relays to a Google Apps Script and into a Google Sheet. Two of the four hardware sockets are in use, leaving headroom.
Q. Why a 2023 paper on a chip from the 2000s? A. Because the pairing still solves the problem better than the alternatives at this scale. An ATmega2560 has 8 KB of SRAM; a software stack plus a web server does not fit. The W5100's 16 KB of dedicated buffer and 4 hardware sockets sit entirely outside that budget. Pick a newer MCU and you redesign the whole instrument; keep the Mega and the W5100 is the part that makes it work.
Q. Could this be built on a W5500 or a W5500-EVB-Pico today? A. Yes, and for a new design it would be a reasonable modernization — more sockets, larger buffers, a faster SPI. The reason to document the W5100 version is that it is the one with 100 hours of validation data, OSHWA certification, two published studies behind it, and a complete licensed design release. Reproducibility is the point of a HardwareX paper.
Q. Is the Ethernet connection required to run an experiment? A. No. The keypad and LCD give full local control, and logging goes to a micro-SD card on the shield. Ethernet adds remote configuration and the shared spreadsheet, which is what makes an eight-tank array practical to supervise.
Q. What are the honest limitations? A. Three, all stated by the authors. The PID is tuned by hand — "PID autotune algorithm has not been integrated into the system at this time" — though they note "very good pH control can be achieved by only adjusting the KP value." The design adds CO₂ but cannot remove it. And the inexpensive probe is a consumable, expected to last about 12 months of continuous use.
Q. Where are the design files? A. Zenodo, in three releases: firmware 10.5281/zenodo.5508206 (MPL-2.0), housing 10.5281/zenodo.5348212 (CERN-OHL-W), PCB 10.5281/zenodo.5348218 (CERN-OHL-W). Development continues at github.com/Open-Acidification/TankController. The bill of materials is a table in the paper itself.
한국어 버전
Open Acidification Tank Controller — 250달러로 연구급 pH 제어, 스택이 하드웨어에 있어서 가능했다
#W5100 #TOE #TCP #오픈하드웨어 #ArduinoMega #해양산성화 #PID #CERN-OHL #OSHWA #과학계측기
📚 맥락: 심사를 거친 오픈하드웨어 논문 (HardwareX, 2023), Walla Walla University — OSHWA 인증, UID US002053 검증 상태: 설계 파일 전부 오픈 라이선스로 Zenodo 공개. 이 장비로 수행된 심사 논문이 이미 2편
01 — 어떤 프로젝트인가
해양 산성화 연구에는 반복측정 문제가 있고, 그건 결국 예산 문제입니다. pH가 떨어질 때 생물이 어떻게 반응하는지 보려면 정확하고 안정된 pH로 유지되는 수조가 필요하고, 그 수조가 여러 개 있어야 합니다. 수조 하나가 반복군 하나이기 때문입니다.
상용 장비를 보면 이 계산이 가혹해집니다. 논문이 열거합니다.
| 시스템 | 비용 |
|---|---|
| Loligo Systems OmniCTRL | "수조 한 대를 제어하는 데 약 $7,500(7,108유로)" + 수조 추가당 약 $2,100 |
| Honeywell UDA 2182 미터 (타 오픈 프로젝트가 사용) | 약 $1,500 |
| Neptune ApexEL | $560 |
| American Marine Pinpoint pH Controller | $200 |
반복군 8개를 원하는 연구실은 문어 한 마리 사기도 전에 약 $22,000을 봐야 합니다.
Open Acidification Tank Controller는 완결되고 문서화되고 오픈 라이선스로 공개된 답입니다. Arduino Mega 기반 컨트롤러가 수조의 pH와 온도를 연구 수준으로 유지하는데, 비용이 "수조당 $250 이하" 입니다. 블로그에 올린 스케치가 아닙니다 — 부품표, KiCad PCB, FreeCAD 하우징, MPL-2.0 펌웨어, OSHWA 인증, 검증 데이터를 갖춘 HardwareX 논문입니다.
그리고 측정된 성능이 타협이 아닙니다. 설정값 7.9에서 "수조의 측정 pH는 100시간 동안 7.899 ± 0.005(평균 ± 표준편차)" 였습니다. 논문 자신의 비교표가 상용 시스템을 표준편차 0.01~0.2 구간에 놓습니다. $250 장비가 0.005입니다.
02 — 왜 Arduino Mega + 하드웨어 TCP/IP 실드인가
🔷 이유 1 — 컨트롤러는 제어를 멈추면 안 된다
935리터 해수를 상대로 CO₂ 솔레노이드를 PID로 제어합니다. 루프는 수 개월간 연속 동작합니다. MCU가 다른 데 쓰는 모든 밀리초가 가스 밸브 상태가 낡아 있는 밀리초입니다.
이 제약 하나로 수많은 네트워킹 구조가 시작도 전에 탈락합니다.
🔷 이유 2 — Mega에는 소프트웨어 TCP/IP 스택을 올릴 수 없다
ATmega2560의 SRAM은 8 KB입니다. LwIP나 uIP 같은 소프트웨어 스택은 버퍼, 연결 테이블, 재전송 큐, 타이머를 요구하는데, 전체가 8 KB인 칩에서는 스택과 애플리케이션이 같은 희소 자원을 두고 다툽니다. 거기에 웹 서버를 얹으면 승부는 끝납니다.
그래서 이 결정은 미감이 아니라 구조입니다. 이 정도 크기의 8비트 MCU에서는 TCP/IP 스택이 MCU가 아닌 다른 곳에 있어야 합니다. 하드와이어드 컨트롤러는 그걸 버스 반대편에 놓고, Mega의 RAM을 한 바이트도 쓰지 않습니다.
🔷 이유 3 — 서로 반대 방향의 네트워크 역할 두 개를 동시에
이 장비는 배치 기간 전체에 걸쳐 서버이면서 동시에 클라이언트입니다.
- 들어오는 쪽: 연구자가 브라우저를 열어 설정값을 바꿉니다. "이더넷으로 네트워크에 연결되면, 장비 설정을 웹 브라우저로 조회하고 구성할 수 있다."
- 나가는 쪽: 장비가 측정값을 스프레드시트로 밀어냅니다. "Tank Controller 장비는 해당 수조의 현재 pH와 온도 측정값을 Google Sheet로 보고할 수 있다."
둘 다 PID 루프를 멈추지 않으면서 동작해야 합니다. 부품을 결정하는 요구사항이 바로 이것입니다.
🔷 제품군 안에서 W5100의 자리
W5100 문서가 관련 수치를 줍니다 — "Support 4 Independent Hardware SOCKETs simultaneously", "Internal 16 Kbytes Memory for TX/ RX Buffers", "Support Serial & Parallel Host Interface: High Speed SPI(MODE 0/3), Parallel System Bus with 2 Address signal & 8bits Data", "Support Hardwired Internet Protocols: TCP, UDP, WOL over UDP, ICMP, IGMPv1/v2, IPv4, ARP, PPPoE", "10BaseT/100BaseTX Ethernet PHY Integrated".
이 두 숫자 — 소켓 4개와 버퍼 16 KB, 그 어느 것도 호스트에서 빌려오지 않음 — 이 이 장비가 필요한 것 정확히 그것이고, 쓰는 양의 두 배입니다. W5100은 이런 종류의 장수명 Arduino 계측기가 그 위에 세워진 부품이고, 고전적인 Arduino 이더넷 실드가 10년이 지난 지금도 진지한 과학 하드웨어의 플랫폼으로 유효한 이유입니다.
03 — 시스템 구조
┌──────────── 935 L 해수 수조 (35 psu, 23 °C) ────────────────────────┐
│ │
│ BNC 유리 pH 전극 PT100 RTD (3선식, 방수) │
│ │ │ │
└────────────┼──────────────────────────────────────┼─────────────────┘
│ │
┌──────────────▼──────────────┐ ┌────────────────▼─────────────────┐
│ Atlas Scientific EZO pH │ │ Adafruit MAX31865 RTD 증폭기 │
│ + 전기적 절연 캐리어 보드 │ │ (저항 → 온도) │
│ 분해능 0.001, 정확도 ±0.002 │ └────────────────┬─────────────────┘
└──────────────┬──────────────┘ │
│ I²C │ SPI
┌────────────▼──────────────────────────────────────▼──────────────┐
│ Arduino Mega 2560 (SRAM 8 KB) │
│ │
│ PID 루프 ──────▶ 설정 모드: 고정 / 램프 / 사인파 │
│ PCF8523 RTC ───▶ 타임스탬프, 예약 램프 │
│ 4×4 키패드 + 1602 LCD ──▶ 로컬 UI, 네트워크 불필요 │
│ │
│ 자체 KiCad "Half_Shield" PCB: 커넥터 + 전원부 │
└───────┬──────────────────────────────────┬───────────────────────┘
│ SPI │ GPIO
┌───────────▼────────────┐ ┌────────────▼─────────────────┐
│ 이더넷 실드 │ │ 2채널 릴레이 (Songle SRD-05) │
│ WIZnet W5100 │ │ ├─ AC 콘센트 → 히터/칠러 │
│ HW 소켓 4개, 16 KB │ │ └─ 12 V 솔레노이드 → CO₂ │
│ micro-SD (로컬 로그) │ └──────────────────────────────┘
└───────────┬────────────┘
│ 10/100 이더넷
┌───────────▼───────────────────────────────────────────────────┐
│ TCP 서버 소켓 ◀── 브라우저: 설정 조회·변경 │
│ TCP 클라이언트 ──▶ PushingBox → Google Apps Script │
│ → Google Sheet (tankid/temp/pH) │
└───────────────────────────────────────────────────────────────┘
하우징: 3D 프린팅 PLA (전면판 / 후면판 / 스커트), 약 250 g, M4 압입 너트
04 — 왜 W5100이어야 했는가 ⭐
🔷 기술적 핵심: 스택을 MCU에서 내렸기 때문에 MCU를 제어 루프가 가진다
이 장비의 성립 가능성 전체가 하나의 분업에 걸려 있습니다. Mega는 PID 루프를 돌리고, I²C로 EZO 회로를 읽고, SPI로 MAX31865를 읽고, 키패드와 LCD를 구동하고, 릴레이 2개를 스위칭합니다. W5100은 TCP·UDP·ICMP·ARP·IGMP를 실리콘에서 처리하며, 자기 몫의 16 KB 버퍼를 따로 가집니다.
Mega는 패킷 버퍼를 할당하지 않습니다. 재전송 타이머를 돌리지 않습니다. TCP 상태기계를 서비스하지 않습니다. 소켓에 바이트를 쓰고 읽어올 뿐이며, 누가 웹 인터페이스를 열어보고 있는지와 무관하게 pH 루프 타이밍은 영향받지 않습니다.
SRAM 8 KB 호스트에서 이것은 최적화가 아닙니다. 장비가 존재하는 것과 존재하지 않는 것의 차이입니다.
🔷 사용 소켓 모드 — TOE TCP, 양방향
- TCP 서버 (
Sn_MR_TCP, listen) — 설정용 웹 인터페이스. Arduino 이더넷 라이브러리의 서버 클래스를 통하며, 이는 하드웨어 가속 TCP 소켓에 매핑됩니다. - TCP 클라이언트 (
Sn_MR_TCP, connect) — 원격 측정 송신. 장비가 PushingBox "Custom URL" 서비스로 HTTP GET을 보내며 측정값을 쿼리 파라미터(tankid,tempData,pHdata)로 전달합니다. 이것이 Google Apps Script 웹앱으로 중계되어 Google Sheet에 기록됩니다. 보고 주기는 "Google mins" 옵션으로 사용자가 설정합니다. - 사용 소켓: 4개 중 2개. 2개가 남아 있고, 그래서 MCU 쪽을 건드리지 않고 보고 엔드포인트를 추가할 여유가 있습니다.
- IPRAW / MACRAW — 사용하지 않음. 이것은 계측기이고 패킷 도구가 아닙니다.
조립 지침이 부품을 명시합니다 — "Arduino Ethernet Shield v1 (WIZnet W5100)".
🔷 왜 Wi-Fi가 아닌가
이 장비는 습식 실험실의 해수 수조 옆, 흔히 지하실에, 흔히 동일한 유닛 8대가 늘어선 줄에 놓입니다. 유선 이더넷은 안정된 주소를 주고, 나머지 7대와 RF 경합이 없고, 자격증명 교체가 없고, 재접속 로직이 필요 없습니다 — 100시간 검증 운전을 손대지 않고 완주하는 것이 존재 이유인 시스템에 말이죠. Wi-Fi 모듈 대신 유선 실드를 고른 것은 상설 실험실 계측에서 조용히 옳은 답입니다.
🔷 검증된 증거 ✅
| 주장 | 근거 |
|---|---|
| pH 유지 정확도 | 설정값 7.9에서 7.899 ± 0.005 (평균 ± SD), 100시간 |
| 두 번째 설정값 | 설정값 7.7에서 7.701 ± 0.005 |
| 상용 시스템 대비 | 논문 비교표: 상용 SD 0.01 ~ 0.2, 타 오픈 프로젝트 0.02~0.06, 본 장비 0.005 |
| 동적 제어 | 24시간 선형 램프 7.9 → 7.7, 사인파(평균 7.75, 진폭 0.25, 주기 24h). 저자들은 사인파 제어가 "우리가 아는 한 해양 산성화 pH 수조 컨트롤러에서 완전히 독보적" 이라고 서술 |
| 비용 | "수조당 $250 이하", pH 미터 조립 "$90 이하", PCB "최소 $5" |
| 센서 스펙 | Atlas Scientific EZO pH: 분해능 0.001, 정확도 ±0.002 |
| 실제 과학적 사용 | 이 장비로 수행된 심사 논문 2편 이미 발표 — Octopus rubescens 면역 기능, Muusoctopus leioderma 대사율 |
| 시험 조건 | 935 L 해수 저수조, 약 35 psu, 23 °C, 에어스톤으로 CO₂ 공급 |
05 — 핵심 구성요소
🌐 WIZnet W5100 — TOE TCP, 서버와 클라이언트 동시
Arduino Ethernet Shield v1에 탑재. 독립 하드웨어 소켓 4개, 내부 TX/RX 버퍼 16 KB, SPI 호스트 인터페이스, 10/100 PHY 내장. 설정용 웹 서버와 Google Sheets 원격측정 클라이언트를 동시에 담당하며, 4개 중 2개를 쓰고, 호스트 SRAM 비용은 0입니다.
🧠 Arduino Mega 2560
컨트롤러. SRAM 8 KB — 하드웨어 스택을 편의가 아니라 필수로 만드는 제약입니다. 부품표에는 Elegoo 호환 보드 $20.99로 기재.
🧪 Atlas Scientific EZO pH 회로 + 전기적 절연 캐리어
$45.99 + $41.99. 분해능 0.001, 정확도 ±0.002, 1·2·3점 교정. 접지 장비가 가득한 수조에서 절연 캐리어는 중요합니다. 사용자가 BNC 유리 전극을 별도 준비($30~$500+). 저가 Atlas 프로브는 연속 사용 시 약 12개월 수명.
🌡️ PT100 RTD + Adafruit MAX31865
$12.98 + $14.95. 3선식 방수 RTD, 증폭기가 저항을 온도로 변환.
⚡ 2채널 릴레이 + CO₂ 솔레노이드
Songle SRD-05VDC-SL-C 모듈 $6.79. 히터나 칠러용 패널 마운트 AC 콘센트를 스위칭하고, CO₂ 레귤레이터에 달린 약 2.5 W 12 V 솔레노이드를 제어합니다. 정직한 비대칭 하나 — 이 설계는 CO₂를 넣을 수만 있고 빼낼 수는 없습니다. 따라서 pH를 내리는 방향으로만 능동 제어하고 올라가는 것은 자연 표류에 맡깁니다.
🕒 Adafruit PCF8523 RTC
$6.95. 네트워크와 무관하게 시간을 유지해 로그 타임스탬프와 예약 램프를 가능하게 합니다.
🔌 자체 "Half_Shield" KiCad PCB
커넥터와 전원부 담당. TI 스위칭 레귤레이터가 9 V를 7 V로 내려 Arduino에 공급하고, 벅 컨버터가 5 V·9 V 레일을 만듭니다. 제작비 최소 $5.
🖥️ 로컬 인터페이스
4×4 키패드($1.80)와 1602 LCD($4.50) — 네트워크가 전혀 없어도 완전히 조작됩니다. 이더넷은 추가 기능이고 전제조건이 아닙니다.
📦 3D 프린팅 하우징
PLA, FDM, 인필 20%, 유닛당 서포트 제외 약 250 g. 전면판·후면판·스커트, M4 압입 너트.
06 — 응용 시나리오
01. 반복측정 해양 산성화 실험
원래 목적. 상용 단일 수조 컨트롤러 한 대 값으로 8개 설정값의 8개 수조를 운용하고, 각각이 하나의 공유 스프레드시트로 보고하니 연구자가 휴대폰으로 8개를 한눈에 봅니다.
02. 양식장·종묘장 pH 관리
패류 종묘장은 탄산염 화학에 매우 민감합니다. 사인파 모드는 인위적으로 평탄한 값이 아니라 자연의 일주 pH 변동을 재현하는 데 그대로 대응합니다.
03. 단일 변수 케모스탯 전반
프로브와 액추에이터만 바꾸면 구조는 그대로입니다 — PID 루프, 릴레이, 설정값용 웹 인터페이스, 원격측정 송신. 용존산소, ORP, 전도도, 온도 전용 제어 모두 들어맞습니다.
04. 오픈 계측 교육
KiCad, FreeCAD, 임베디드 C++, PID 튜닝, 네트워크 원격측정을 아우르는 완결된 OSHWA 인증 심사 논문 사례이고, 재현할 검증 데이터까지 있습니다. 논문은 대부분의 유닛이 저자들의 공과대학에서 조립되었다고 밝힙니다.
Conclusion
$250 오픈하드웨어 컨트롤러가 대표 스펙에서 $7,500 상용 시스템을 이겼습니다 — 그리고 그것은 8 KB MCU가 TCP/IP 스택 전체를 W5100에 위임할 수 있었기 때문에만 가능했습니다.
- ✅ pH 7.899 ± 0.005를 100시간 연속 유지. 논문 자신의 비교표에서 상용 시스템 0.01~0.2 대비 최고 표준편차
- ✅ 상용 단일 수조 컨트롤러 $7,500 대비 "수조당 $250 이하" — 약 30배 비용 절감
- ✅ W5100이 TCP 서버와 TCP 클라이언트를 동시에 담당, 하드웨어 소켓 4개 중 2개 사용, 8 KB 호스트에 SRAM 비용 0
- ✅ 고정·24시간 선형 램프·사인파 pH 제어. 마지막 것은 저자들에 따르면 "해양 산성화 pH 수조 컨트롤러에서 완전히 독보적"
- ✅ 완전한 설계 공개: KiCad PCB + FreeCAD/STL 하우징 CERN-OHL-W, 펌웨어 MPL-2.0, 전부 Zenodo
- ✅ OSHWA 인증 (UID US002053)
- ✅ 이미 심사 논문 2편에서 사용 — 개념 증명이 아니라 실전 배치된 과학 계측기
- ✅ 키패드와 LCD로 네트워크 없이 완전 조작 — 이더넷은 확장이지 관문이 아님
Q&A
Q. W5100의 어떤 소켓 모드를 쓰나요? A. 양쪽 역할 모두 TOE TCP입니다. 한 소켓은 설정용 웹 인터페이스를 서버로 listen하고, 다른 소켓은 클라이언트로 PushingBox에 HTTP GET을 보내 Google Apps Script를 거쳐 Google Sheet에 기록합니다. 하드웨어 소켓 4개 중 2개 사용이고 여유가 남습니다.
Q. 2000년대 칩을 2023년 논문이 쓰는 이유가 뭔가요? A. 이 규모에서는 그 조합이 아직 대안보다 문제를 더 잘 풀기 때문입니다. ATmega2560의 SRAM은 8 KB이고, 소프트웨어 스택에 웹 서버까지는 들어가지 않습니다. W5100의 전용 버퍼 16 KB와 하드웨어 소켓 4개는 그 예산 바깥에 완전히 존재합니다. 더 새 MCU를 고르면 계측기 전체를 재설계해야 하고, Mega를 유지한다면 W5100이 그걸 성립시키는 부품입니다.
Q. 지금이라면 W5500이나 W5500-EVB-Pico로 만들 수 있나요? A. 가능하고, 신규 설계라면 합리적인 현대화입니다 — 소켓이 더 많고 버퍼가 크고 SPI가 빠릅니다. W5100 버전을 문서화하는 이유는 그 버전이 100시간 검증 데이터, OSHWA 인증, 심사 논문 2편, 완전한 라이선스 설계 공개를 가진 쪽이라는 데 있습니다. 재현성이 HardwareX 논문의 요점입니다.
Q. 실험을 돌리는 데 이더넷 연결이 필수인가요? A. 아닙니다. 키패드와 LCD로 완전한 로컬 제어가 되고, 로깅은 실드의 micro-SD로 갑니다. 이더넷은 원격 설정과 공유 스프레드시트를 더해주며, 그것이 8대 어레이의 감독을 현실적으로 만듭니다.
Q. 정직한 한계는 무엇인가요? A. 저자들이 밝힌 세 가지입니다. PID는 수동 튜닝이고 — "PID 오토튜닝 알고리즘은 현재 시스템에 통합되어 있지 않다" — 다만 "KP 값만 조정해도 매우 양호한 pH 제어가 가능하다"고 덧붙입니다. 설계는 CO₂를 넣을 수만 있고 빼낼 수 없습니다. 그리고 저가 프로브는 소모품이며 연속 사용 시 약 12개월 수명입니다.
Q. 설계 파일은 어디 있나요? A. Zenodo에 3개 릴리스로 — 펌웨어 10.5281/zenodo.5508206(MPL-2.0), 하우징 10.5281/zenodo.5348212(CERN-OHL-W), PCB 10.5281/zenodo.5348218(CERN-OHL-W). 개발은 github.com/Open-Acidification/TankController에서 계속됩니다. 부품표는 논문 본문의 표입니다.
Original Link: https://doi.org/10.1016/j.ohx.2023.e00435