3D 출력 전 가상 모델링 기반 사전 검증Pre-Print Verification Using Virtual Modeling

1편에서는 8비트 ATmega328P 마이크로컨트롤러 위에서 50Hz 신경망 추론 엔진을 2,412바이트 플래시 메모리에 경량화해 적재한 과정을 다루었다. 하지만 제어 알고리즘이 아무리 가벼워도, 착용자의 신체 치수와 맞지 않는 기구부는 제 기능을 발휘하기 어렵다.

Part 1 covered fitting a 50Hz neural network inference engine into 2,412 bytes of Flash on an 8-bit ATmega328P. However, no matter how lightweight the control loop is, the mechanical frame cannot function if its geometry conflicts with the wearer's limb dimensions.

실제 출력과 가공에 들어가기 전에 관절 가동 범위나 인체 간섭 여부를 먼저 확인해야 했다. 불필요한 시행착오를 줄이기 위해 Unity 6000의 ArticulationBody 기반으로 6분절 인체 모델과 보조기 조립체를 1:1 기하학적으로 일치시킨 가상 검증 환경을 먼저 구축했다.

Before 3D printing parts or cutting carbon tubes, I needed to verify joint range of motion and check for anatomical interference. To minimize physical rework, I built a 1:1 geometric verification environment in Unity 6000 using a 6-segment ArticulationBody human model paired with the orthosis assembly.

Unity 시뮬레이션 화면. 골반부터 발끝까지 구성된 ArticulationBody 관절 체인
초기 Unity ArticulationBody 6분절 역동역학 시뮬레이션 환경 (기초 수치 검증용 초기 모델로, 현재 진행 중인 기구 어셈블리와는 구조적 형태 차이가 있다).Early 6-segment Unity ArticulationBody inverse dynamics simulation environment (an early baseline model for numerical checks; the current mechanical assembly differs in structure).
초기 3D CAD 모터 기어박스 4방향 렌더링
초기 3D CAD 모터 기어박스 4방향 렌더링. 초기 모델링 단계에서 구상했던 구동 모듈 박스와 조인트 체결 형상(프로토타입 초기 모델).Four-view rendering of the early 3D CAD motor gearbox housing and joint coupling geometry (early prototype model).

골반(Pelvis), 상체(HAT), 대퇴(Thigh), 하퇴(Shank), 발(Foot) 체인을 구성하고, ScriptableObject(LegAssistConfig)에서 인체 치수와 기구 오프셋을 조정하면 씬 전체가 파라메트릭하게 재배치되도록 했다. 시뮬레이션 수치의 신뢰도를 확인하기 위해 Newton-Euler 역동역학 수식 손계산값과 비교 대조했다.

I modeled the Pelvis, HAT (head-arms-trunk), Thigh, Shank, and Foot chain so that adjusting anthropometric dimensions and frame offsets in a ScriptableObject (LegAssistConfig) parametrically updates the entire scene. To verify the physics solver's accuracy, I cross-checked its joint torque outputs against analytical Newton-Euler inverse dynamics equations.

좌우로 밀어서 표 전체 내용을 확인하세요
검증 항목해석 및 시뮬레이션 결과검증 기준 및 문헌치
역동역학 해석해 대조20.434 N·mNewton-Euler 수식 손계산과 소수점 4자리 일치
전신 무게중심(COM) 높이1.007 m (신장 1.75m 기준 57.5%)생체역학 문헌 표준값(55 ~ 57%) 범위 부합
한발 지지기 무릎 모멘트0.54 N·m/kg정상 보행 임상 기준치(0.4 ~ 0.5 N·m/kg)에 수렴
EditMode 자동 단위 테스트30항목 통과안전층 소프트리밋, 슬루레이트, 역동역학 검산
Swipe horizontally to view the full table
Verification MetricSimulation / Analytical ResultReference Standard / Literature
Inverse Dynamics Cross-Check20.434 N·mMatches hand-calculated Newton-Euler equations to 4 decimal places
Whole-Body Center of Mass (COM) Height1.007 m (57.5% of 1.75 m stature)Within standard biomechanics literature range (55–57%)
Single-Support Knee Moment0.54 N·m/kgConsistent with clinical normal gait benchmarks (0.4–0.5 N·m/kg)
EditMode Automated Unit Tests30 / 30 PassedL0 soft limits, slew-rate limiter, and inverse dynamics checks

가상 조립 환경에서의 간섭 확인 — 허벅지 외측 오프셋 수정Catching a 23 mm Thigh Interference in Virtual Assembly

시뮬레이션 환경에서 기구 배치를 확인하던 중 기하학적 간섭 문제를 발견했다. 초기 스케치에서는 프레임 오프셋을 다리 중심축 기준 60mm로 설정해 두었다.

While inspecting the frame layout in the simulation scene, I caught a geometric interference issue. In my initial sketch, the lateral frame offset was set to 60 mm from the leg's centerline.

그러나 표준 성인 남성의 대퇴 둘레(520mm)를 원형 단면으로 계산하면 대퇴 반지름이 약 82.8mm에 이른다. 60mm 위치에 수직 파이프를 배치할 경우 허벅지 단면 안쪽으로 약 22.8mm 침범하는 기하학적 간섭이 발생하는 계산이었다.

However, modeling a standard adult male thigh circumference (520 mm) as a circular cross-section gives a radius of roughly 82.8 mm. Placing the vertical link rod at 60 mm meant the rod would cut 22.8 mm inside the lateral surface of the thigh.

사전 시뮬레이션을 통한 가공 오차 방지부품을 출력하거나 카본관을 절단하기 전에 가상 환경에서 간섭을 확인한 덕분에, 대퇴 외측 커프의 이격 거리를 92mm로 재조정하고 3D 힌지 피벗을 바깥으로 재배치하여 불필요한 재가공 없이 설계를 수정할 수 있었다.
Preventing Fabrication Waste via Pre-SimulationCatching this interference in the virtual assembly before printing parts or cutting carbon tubes let me widen the lateral thigh cuff offset to 92 mm and shift the 3D hinge pivot outward with zero wasted material.
초기 3D 프린터 출력물 부품
초기 3D 프린터 출력물. 관절 스플라인 조인트 블록과 초기 곡면 밴드 부품 가공 테스트.Early 3D-printed test parts: spline joint block and curved cuff band fit test.

배선 안정화를 위한 Nano/ESP32 듀얼 소켓 KiCad PCB 설계Designing a Dual-Socket Nano/ESP32 KiCad PCB for Reliable Wiring

브레드보드 배선은 실험실 환경에서는 유효하지만, 실제 착용 시 진동과 움직임으로 인한 접촉 불량 위험이 크다. 안정적인 신호 전달과 착용 편의를 위해 맞춤형 2레이어 KiCad PCB 메인보드(leg_Project_1)를 설계했다.

Breadboard jumper wires work on a workbench, but vibration and limb movement during wear quickly cause intermittent disconnects. For reliable signal integrity, I designed a custom 2-layer mainboard PCB (leg_Project_1) in KiCad.

아두이노 나노와 L298N 모터 드라이버 모듈을 연결한 하드웨어 벤치 테스트
작업대에서 아두이노 나노와 L298N 모터 드라이버, 가변저항 및 기어드 모터를 결선해 진행한 모터 구동 벤치 테스트.Workbench actuation test wiring the Arduino Nano, L298N motor driver, potentiometer, and compact low-wattage geared motor.

여기서 핵심 전략은 '핀 호환 듀얼 소켓' 설계였다. 1차 프로토타입은 저전력 기본 동작 검증을 위해 Arduino Nano(ATmega328P)를 장착하지만, 향후 보호자 모니터링 앱과의 BLE 무선 데이터 통신이 필요할 때 보드를 새로 제작하지 않고 ESP32-C3/S3를 그대로 교체 장착할 수 있도록 핀아웃 매핑 회로를 단일 기판에 통합했다.

The core layout feature is a pin-compatible dual MCU socket. The initial prototype uses an Arduino Nano (ATmega328P) for baseline low-power control verification, while the board routes a secondary header footprint so an ESP32-C3/S3 can be dropped in later for BLE telemetry without spinning a new PCB.

좌우로 밀어서 표 전체 내용을 확인하세요
회로 블록채택 부품 및 사양설계 목적 및 안전 대책
MCU 소켓Arduino Nano / ESP32 핀 호환 헤더8비트 기본 제어 및 BLE 무선 확장 듀얼 지원
모터 드라이버L298N 듀얼 풀 브릿지 모듈 인터페이스12V 구동, 하드웨어 퓨즈 및 150ms 과전류 차단
각도 센서계AS5600 12비트 I2C 자기식 절대 엔코더무릎 회전축에 장착, 전원 인가 즉시 절대 각도 취득
지면 감지계발꿈치 접지 스위치 / FSR 센서 풀다운 회로발바닥 착지 순간 하드웨어 인터럽트로 입각기 진입 감지
Swipe horizontally to view the full table
Circuit BlockSelected Component & SpecDesign Purpose & Safety Measure
MCU SocketPin-compatible headers for Arduino Nano / ESP32Supports both 8-bit baseline control and future BLE expansion
Motor DriverL298N dual full-bridge module interface12V drive with hardware fuse and 150 ms stall overcurrent cutoff
Angle SensingAS5600 12-bit I2C contactless magnetic absolute encoderMounted on the knee hinge axis; reads absolute angle immediately at power-on
Ground Contact SensingHeel contact switch / FSR pull-down circuitDetects heel strike via hardware interrupt to trigger stance phase entry

원점 복귀 동작 최소화를 위한 AS5600 절대 엔코더 적용Eliminating Homing Routines with an AS5600 Absolute Encoder

초기에는 모터 축의 인크리멘탈(상대) 엔코더를 검토했으나, 전원을 인가할 때마다 원점(Homing) 확인을 위해 관절을 특정 각도까지 움직여야 하는 한계가 있었다. 보행 보조기 특성상 착용 상태에서 무리한 원점 동작을 수행하는 것은 적절하지 않았다.

I initially considered using the motor's built-in incremental quadrature encoder, but incremental encoders require a physical homing sweep on every power-up to establish a zero reference. Forcing a wearer's knee joint to sweep to a mechanical stop at boot is unsafe for a lower-limb orthosis.

이를 개선하기 위해 AS5600 12비트 I2C 자기식 비접촉 절대 엔코더를 무릎 관절 힌지 중심에 직결했다. 네오디뮴 자석의 자계 방향을 비접촉으로 읽어내므로 마모가 적고, 전원 인가 즉시 현재 관절 각도를 측정할 수 있어 별도의 원점 복귀 루틴을 생략할 수 있었다.

To eliminate homing movements, I mounted an AS5600 12-bit I2C contactless magnetic absolute encoder directly at the center of the knee hinge pin. Reading the orientation of a diametrically magnetized neodymium magnet without physical contact avoids mechanical wear and provides an immediate absolute knee angle reading the instant power is applied.

주요 하드웨어 자재 구성표 (BOM)Hardware Bill of Materials (BOM)

시중에서 쉽게 구할 수 있는 범용 규격품들과 3D 프린팅 파츠를 바탕으로 기구 및 전장 하드웨어 자재 명세서(BOM)를 정리했다.

I organized the mechanical and electrical bill of materials around off-the-shelf standard components and 3D-printed structural parts:

좌우로 밀어서 표 전체 내용을 확인하세요
파트 번호품목 및 규격수량선정 사유 및 역할
01Arduino Nano (ATmega328P 호환 보드)1개Flash 7.4% 경량 TinyML 회귀 펌웨어 검증 완료
02JGB37-520 DC 엔코더 기어드 모터 (169:1)1개스윙 보조용 소형 저와트 메탈 기어박스 (무게 150g)
03L298N 듀얼 H-Bridge 모터 드라이버 모듈1개내구성 검증된 범용 모듈, 피크 2A 지원
04AS5600 12비트 자기식 절대 엔코더 + 자석1세트원점 복귀 불필요, 0.088도 고분해능 I2C 각도 센싱
05WH148 B10kΩ 단회전 포텐셔미터 (건측용)1개건측 다리 각도 측정용 아날로그 센서
06발꿈치 접지 스위치 및 풀다운 배선1세트지면 착지 시 기계식 락 발동을 위한 접지 신호 감지
07Ø6mm 카본/알루미늄 튜브 및 3D 관절 파츠1식3D 프린팅 출력물 + 6×4mm 링크 프레임
08네오프렌 피부 패딩 및 원터치 래칫 버클2세트착용자 피부 마찰 완화 및 버클 체결 구조
0912V 배터리 케이스, 스위치, 안전 퓨즈1식18650 3S 보호회로 및 하드웨어 전원 차단기
구분SynchroLeg 단측(Single Leg) 하드웨어 구성 부품전체 1식특수 가공품 배제, 오픈소스/규격화 파츠 기반
Swipe horizontally to view the full table
Part No.Component & SpecificationQtySelection Rationale & Role
01Arduino Nano (ATmega328P-compatible board)1Verified 7.4% Flash footprint with quantized TinyML inference firmware
02JGB37-520 compact low-wattage geared motor with encoder (169:1)1High-reduction metal gearbox for unloaded swing assistance (150 g)
03L298N Dual H-Bridge motor driver module1Readily available dual-channel driver supporting up to 2A peak
04AS5600 12-bit magnetic absolute encoder + magnet1 setZero homing required; 0.088° resolution I2C angle sensing
05WH148 B10kΩ single-turn potentiometer (unaffected side)1Analog angle sensor for tracking the unaffected leg
06Heel contact switch and pull-down harness1 setDetects heel strike to trigger mechanical stance lock
07Ø6 mm carbon/aluminum tubes & 3D-printed joint parts1 set3D-printed structural blocks + 6×4 mm link frame
08Neoprene skin padding & quick-release ratchet buckles2 setsReduces skin friction and secures thigh/shank cuffs
0912V battery holder, power switch, and inline safety fuse1 set3S 18650 protection circuit and hardware emergency cutoff
SummarySynchroLeg Single-Leg Hardware Assembly1 systemBuilt entirely from standard off-the-shelf and 3D-printable parts

2편 정리 및 모터 출력 검토 과제Part 2 Summary and the Motor Torque Problem

가상 시뮬레이션으로 기하 간섭을 수정했고, KiCad로 회로를 그렸으며, 범용 규격 부품 기반의 자재표를 정리했다.

At this stage, I had resolved the thigh cuff interference in simulation, laid out the dual-socket KiCad PCB, and finalized the off-the-shelf hardware BOM.

하지만 회로와 기구 파츠를 검토하는 과정에서 모터 출력에 대한 역학적 한계에 부딪혔다. 소형 저와트 모터의 토크만으로는 70kg 체중의 착용자가 한 발로 디딜 때 발생하는 무릎 관절 모멘트를 직접 감당하기 어렵다는 계산 결과 때문이었다.

However, evaluating the mechanical loads against the actuator specifications exposed a fundamental torque gap: a compact low-wattage geared motor cannot directly support the knee flexion moment generated when a 70 kg wearer bears weight on one leg during stance.

다음 3편에서는 모터 출력 한계를 보완하기 위해 체중 지지는 기계식 락에 맡기고 모터는 공중 스윙 보조에 집중하는 준능동(Semi-Active) 구조로의 전환, 그리고 착용 편의를 고려해 골반 벨트를 제외하고 대퇴-하퇴 체결로 조정한 과정을 정리한다.

Part 3 covers how I addressed this torque limit by pivoting to a semi-active stance lock architecture—where a mechanical ratchet bears body weight during stance and the motor assists only unloaded leg swing—along with removing the pelvic belt so the wearer can use the restroom independently.