W5500 and ESP-NOW Moto Gymkhana Timer: One Trigger, Two Paths
MGTS sends each photoelectric START and STOP event over ESP-NOW and W5500 UDP, then applies shared duplicate guards in an ESP32-C6 timing core.
0
Components
Hardware components
WIZnet - W5500
One module on the main display and one on each of the two sensor nodes in the core BOM
Project description
๐ Overview
A START command is only five letters, but a timing system has to treat it with unusual care. If the command never arrives, the run has no valid beginning. If two copies are counted as two events, the timing state can be corrupted. Adding a second network path therefore solves only half of the problem. The receiver also needs to recognize that two packets may represent one physical trigger.
MGTS, the Moto Gymkhana Timing System, is GitHub developer uspat1234-bit's evolving answer to that problem. Its current development branch combines XIAO ESP32-C6 boards, Omron photoelectric sensors, a matrix LED display, ESP-NOW, and W5500 Ethernet. Each START or STOP node sends the same qualified beam event over radio and wired UDP. The main board accepts the event through a shared command handler and applies guards before changing the timer state.
Moto Gymkhana is a timed motorcycle sport built around a cone course. Timing rules vary by organizer, but the start line and complete stop at the goal are decisive operational moments. MGTS focuses on the electronic chain around them: beam interruption, event delivery, duplicate handling, elapsed-time state, visible result, and operator workflow.
MGTS in one line: qualify one photoelectric trigger, send it by ESP-NOW and W5500 UDP, and apply one state-and-time guard before changing the timer.
Concept illustration of the source-described dual-path design. It is not a project photograph or a literal cabling plan.
Why One Timing Packet Matters
Ordinary telemetry can often send another temperature or status sample a moment later. A course-timing edge is different. The rider crosses it once, and the system has to preserve that event while ignoring rain, leaves, electrical noise, a blocked beam, and duplicate network copies.
A historical JAGE timing note makes the operational problem concrete. In an older one-photogate setup, start and finish signals could overlap, so an operator had to block the beam manually. MGTS supports a single-sensor practice mode, but its core hardware plan uses separate START and STOP nodes. That separation gives each physical line a clear role before networking begins.
The repository's strongest idea is not a performance number. It is a source-visible control pattern: filter at the edge, deliver over two media, and collapse close duplicates at one state machine. This pattern can be studied without assuming a specific packet-loss rate or timing accuracy.
One Trigger, Two Transport Paths
The START and STOP nodes follow the same pipeline. An Omron E3Z-R66 retro-reflective NPN sensor feeds the sensor board through a PC817 optocoupler, isolating its 12 V side from the ESP32-C6's 3.3 V logic. The firmware reads the isolated signal as an active-low input on GPIO21.
When the beam is interrupted, the input must remain LOW for at least 20 ms. After that qualification interval, the node creates either START or STOP. During the same trigger-handling pass, it makes two sequential ESP-NOW unicast calls, one to the main-board peer and one to the signal-board peer, then sends the same token as a W5500 UDP broadcast to 255.255.255.255:5005.
A one-shot lock prevents a continuously blocked beam from producing a packet stream. A sensor-side three-second guard limits fast retriggering. ESP-NOW is fixed to channel 1 in the relevant firmware, while the Ethernet path uses static addresses on one private subnet.
Original diagram created from current-main firmware constants and command paths.
These paths are parallel, not a bridge and not automatic failover. The sensor does not wait for one path to fail before using the other. It attempts both, and the receivers decide what each arrival means.
โ๏ธ What the W5500 Actually Does
The WIZnet W5500 is a hardwired TCP/IP controller with an integrated 10/100 Ethernet MAC and PHY. MGTS connects a generic W5500 module to each XIAO ESP32-C6 over SPI and uses Arduino Ethernet.h UDP sockets. The project does not need an internet connection for timing. Its wired messages stay on a local Ethernet segment.
The exact sensor-node SPI map is useful for builders: CS is GPIO1, reset is GPIO2, SCK is GPIO19, MISO is GPIO20, and MOSI is GPIO18. The checked source assigns 192.168.1.20 to the main display, .21 to START, .22 to STOP, and .30 to the signal board. Every wired node listens or sends on UDP port 5005.
W5500's precise role: it provides the SPI-connected wired path for sensor commands and result traffic. The ESP32-C6 firmware still owns event acceptance, elapsed time, modes, and display state.
Original wiring and address map derived from firmware, BOM, and EasyEDA source.
The BOM covers three W5500 modules for the main display and two sensor nodes. Later source also defines the signal board as a wired .30 node, so a complete current setup needs a common Ethernet segment, normally including a switch and cabling that are not listed in the original core BOM.
How the Main Board Turns Two Copies into One Event
The main board receives ESP-NOW data in its wireless callback and checks W5500 UDP in the main loop. Both routes feed the same processCommand() logic. That shared handler is the center of the design.
When the first valid START arrives, the board records the action and adds a runner. The code is intended to ignore another START inside the next three seconds, even if it arrived by the other network. STOP uses a corresponding guard. In normal multi-runner operation, STOP completes the oldest active runner, creating a FIFO timing queue of up to nine entries.
The duplicate logic is command-and-time based rather than packet-ID based. Packets contain no sensor timestamp or sequence number. The elapsed clock begins when the main board accepts the event, not when the photoelectric node first observed the beam. This makes the implementation easy to follow, while route-to-route timing calibration remains a separate engineering task.
After a STOP produces a result, the firmware holds it for one second, then broadcasts a compact JSON object over UDP and sends it to an ESP-NOW hub peer. The delay affects result reporting, not the already recorded elapsed value.
Original logic-order diagram. Spacing is schematic rather than a network-latency scale.
Layered event control: the 20 ms filter handles short input changes, the one-shot state handles a blocked beam, and the central three-second guard is intended to suppress close START or STOP copies from either transport.
There is no application-level acknowledgment, retransmission, or route reconciliation in the checked code. The ESP-NOW callback and Ethernet loop also share timing state without a queue or critical section, so simultaneous-arrival behavior belongs in a builder's target-hardware test plan. MGTS is best read as a clear dual-path event-delivery reference, with sequence IDs, acknowledgments, security, calibration, and field measurements available as future extensions.
Timing Modes, Signal Lights, and Operator Workflow
The extended main firmware provides three modes. MULT starts a new runner on START and completes the oldest runner on STOP. SOLO uses one START input as both edges: the first accepted event begins a run and the next completes it. SYNC receives SEQ_START and schedules its local timing origin five seconds later.
The signal-board firmware turns that sequence into an operator-visible countdown: first red at two seconds, second red at three, yellow at four, and green at five. A START before green produces a FLYING message; one after green produces REACTION. Signal and main boards each schedule from their own local millis() after receiving the command, so this is coordinated behavior rather than a shared-clock synchronization protocol.
A short main-board button press can force the active runner to the project's 999.999 DNF sentinel, while a long press cycles modes. The value is an MGTS workflow convention, not a universal Moto Gymkhana DNF code.
The repository's Python/Flet applications add the operator layer. They can import a rider CSV, read an NFC entry, send ENTRY by hub serial and UDP, receive RESULT through either route, maintain active runners, and export results. The voice variant adds spoken output, rankings, ratios, and manual result editing. Timing remains on the embedded main board; the desktop software supplies identities, presentation, and event operations.
What Builders Get, and What They Must Configure
This is a substantial public hardware-and-software repository. It includes firmware for START, STOP, main display, signal board, control hubs, and NFC; a BOM; four EasyEDA schematic/PCB JSON files; four segmented LED-enclosure STL files; and the Flet applications. The design reaches well beyond a single networking sketch.
The current branch is also an active prototype rather than a one-command build. A practical bring-up needs several deliberate steps:
- Put
sensor_start.inoandsensor_stop.inoin separate Arduino sketch folders, because both currently define their own globals,setup(), andloop()in one directory. - Choose either
main_board.inoormain_board_full.inoand isolate it for the same reason. - Replace placeholder peer bytes such as
0xXXand0xYY, then reconcile the concrete hub MAC addresses used by the later nodes. - Lock compatible ESP32 Arduino, ArduinoJson, Ethernet, LED, audio, NFC, and Flet dependencies, because the repository has no build manifest with versions.
- Bring up ESP-NOW and W5500 separately, then enable both and verify that one physical beam interruption creates one state transition.
- Define the tag format before combining the included NDEF tag writer with the embedded reader, which currently reads fixed raw bytes.
The repository does not declare a LICENSE. Review reuse and redistribution permission with the author before publishing a derivative design.
The Latest Release Is a Different Generation
MGTS changed architecture after its latest packaged release. The December 2025 v1.0 ZIP describes an earlier Wi-Fi 6 laptop-hotspot system with Windows applications, NFC, UDP, and Google Drive utilities. On June 15, 2026, the README and hardware direction were rewritten around ESP-NOW plus W5500. Signal, hub, NFC, app, and hardware work continued into July.
There is no tagged release for that later W5500 generation. Current main is 79 commits ahead of v1.0, and the release workflow still refers to files from the previous layout. The separate Android/Flet companion repository also follows the older hotspot and heartbeat protocol, so it should be read as an earlier companion track rather than the packaged interface for the current dual-path firmware.
Original lifecycle diagram created from tags, releases, commit history, and archive inspection.
Version checkpoint: use the current main branch to study the W5500 and ESP-NOW implementation described here. Use v1.0 to inspect the earlier packaged Wi-Fi system.
Related WIZnet Maker Reading Path
ESP-NOW Differential Probe offers a useful topology comparison. Its remote ESP-NOW measurements are aggregated at an ESP32/W5500 gateway, while MGTS originates the same event at each gate and sends it over both media.
ArtNet to ESP-NOW DMX512 uses the same broad ESP32, W5500, ESP-NOW, and UDP ingredients in the opposite direction: Ethernet traffic enters a bridge and fans out over ESP-NOW.
For the motorsport data angle, PER, Purdue Electric Racing uses W5500 UDP broadcast for continuous Formula SAE telemetry. MGTS instead moves small, discrete photoelectric events that change a course-timing state.
Source-Backed Summary
MGTS connects a physical race-course edge to an embedded result in a traceable sequence: E3Z-R66 beam break, PC817 isolation, 20 ms qualification, ESP-NOW unicasts plus W5500 UDP broadcast, shared command guard, ESP32-C6 timing state, LED result, and Flet operator workflow.
Its most reusable lesson is larger than any one protocol. A second transport becomes useful only when the application defines what counts as the same event. MGTS makes that decision visible in code, hardware files, timing modes, and the lifecycle of an ambitious maker system.
โ FAQ
Q. What does MGTS use the W5500 for? Each wired node uses the W5500 as its local Ethernet interface. START and STOP sensors broadcast their event on UDP port 5005, and the main board also publishes result JSON over UDP.
Q. Are ESP-NOW and W5500 configured as automatic failover? No. A qualified sensor event attempts both routes during the same trigger pass. Close matching arrivals converge on the same handler, where the three-second action guard is intended to suppress a second transition.
Q. Where is elapsed time captured? In this implementation, the main board records millis() when it accepts START or STOP. Sensor packets do not carry a source timestamp or sequence number.
Q. Can the current repository compile exactly as cloned? It needs preparation. Separate the competing Arduino sketch variants, replace placeholder MAC bytes, reconcile peer constants, and install compatible libraries before building each target.
Q. Which download contains the W5500 architecture? The current main branch contains the W5500 plus ESP-NOW source. The latest tagged v1.0 release contains the earlier Wi-Fi-hotspot generation.
ํ๊ตญ์ด (Korean)
๐ ๊ฐ์
START๋ ๋ค์ฏ ๊ธ์๋ฟ์ธ ๋ช
๋ น์ด์ง๋ง, ๊ณ์ธก ์์คํ
์ ์ด๋ฅผ ์์ฃผ ์ ์คํ๊ฒ ๋ค๋ค์ผ ํฉ๋๋ค. ๋ช
๋ น์ด ๋์ฐฉํ์ง ์์ผ๋ฉด ์ถ๋ฐ ์์ ์ด ์ฌ๋ผ์ง๊ณ , ๋ ๊ฐ์ ๋ณต์ฌ๋ณธ์ ๋ ๋ฒ์ ์ด๋ฒคํธ๋ก ์ฒ๋ฆฌํ๋ฉด ๊ณ์ธก ์ํ๊ฐ ํ์ด์ง ์ ์์ต๋๋ค. ๋ฐ๋ผ์ ๋ ๋ฒ์งธ ๋คํธ์ํฌ ๊ฒฝ๋ก๋ฅผ ์ถ๊ฐํ๋ ๊ฒ๋ง์ผ๋ก๋ ๋ฌธ์ ์ ์ ๋ฐ๋ง ํด๊ฒฐ๋ฉ๋๋ค. ์์ ๊ธฐ๋ ๋ ํจํท์ด ํ๋์ ๋ฌผ๋ฆฌ์ ํธ๋ฆฌ๊ฑฐ๋ฅผ ๋ปํ ์ ์๋ค๋ ์ฌ์ค์ ์์์ผ ํฉ๋๋ค.
MGTS, Moto Gymkhana Timing System์ GitHub ๊ฐ๋ฐ์ uspat1234-bit๊ฐ ์ด ๋ฌธ์ ๋ฅผ ํ๊ธฐ ์ํด ๋ฐ์ ์ํค๊ณ ์๋ ํ๋ก์ ํธ์
๋๋ค. ํ์ฌ ๊ฐ๋ฐ ๋ธ๋์น๋ XIAO ESP32-C6, Omron ๊ด์ ์ผ์, ๋งคํธ๋ฆญ์ค LED ๋์คํ๋ ์ด, ESP-NOW, W5500 Ethernet์ ๊ฒฐํฉํฉ๋๋ค. START์ STOP ๋
ธ๋๋ ์กฐ๊ฑด์ ํต๊ณผํ ๋์ผํ ๋น ์ด๋ฒคํธ๋ฅผ ๋ฌด์ ๊ณผ ์ ์ UDP๋ก ๋ณด๋
๋๋ค. ๋ฉ์ธ ๋ณด๋๋ ๊ณตํต ๋ช
๋ น ํธ๋ค๋ฌ๋ก ์ด๋ฒคํธ๋ฅผ ๋ฐ์ ๊ฐ๋๋ฅผ ์ ์ฉํ ๋ค ํ์ด๋จธ ์ํ๋ฅผ ๋ฐ๊ฟ๋๋ค.
๋ชจํ ์ง์นด๋๋ ์ฝ์ผ๋ก ๋ง๋ ์ฝ์ค๋ฅผ ๋ฌ๋ฆฌ๋ ์๊ฐ์ ๊ฒจ๋ฃจ๋ ๋ชจํฐ์ฌ์ดํด ์ข ๋ชฉ์ ๋๋ค. ์ธ๋ถ ๊ท์น์ ์ฃผ์ต ๋จ์ฒด๋ง๋ค ๋ค๋ฅด์ง๋ง ์ถ๋ฐ์ ์ ํต๊ณผํ๋ ์๊ฐ๊ณผ ๊ณจ ์ง์ ์์ ์์ ํ ์ ์งํ๋ ์ ์ฐจ๋ ์ด์์ ๋งค์ฐ ์ค์ํฉ๋๋ค. MGTS๋ ๊ทธ ์๊ฐ์ ๋๋ฌ์ผ ์ ์์ ํ๋ฆ์ ์ง์คํฉ๋๋ค. ๋น ์ฐจ๋จ, ์ด๋ฒคํธ ์ ์ก, ์ค๋ณต ์ฒ๋ฆฌ, ๊ฒฝ๊ณผ ์๊ฐ ์ํ, ๊ฒฐ๊ณผ ํ์, ์ด์์ ์ํฌํ๋ก๊ฐ ํ๋๋ก ์ด์ด์ง๋๋ค.
ํ ๋ฌธ์ฅ์ผ๋ก ๋ณด๋ MGTS: ํ๋์ ๊ด์ ํธ๋ฆฌ๊ฑฐ๋ฅผ ํ์ธํ๊ณ , ESP-NOW์ W5500 UDP๋ก ๋ณด๋ธ ๋ค, ํ์ด๋จธ๋ฅผ ๋ฐ๊พธ๊ธฐ ์ ์ ํ๋์ ์ํยท์๊ฐ ๊ฐ๋๋ฅผ ์ ์ฉํฉ๋๋ค.
์์ค์ ์ค๋ช
๋ ์ด์ค ๊ฒฝ๋ก ์ค๊ณ์ ๊ฐ๋
์ผ๋ฌ์คํธ์
๋๋ค. ์ค์ ํ๋ก์ ํธ ์ฌ์ง์ด๋ ๊ทธ๋๋ก ๋ฐ๋ผ์ผ ํ ๋ฐฐ์ ๋๋ ์๋๋๋ค.
ํ๋์ ๊ณ์ธก ํจํท์ด ์ค์ํ ์ด์
์ผ๋ฐ ํ ๋ ๋ฉํธ๋ฆฌ๋ ์ ์ ํ ์จ๋๋ ์ํ ์ํ์ ๋ค์ ๋ณด๋ผ ์ ์์ต๋๋ค. ์ฝ์ค ๊ณ์ธก์ ์์ง๋ ๋ค๋ฆ ๋๋ค. ๋ผ์ด๋๋ ๊ทธ ์ง์ ์ ํ ๋ฒ ํต๊ณผํ๊ณ , ์์คํ ์ ๋น, ๋์ฝ, ์ ๊ธฐ์ ๋ ธ์ด์ฆ, ๊ณ์ ๊ฐ๋ ค์ง ๋น, ๋คํธ์ํฌ ์ค๋ณต ํจํท์ ๋ฌด์ํ๋ฉด์ ๊ทธ ์ด๋ฒคํธ๋ฅผ ๋ณด์กดํด์ผ ํฉ๋๋ค.
JAGE์ ๊ณผ๊ฑฐ ๊ณ์ธก ๊ธฐ๋ก์ ์ด์ ๋ฌธ์ ๋ฅผ ๊ตฌ์ฒด์ ์ผ๋ก ๋ณด์ฌ ์ค๋๋ค. ์์ ์ ๋จ์ผ ๊ด์ ๊ฒ์ดํธ ๊ตฌ์ฑ์์๋ ์ถ๋ฐ๊ณผ ๊ณจ ์ ํธ๊ฐ ๊ฒน์น ์ ์์ด ์ด์์๊ฐ ์ง์ ๋น์ ๋ง์์ผ ํ์ต๋๋ค. MGTS๋ ์ฐ์ต์ฉ ๋จ์ผ ์ผ์ ๋ชจ๋๋ฅผ ์ง์ํ์ง๋ง, ํต์ฌ ํ๋์จ์ด ๊ณํ์ START์ STOP ๋ ธ๋๋ฅผ ๋ถ๋ฆฌํฉ๋๋ค. ๋คํธ์ํฌ๋ก ๋ณด๋ด๊ธฐ ์ ๋ถํฐ ๊ฐ ๋ฌผ๋ฆฌ์ ์ง์ ์ ์ญํ ์ ๋ถ๋ช ํ๊ฒ ๋ง๋๋ ๊ตฌ์ฑ์ ๋๋ค.
์ด ์ ์ฅ์์์ ๊ฐ์ฅ ํฅ๋ฏธ๋ก์ด ๊ฒ์ ์ฑ๋ฅ ์์น๊ฐ ์๋๋ผ ์ฝ๋๋ก ํ์ธํ ์ ์๋ ์ ์ด ํจํด์ ๋๋ค. ์์ง์์ ์ ๋ ฅ์ ๊ฑธ๋ฌ๋ด๊ณ , ๋ ๋งค์ฒด๋ก ์ ๋ฌํ๋ฉฐ, ํ๋์ ์ํ ๋จธ์ ์์ ๊ฐ๊น์ด ์ค๋ณต์ ํฉ์นฉ๋๋ค. ํน์ ํจํท ์์ค๋ฅ ์ด๋ ๊ณ์ธก ์ ํ๋๋ฅผ ๊ฐ์ ํ์ง ์๊ณ ๋ ์ด ํจํด์ ์ดํด๋ณผ ์ ์์ต๋๋ค.
ํ๋์ ํธ๋ฆฌ๊ฑฐ, ๋ ๊ฐ์ ์ ์ก ๊ฒฝ๋ก
START์ STOP ๋ ธ๋๋ ๊ฐ์ ํ์ดํ๋ผ์ธ์ ์ฌ์ฉํฉ๋๋ค. Omron E3Z-R66 ๋ฐ์ฌํ NPN ์ผ์๊ฐ PC817 ์ตํ ์ปคํ๋ฌ๋ฅผ ํตํด ์ผ์ ๋ณด๋๋ก ๋ค์ด์ต๋๋ค. 12 V ์ผ์ ์ธก๊ณผ ESP32-C6์ 3.3 V ๋ก์ง ์ธก์ ์ ์ฐํ๊ณ , ํ์จ์ด๋ GPIO21์์ active-low ์ ํธ๋ฅผ ์ฝ์ต๋๋ค.
๋น์ด ๋๊ธฐ๋ฉด ์
๋ ฅ์ ์ต์ 20 ms ๋์ LOW๋ฅผ ์ ์งํด์ผ ํฉ๋๋ค. ์ด ํ์ธ ๊ตฌ๊ฐ์ ํต๊ณผํ๋ฉด ๋
ธ๋๋ START ๋๋ STOP์ ๋ง๋ญ๋๋ค. ๊ฐ์ ํธ๋ฆฌ๊ฑฐ ์ฒ๋ฆฌ ๋ฃจํ ์์์ ๋ฉ์ธ ๋ณด๋์ ์ ํธ ๋ณด๋์ ESP-NOW ์ ๋์บ์คํธ๋ฅผ ์์๋๋ก ๋ ๋ฒ ํธ์ถํ๊ณ , ์ด์ด์ ๋์ผํ ํ ํฐ์ W5500 UDP ๋ธ๋ก๋์บ์คํธ 255.255.255.255:5005๋ก ๋ณด๋
๋๋ค.
์์ท ์ ๊ธ์ ๋น์ด ๊ณ์ ๊ฐ๋ ค์ง ์ํ์์ ํจํท์ด ๋ฐ๋ณต๋๋ ๊ฒ์ ๋ง์ต๋๋ค. ์ผ์ ์ธก์ 3์ด ๊ฐ๋๋ ๋๋ฌด ๋น ๋ฅธ ์ฌํธ๋ฆฌ๊ฑฐ๋ฅผ ์ ํํฉ๋๋ค. ๊ด๋ จ ํ์จ์ด์ ESP-NOW ์ฑ๋์ 1๋ก ๊ณ ์ ๋ผ ์๊ณ , Ethernet ๊ฒฝ๋ก๋ ํ๋์ ์ฌ์ค ์๋ธ๋ท์์ ๊ณ ์ ์ฃผ์๋ฅผ ์ฌ์ฉํฉ๋๋ค.
ํ์ฌ main ๋ธ๋์น์ ํ์จ์ด ์์์ ๋ช
๋ น ๊ฒฝ๋ก๋ก ๋ง๋ ์๋ณธ ๋ค์ด์ด๊ทธ๋จ์
๋๋ค.
๋ ๊ฒฝ๋ก๋ ๋ธ๋ฆฌ์ง๋ ์๋๊ณ ์๋ ์ ํ์ ๋ฐฑ์ ๋ ์๋๋๋ค. ์ผ์๋ ํ ๊ฒฝ๋ก๊ฐ ์คํจํ ๋๊น์ง ๊ธฐ๋ค๋ฆฌ์ง ์์ต๋๋ค. ๋ ๊ฒฝ๋ก ๋ชจ๋๋ก ์ ์ก์ ์๋ํ๊ณ , ์์ ๊ธฐ๊ฐ ๊ฐ ๋์ฐฉ์ ์๋ฏธ๋ฅผ ๊ฒฐ์ ํฉ๋๋ค.
โ๏ธ W5500์ด ์ค์ ๋ก ๋งก๋ ์ญํ
WIZnet W5500์ 10/100 Ethernet MAC๊ณผ PHY๊ฐ ํตํฉ๋ ํ๋์์ด์ด๋ TCP/IP ์ปจํธ๋กค๋ฌ์
๋๋ค. MGTS๋ ๋ฒ์ฉ W5500 ๋ชจ๋์ SPI๋ก ๊ฐ XIAO ESP32-C6์ ์ฐ๊ฒฐํ๊ณ Arduino Ethernet.h์ UDP ์์ผ์ ์ฌ์ฉํฉ๋๋ค. ๊ณ์ธก์ ์ธํฐ๋ท ์ฐ๊ฒฐ์ ํ์ํ์ง ์์ผ๋ฉฐ, ์ ์ ๋ฉ์์ง๋ ๋ก์ปฌ Ethernet ์ธ๊ทธ๋จผํธ ์์์ ์ด๋ํฉ๋๋ค.
์ผ์ ๋
ธ๋์ ์ ํํ SPI ๋งคํ์ CS GPIO1, reset GPIO2, SCK GPIO19, MISO GPIO20, MOSI GPIO18์
๋๋ค. ํ์ธํ ์์ค์์ ๋ฉ์ธ ๋์คํ๋ ์ด๋ 192.168.1.20, START๋ .21, STOP์ .22, ์ ํธ ๋ณด๋๋ .30์ ์ฌ์ฉํฉ๋๋ค. ๋ชจ๋ ์ ์ ๋
ธ๋๋ UDP ํฌํธ 5005๋ก ์ก์์ ํฉ๋๋ค.
W5500์ ์ ํํ ์ญํ : ์ผ์ ๋ช ๋ น๊ณผ ๊ฒฐ๊ณผ ํธ๋ํฝ์ ์ํ SPI ์ฐ๊ฒฐ ์ ์ ๊ฒฝ๋ก๋ฅผ ์ ๊ณตํฉ๋๋ค. ์ด๋ฒคํธ ์๋ฝ, ๊ฒฝ๊ณผ ์๊ฐ, ๋ชจ๋, ๋์คํ๋ ์ด ์ํ๋ ESP32-C6 ํ์จ์ด๊ฐ ๊ฒฐ์ ํฉ๋๋ค.
ํ์จ์ด, BOM, EasyEDA ์์ค์์ ๋์ถํ ์๋ณธ ๋ฐฐ์ ๋ฐ ์ฃผ์ ๋งต์
๋๋ค.
BOM์๋ ๋ฉ์ธ ๋์คํ๋ ์ด์ ๋ ์ผ์ ๋
ธ๋์ ์ฌ์ฉํ W5500 ๋ชจ๋ 3๊ฐ๊ฐ ํฌํจ๋ฉ๋๋ค. ์ดํ ์์ค๋ ์ ํธ ๋ณด๋๋ ์ ์ .30 ๋
ธ๋๋ก ์ ์ํฉ๋๋ค. ๋ฐ๋ผ์ ํ์ฌ ๊ตฌ์ฑ์ ์์ฑํ๋ ค๋ฉด ๊ณตํต Ethernet ์ธ๊ทธ๋จผํธ๊ฐ ํ์ํ๋ฉฐ, ๋ณดํต ์ด๊ธฐ ํต์ฌ BOM์ ์๋ ์ค์์น์ ์ผ์ด๋ธ๋ ์ค๋นํด์ผ ํฉ๋๋ค.
๋ฉ์ธ ๋ณด๋๋ ๋ ๋ณต์ฌ๋ณธ์ ์ด๋ป๊ฒ ํ ์ด๋ฒคํธ๋ก ๋ง๋๋?
๋ฉ์ธ ๋ณด๋๋ ๋ฌด์ ์ฝ๋ฐฑ์์ ESP-NOW ๋ฐ์ดํฐ๋ฅผ ๋ฐ๊ณ , ๋ฉ์ธ ๋ฃจํ์์ W5500 UDP๋ฅผ ํ์ธํฉ๋๋ค. ๋ ๊ฒฝ๋ก ๋ชจ๋ ๋์ผํ processCommand() ๋ก์ง์ผ๋ก ๋ค์ด๊ฐ๋๋ค. ์ด ๊ณตํต ํธ๋ค๋ฌ๊ฐ ์ค๊ณ์ ์ค์ฌ์
๋๋ค.
์ฒซ ๋ฒ์งธ ์ ํจํ START๊ฐ ๋์ฐฉํ๋ฉด ๋ณด๋๋ ๋์ ์๊ฐ์ ๊ธฐ๋กํ๊ณ ๋ฌ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค. ์ฝ๋๋ ๋ค๋ฅธ ๋คํธ์ํฌ ๊ฒฝ๋ก์์ ์๋๋ผ๋ ์ดํ 3์ด ์์ START๋ฅผ ๋ฌด์ํ๋๋ก ์์ฑ๋ผ ์์ต๋๋ค. STOP๋ ๊ฐ์ ๋ฐฉ์์ ๊ฐ๋๋ฅผ ์ฌ์ฉํฉ๋๋ค. ์ผ๋ฐ์ ์ธ ๋ค์ค ๋ฌ๋ ๋์์์๋ STOP์ด ๊ฐ์ฅ ์ค๋๋ ํ์ฑ ๋ฌ๋๋ฅผ ์๋ฃํ๋ฏ๋ก ์ต๋ 9๊ฐ ํญ๋ชฉ์ FIFO ๊ณ์ธก ํ๊ฐ ๋ง๋ค์ด์ง๋๋ค.
์ค๋ณต ๋ก์ง์ ํจํท ID๊ฐ ์๋๋ผ ๋ช ๋ น ์ข ๋ฅ์ ์๊ฐ์ ๊ธฐ๋ฐํฉ๋๋ค. ํจํท์๋ ์ผ์ ํ์์คํฌํ๋ ์ํ์ค ๋ฒํธ๊ฐ ์์ต๋๋ค. ๊ฒฝ๊ณผ ์๊ฐ์ ๊ด์ ๋ ธ๋๊ฐ ๋น์ ์ฒ์ ๋ณธ ์์ ์ด ์๋๋ผ ๋ฉ์ธ ๋ณด๋๊ฐ ์ด๋ฒคํธ๋ฅผ ์๋ฝํ ์์ ์์ ์์๋ฉ๋๋ค. ๊ตฌํ ํ๋ฆ์ ์ดํดํ๊ธฐ ์ฝ๊ณ , ๊ฒฝ๋ก๋ณ ์๊ฐ ๋ณด์ ์ ๋ณ๋์ ์์ง๋์ด๋ง ๊ณผ์ ๋ก ๋จ์ต๋๋ค.
STOP์ด ๊ฒฐ๊ณผ๋ฅผ ๋ง๋ค๋ฉด ํ์จ์ด๋ ์ด๋ฅผ 1์ด ๋์ ๋ณด๋ฅํ ๋ค UDP๋ก JSON์ ๋ธ๋ก๋์บ์คํธํ๊ณ ESP-NOW ํ๋ธ ํผ์ด์๋ ๋ณด๋ ๋๋ค. ์ด ์ง์ฐ์ ์ด๋ฏธ ๊ธฐ๋ก๋ ๊ฒฝ๊ณผ ์๊ฐ์ด ์๋๋ผ ๊ฒฐ๊ณผ ๋ณด๊ณ ์์ ์ ์ ์ฉ๋ฉ๋๋ค.
์์ค ๋ก์ง ์์๋ฅผ ๋ณด์ฌ ์ฃผ๋ ์๋ณธ ๋ค์ด์ด๊ทธ๋จ์ด๋ฉฐ, ๊ฐ๊ฒฉ์ ๋คํธ์ํฌ ์ง์ฐ ์๊ฐ ์ฒ๋๊ฐ ์๋๋๋ค.
๊ณ์ธต๋ณ ์ด๋ฒคํธ ์ ์ด: 20 ms ํํฐ๋ ์งง์ ์ ๋ ฅ ๋ณํ๋ฅผ, ์์ท ์ํ๋ ๊ณ์ ๊ฐ๋ ค์ง ๋น์, ์ค์์ 3์ด ๊ฐ๋๋ ์ด๋ ์ ์ก ๊ฒฝ๋ก์์ ์ค๋ ๊ฐ๊น์ด START ๋๋ STOP ๋ณต์ฌ๋ณธ์ ์ต์ ํ๋๋ก ์ค๊ณ๋์ต๋๋ค.
ํ์ธํ ์ฝ๋์๋ ์ ํ๋ฆฌ์ผ์ด์ ์์ค์ ACK, ์ฌ์ ์ก, ๊ฒฝ๋ก ์กฐ์ ๋ก์ง์ด ์์ต๋๋ค. ESP-NOW ์ฝ๋ฐฑ๊ณผ Ethernet ๋ฃจํ๋ ํ๋ ์๊ณ ๊ตฌ์ญ ์์ด ๊ณ์ธก ์ํ๋ฅผ ๊ณต์ ํ๋ฏ๋ก ๋์ ๋์ฐฉ ๋์๋ ์ค์ ํ๊น ํ๋์จ์ด์์ ํ์ธํด์ผ ํฉ๋๋ค. ๋ฐ๋ผ์ MGTS๋ ๋ช ํํ ์ด์ค ๊ฒฝ๋ก ์ด๋ฒคํธ ์ ์ก ๋ ํผ๋ฐ์ค๋ก ์ฝ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ํ์ค ID, ACK, ๋ณด์, ๋ณด์ , ํ์ฅ ์ธก์ ์ ์ดํ ํ์ฅํ ์ ์์ต๋๋ค.
๊ณ์ธก ๋ชจ๋, ์ ํธ๋ฑ, ์ด์์ ์ํฌํ๋ก
ํ์ฅํ ๋ฉ์ธ ํ์จ์ด๋ ์ธ ๊ฐ์ง ๋ชจ๋๋ฅผ ์ ๊ณตํฉ๋๋ค. MULT๋ START๋ก ์ ๋ฌ๋๋ฅผ ์์ํ๊ณ STOP์ผ๋ก ๊ฐ์ฅ ์ค๋๋ ๋ฌ๋๋ฅผ ์๋ฃํฉ๋๋ค. SOLO๋ ํ๋์ START ์
๋ ฅ์ ์ถ๋ฐ๊ณผ ์ข
๋ฃ์ ํจ๊ป ์ฌ์ฉํด ์ฒซ ์ด๋ฒคํธ๋ก ์์ํ๊ณ ๋ค์ ์ด๋ฒคํธ๋ก ์๋ฃํฉ๋๋ค. SYNC๋ SEQ_START๋ฅผ ๋ฐ์ ๋ค 5์ด ํ์ ๋ก์ปฌ ์์ ์ ์๊ฐ ์์ ์ผ๋ก ์์ฝํฉ๋๋ค.
์ ํธ ๋ณด๋ ํ์จ์ด๋ ์ด ๋ช
๋ น์ ์ด์์๊ฐ ๋ณผ ์ ์๋ ์นด์ดํธ๋ค์ด์ผ๋ก ๋ฐ๊ฟ๋๋ค. 2์ด์ ์ฒซ ๋ฒ์งธ ์ ์, 3์ด์ ๋ ๋ฒ์งธ ์ ์, 4์ด์ ํฉ์, 5์ด์ ๋
น์์ด ์ผ์ง๋๋ค. ๋
น์ ์ ์ START๊ฐ ๋ค์ด์ค๋ฉด FLYING, ๋
น์ ์ดํ์๋ REACTION์ ๋ง๋ญ๋๋ค. ์ ํธ ๋ณด๋์ ๋ฉ์ธ ๋ณด๋๋ ๋ช
๋ น์ ๋ฐ์ ๋ค ๊ฐ์์ millis()๋ก ์์ฝํ๋ฏ๋ก ๊ณต์ ์๊ณ ๋๊ธฐํ ํ๋กํ ์ฝ์ด ์๋๋ผ ์กฐ์ ๋ ๋์์
๋๋ค.
๋ฉ์ธ ๋ณด๋ ๋ฒํผ์ ์งง๊ฒ ๋๋ฅด๋ฉด ํ์ฑ ๋ฌ๋๋ฅผ ํ๋ก์ ํธ์ 999.999 DNF ์ผํฐ๋๋ก ๊ฐ์ ํ ์ ์๊ณ , ๊ธธ๊ฒ ๋๋ฅด๋ฉด ๋ชจ๋๋ฅผ ์ํํฉ๋๋ค. ์ด ๊ฐ์ MGTS ์ด์ ๊ท์น์ด๋ฉฐ ๋ชจํ ์ง์นด๋ ์ ์ฒด์ ๊ณตํต DNF ์ฝ๋๊ฐ ์๋๋๋ค.
์ ์ฅ์์ Python/Flet ์ ํ๋ฆฌ์ผ์ด์
์ ์ด์์ ๊ณ์ธต์ ๋ํฉ๋๋ค. ๋ฌ๋ CSV ๊ฐ์ ธ์ค๊ธฐ, NFC ์ํธ๋ฆฌ ์ฝ๊ธฐ, ํ๋ธ ์๋ฆฌ์ผ๊ณผ UDP๋ฅผ ํตํ ENTRY ์ ์ก, ๋ ๊ฒฝ๋ก์ RESULT ์์ , ํ์ฑ ๋ฌ๋ ๊ด๋ฆฌ, ๊ฒฐ๊ณผ ๋ด๋ณด๋ด๊ธฐ๋ฅผ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค. ์์ฑ ๋ฒ์ ์ TTS, ์์, ๋น์จ, ์๋ ๊ฒฐ๊ณผ ํธ์ง์ ์ถ๊ฐํฉ๋๋ค. ๊ณ์ธก์ ์๋ฒ ๋๋ ๋ฉ์ธ ๋ณด๋๊ฐ ๋ด๋นํ๊ณ ๋ฐ์คํฌํฑ ์ํํธ์จ์ด๋ ์ ์, ํ์, ๊ฒฝ๊ธฐ ์ด์์ ๋งก์ต๋๋ค.
์ ์์๊ฐ ์ป๋ ์๋ฃ์ ์ง์ ์ค์ ํ ๋ถ๋ถ
์ด ์ ์ฅ์์๋ ์๋นํ ๋ถ๋์ ํ๋์จ์ด์ ์ํํธ์จ์ด ์๋ฃ๊ฐ ๊ณต๊ฐ๋ผ ์์ต๋๋ค. START, STOP, ๋ฉ์ธ ๋์คํ๋ ์ด, ์ ํธ ๋ณด๋, ์ ์ด ํ๋ธ, NFC ํ์จ์ด์ BOM, EasyEDA ํ๋ก๋/PCB JSON 4๊ฐ, ๋ถํ ํ LED ์ผ์ด์ค STL 4๊ฐ, Flet ์ ํ๋ฆฌ์ผ์ด์ ์ด ํฌํจ๋ฉ๋๋ค. ๋จ์ผ ๋คํธ์ํฌ ์์ ๋ฅผ ํจ์ฌ ๋์ด์ ์ค๊ณ์ ๋๋ค.
๋์์ ํ์ฌ ๋ธ๋์น๋ ๋ช ๋ น ํ ๋ฒ์ผ๋ก ๋น๋๋๋ ์์ ํ๋ณด๋ค ํ๋ฐํ ๋ฐ์ ์ค์ธ ํ๋กํ ํ์ ์ ๊ฐ๊น์ต๋๋ค. ์ค์ bring-up์๋ ๋ค์ ์ ๋ฆฌ๊ฐ ํ์ํฉ๋๋ค.
sensor_start.ino์sensor_stop.ino๋ ๊ฐ๊ฐ ์ ์ญ ๋ณ์,setup(),loop()๋ฅผ ์ ์ํ๋ฏ๋ก ๋ณ๋ Arduino ์ค์ผ์น ํด๋๋ก ๋๋๋๋ค.- ๊ฐ์ ์ด์ ๋ก
main_board.ino์main_board_full.ino์ค ํ๋๋ฅผ ์ ํํด ๋ถ๋ฆฌํฉ๋๋ค. 0xXX,0xYY๊ฐ์ ํผ์ด ์ฃผ์ ์๋ฆฌํ์์๋ฅผ ๋ฐ๊พธ๊ณ , ํ๊ธฐ์ ์ถ๊ฐ๋ ๋ ธ๋์ ์ค์ ํ๋ธ MAC ์์๋ ์๋ก ๋ง์ถฅ๋๋ค.- ๋ฒ์ ์ด ๊ณ ์ ๋ ๋น๋ ๋งค๋ํ์คํธ๊ฐ ์์ผ๋ฏ๋ก ESP32 Arduino, ArduinoJson, Ethernet, LED, audio, NFC, Flet ์์กด์ฑ์ ํธํ๋๋ ์กฐํฉ์ผ๋ก ๊ณ ์ ํฉ๋๋ค.
- ESP-NOW์ W5500์ ๊ฐ๊ฐ ๋จผ์ ํ์ธํ ๋ค์ ๋์ ํจ๊ป ์ผ์ ํ ๋ฒ์ ๋ฌผ๋ฆฌ์ ๋น ์ฐจ๋จ์ด ํ๋์ ์ํ ์ ์ด๋ง ๋ง๋๋์ง ํ์ธํฉ๋๋ค.
- ํฌํจ๋ NDEF ํ๊ทธ writer์ ๊ณ ์ raw byte๋ฅผ ์ฝ๋ ์๋ฒ ๋๋ reader๋ฅผ ๊ฒฐํฉํ๊ธฐ ์ ์ ํ๊ทธ ํ์์ ์ ์ํฉ๋๋ค.
์ ์ฅ์์๋ LICENSE๊ฐ ์ ์ธ๋ผ ์์ง ์์ต๋๋ค. ํ์ ์ค๊ณ๋ฅผ ๊ณต๊ฐํ๊ฑฐ๋ ์ฌ๋ฐฐํฌํ๊ธฐ ์ ์ ์ ์์์ ์ฌ์ฌ์ฉ ๊ถํ์ ํ์ธํด์ผ ํฉ๋๋ค.
์ต์ ๋ฆด๋ฆฌ์ค๋ ๋ค๋ฅธ ์ธ๋์ ์์คํ
MGTS๋ ์ต์ ํจํค์ง ๋ฆด๋ฆฌ์ค ์ดํ ์ํคํ
์ฒ๋ฅผ ๋ฐ๊ฟจ์ต๋๋ค. 2025๋
12์์ v1.0 ZIP์ Windows ์ ํ๋ฆฌ์ผ์ด์
, NFC, UDP, Google Drive ์ ํธ๋ฆฌํฐ๊ฐ ํฌํจ๋ ์ด์ Wi-Fi 6 ๋
ธํธ๋ถ hotspot ์์คํ
์ ์ค๋ช
ํฉ๋๋ค. 2026๋
6์ 15์ผ README์ ํ๋์จ์ด ๋ฐฉํฅ์ด ESP-NOW์ W5500 ์กฐํฉ์ผ๋ก ๋ค์ ์์ฑ๋๊ณ , 7์๊น์ง ์ ํธ, ํ๋ธ, NFC, ์ฑ, ํ๋์จ์ด ์์
์ด ์ด์ด์ก์ต๋๋ค.
์ดํ W5500 ์ธ๋์ ํด๋นํ๋ ํ๊ทธ ๋ฆด๋ฆฌ์ค๋ ์์ต๋๋ค. ํ์ฌ main์ v1.0๋ณด๋ค 79๊ฐ ์ปค๋ฐ ์์ ์์ผ๋ฉฐ, ๋ฆด๋ฆฌ์ค ์ํฌํ๋ก๋ ์ฌ์ ํ ์ด์ ๋ ์ด์์์ ํ์ผ์ ์ฐธ์กฐํฉ๋๋ค. ๋ณ๋ Android/Flet companion ์ ์ฅ์๋ ๊ณผ๊ฑฐ hotspot๊ณผ heartbeat ํ๋กํ ์ฝ์ ์ฌ์ฉํ๋ฏ๋ก ํ์ฌ ์ด์ค ๊ฒฝ๋ก ํ์จ์ด์ ํจํค์ง ์ธํฐํ์ด์ค๋ณด๋ค ์ด์ ์ธ๋์ companion ๊ฐ๋ฐ ํธ๋์ผ๋ก ๋ณด๋ ๊ฒ์ด ์ ํํฉ๋๋ค.
ํ๊ทธ, ๋ฆด๋ฆฌ์ค, ์ปค๋ฐ ์ด๋ ฅ, ์์นด์ด๋ธ ๊ฒ์ฌ๋ก ๋ง๋ ์๋ณธ ๋ผ์ดํ์ฌ์ดํด ๋ค์ด์ด๊ทธ๋จ์
๋๋ค.
๋ฒ์ ์ฒดํฌํฌ์ธํธ: ์ฌ๊ธฐ์ ์ค๋ช
ํ W5500๊ณผ ESP-NOW ๊ตฌํ์ ํ์ฌ main ๋ธ๋์น์์ ์ดํด๋ด์ผ ํฉ๋๋ค. v1.0์ ์ด์ ํจํค์งํ Wi-Fi ์์คํ
์ ํ์ธํ ๋ ์ฌ์ฉํฉ๋๋ค.
๊ด๋ จ WIZnet Maker ์ฝ์๊ฑฐ๋ฆฌ
ESP-NOW Differential Probe๋ ํ ํด๋ก์ง๋ฅผ ๋น๊ตํ๊ธฐ ์ข์ ํ๋ก์ ํธ์ ๋๋ค. ์๊ฒฉ ESP-NOW ๊ณ์ธก๊ฐ์ ESP32/W5500 gateway์์ ๋ชจ์ผ๋ ๊ตฌ์กฐ์ธ ๋ฐ๋ฉด, MGTS๋ ๊ฐ ๊ฒ์ดํธ์์ ๊ฐ์ ์ด๋ฒคํธ๋ฅผ ๋ง๋ค์ด ๋ ๋งค์ฒด๋ก ์ ์กํฉ๋๋ค.
ArtNet to ESP-NOW DMX512๋ ESP32, W5500, ESP-NOW, UDP๋ผ๋ ๋น์ทํ ๊ตฌ์ฑ ์์๋ฅผ ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก ์ฌ์ฉํฉ๋๋ค. Ethernet ํธ๋ํฝ์ด ๋ธ๋ฆฌ์ง๋ก ๋ค์ด์ค๊ณ ESP-NOW๋ก fan-out๋ฉ๋๋ค.
๋ชจํฐ์คํฌ์ธ ๋ฐ์ดํฐ ๊ด์ ์์๋ PER, Purdue Electric Racing์ด W5500 UDP ๋ธ๋ก๋์บ์คํธ๋ก ์ฐ์์ ์ธ Formula SAE ํ ๋ ๋ฉํธ๋ฆฌ๋ฅผ ๋ณด๋ ๋๋ค. MGTS๋ ์ฝ์ค ๊ณ์ธก ์ํ๋ฅผ ๋ฐ๊พธ๋ ์๊ณ ๋ถ์ฐ์์ ์ธ ๊ด์ ์ด๋ฒคํธ๋ฅผ ์ ์กํ๋ค๋ ์ฐจ์ด๊ฐ ์์ต๋๋ค.
์ถ์ฒ ๊ธฐ๋ฐ ์์ฝ
MGTS๋ ๋ฌผ๋ฆฌ์ ์ธ ์ฝ์ค ์์ง๋ฅผ ์๋ฒ ๋๋ ๊ฒฐ๊ณผ๋ก ์ด์ด์ง๋ ์์๋ก ์ฐ๊ฒฐํฉ๋๋ค. E3Z-R66 ๋น ์ฐจ๋จ, PC817 ์ ์ฐ, 20 ms ํ์ธ, ESP-NOW ์ ๋์บ์คํธ์ W5500 UDP ๋ธ๋ก๋์บ์คํธ, ๊ณตํต ๋ช ๋ น ๊ฐ๋, ESP32-C6 ๊ณ์ธก ์ํ, LED ๊ฒฐ๊ณผ, Flet ์ด์ ์ํฌํ๋ก๊ฐ ํ๋์ ํ๋ฆ์ ๋ง๋ญ๋๋ค.
๊ฐ์ฅ ์ฌ์ฌ์ฉํ ๋งํ ๊ตํ์ ๊ฐ๋ณ ํ๋กํ ์ฝ๋ณด๋ค ํฝ๋๋ค. ๋ ๋ฒ์งธ ์ ์ก ๊ฒฝ๋ก๋ ์ ํ๋ฆฌ์ผ์ด์ ์ด ๋ฌด์์ ๊ฐ์ ์ด๋ฒคํธ๋ก ๋ณผ์ง ์ ์ํ ๋ ๋น๋ก์ ์ ์ฉํด์ง๋๋ค. MGTS๋ ๊ทธ ๊ฒฐ์ ์ ์ฝ๋, ํ๋์จ์ด ํ์ผ, ๊ณ์ธก ๋ชจ๋, ํ๋ก์ ํธ์ ๋ฐ์ ๊ณผ์ ์์์ ๋ณด์ฌ ์ค๋๋ค.
โ FAQ
Q. MGTS๋ W5500์ ์ด๋์ ์ฌ์ฉํ๋์? ๊ฐ ์ ์ ๋ ธ๋์ ๋ก์ปฌ Ethernet ์ธํฐํ์ด์ค๋ก ์ฌ์ฉํฉ๋๋ค. START์ STOP ์ผ์๋ UDP ํฌํธ 5005๋ก ์ด๋ฒคํธ๋ฅผ ๋ธ๋ก๋์บ์คํธํ๊ณ , ๋ฉ์ธ ๋ณด๋๋ UDP๋ก ๊ฒฐ๊ณผ JSON์ ๋ณด๋ ๋๋ค.
Q. ESP-NOW์ W5500์ ์๋ failover๋ก ๊ตฌ์ฑ๋๋์? ์๋๋๋ค. ์กฐ๊ฑด์ ํต๊ณผํ ์ผ์ ์ด๋ฒคํธ๋ ๊ฐ์ ํธ๋ฆฌ๊ฑฐ ์ฒ๋ฆฌ์์ ๋ ๊ฒฝ๋ก ๋ชจ๋๋ก ์ ์ก์ ์๋ํฉ๋๋ค. ๊ฐ๊น์ด ๋์ผ ๋ช ๋ น์ ํ๋์ ํธ๋ค๋ฌ๋ก ๋ค์ด๊ฐ๋ฉฐ 3์ด ๋์ ๊ฐ๋๋ ๋ ๋ฒ์งธ ์ ์ด๋ฅผ ์ต์ ํ๋๋ก ์์ฑ๋ผ ์์ต๋๋ค.
Q. ๊ฒฝ๊ณผ ์๊ฐ์ ์ด๋์์ ๊ธฐ๋กํ๋์? ์ด ๊ตฌํ์์๋ ๋ฉ์ธ ๋ณด๋๊ฐ START ๋๋ STOP์ ์๋ฝํ ๋ millis()๋ฅผ ๊ธฐ๋กํฉ๋๋ค. ์ผ์ ํจํท์๋ ์๋ณธ ํ์์คํฌํ๋ ์ํ์ค ๋ฒํธ๊ฐ ์์ต๋๋ค.
Q. ํ์ฌ ์ ์ฅ์๋ฅผ cloneํ ๊ทธ๋๋ก ์ปดํ์ผํ ์ ์๋์? ์ค๋น ์์ ์ด ํ์ํฉ๋๋ค. ์๋ก ์ถฉ๋ํ๋ Arduino ์ค์ผ์น ๋ณํ์ ๋ถ๋ฆฌํ๊ณ , MAC ์๋ฆฌํ์์๋ฅผ ๋ฐ๊พธ๋ฉฐ, ํผ์ด ์์๋ฅผ ๋ง์ถ๊ณ , ํธํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.
Q. W5500 ์ํคํ
์ฒ๋ ์ด๋ค ๋ค์ด๋ก๋์ ๋ค์ด ์๋์? W5500๊ณผ ESP-NOW ์์ค๋ ํ์ฌ main ๋ธ๋์น์ ์์ต๋๋ค. ์ต์ ํ๊ทธ v1.0 ๋ฆด๋ฆฌ์ค์๋ ์ด์ Wi-Fi hotspot ์ธ๋๊ฐ ๋ค์ด ์์ต๋๋ค.
Documents
-
Moto Gymkhana Timing System source
Current hardware, firmware, enclosure, BOM, and desktop-app sources
-
Main display firmware
Pinned main timing, mode, ESP-NOW, W5500 UDP, and result path
-
START sensor firmware
Pinned photoelectric input, guards, ESP-NOW peer sends, and UDP broadcast
-
Signal board firmware
Pinned countdown, FLYING/REACTION, ESP-NOW, and W5500 UDP source
-
MGTS v1.0 release
Earlier packaged Wi-Fi generation, preceding the current W5500 redesign
-
WIZnet W5500 documentation
Official W5500 product documentation
-
ESP-NOW API reference
Official ESP32-C6 ESP-NOW API reference