Project Starter Help


flux

Fuse dipilih dari arus listrik dan lamanya arus tersebut mengalir, bukan langsung dari berat atau kecepatan angkat. Beban, panjang lengan, percepatan, dan posisi sendi memengaruhi torsi serta arus; bahkan servo yang diam menahan lengan bisa menarik arus besar, sedangkan stall berarti motor tertahan meskipun diperintahkan bergerak dan tidak boleh sengaja dipertahankan untuk pengujian.
Ukur arus total menuju keenam servo menggunakan sensor arus/data logger atau tang ampere DC yang cukup responsif pada satu kabel power, sambil menjalankan gerakan dan beban maksimum yang memang direncanakan; catat arus kontinu, puncak, dan durasinya, lalu pilih fuse memakai kurva waktu–arus serta derating temperatur agar lolos operasi normal tetapi memutus sebelum kabel, konektor pertama pada daisy-chain, atau jalur PCB kepanasan—jangan memasang amperemeter langsung paralel ke suplai atau sekadar memilih fuse sebesar jumlah arus stall.
Fuse terutama melindungi distribusi daya dari arus berlebih/short, bukan menjamin servo atau MOSFET selamat dari overload: proteksi temperatur/overload internal AX-18A perlu dikonfigurasi dan dipantau sesuai manual, nilai Present Load bukan pengukuran arus langsung, dan fuse juga tidak mengatasi tegangan regeneratif yang Anda amati; karena itu nilai fuse final belum dapat ditentukan tanpa profil arus dan rating kabel/konektor.
baik saya paham, nah untuk diode apakah tidak bisa menggunakan diode biasa untuk memblokir dari beban ke sumber supaya tidak ada tegangan balik?

flux

Bisa. Dioda seri dapat memblokir arus dari servo kembali ke sumber, dengan anoda di sisi sumber dan katoda/garis gelang di sisi servo; jadi saya luruskan jawaban sebelumnya: dioda seri berguna untuk reverse-current blocking, tetapi bukan pengganti TVS.
Masalahnya, energi regeneratif tidak hilang: setelah diblokir, energi tertahan di sisi servo dan dapat menaikkan tegangan rail servo lebih tinggi, sehingga tetap diperlukan kapasitor dan penyerap energi yang sesuai—TVS untuk transien singkat, atau clamp aktif/resistor pengereman jika regenerasi berlangsung lama; jalur ADC juga masih dapat mem-back-power STM32 yang mati.
Untuk enam servo, jangan gunakan 1N4007 yang berkelas 1 A: dioda daya harus dipilih berdasarkan arus total, surge, tegangan reverse, dan pendinginan, dengan kerugian P ≈ VF × I—misalnya drop 0,4 V pada 6 A menghasilkan panas 2,4 W; Schottky dapat mengurangi drop, sedangkan rangkaian ideal diode dengan reverse-current blocking dapat mengurangi rugi lebih jauh, tetapi keduanya tetap harus disertai penanganan energi di sisi servo.

Project Specification
Project Overview
  • Status: Review
  • Isolated PCB module that switches an external 11–20 V DC load on the high side from a 3.3 V STM32F7 GPIO.
  • Intended for static or low-rate ON/OFF control, not fast PWM.
Intended Use
  • Subsystem/module between an external controller, DC source, and load.
  • Galvanic isolation is mandatory between controller-side CTRL_GND and power-side GND.
What the Device Should Do
  • GPIO low or disconnected: PC817 LED off, IRF4905 gate pulled to source, output OFF.
  • GPIO high: PC817 on, gate pulled down through 2.2 kΩ, IRF4905 on, V_OUT energized.
  • Provide VIN decoupling, power indication, and load ground return.
Main Features
  • 11–20 V input on 2-pin screw terminal.
  • High-side P-channel MOSFET output on 2-pin screw terminal.
  • Three-pin control connector: CTRL_3V3, CTRL_SIGNAL, CTRL_GND.
  • PC817 optical isolation.
  • 15 V gate-source zener clamp and default-off 10 kΩ pull-up.
  • 100 nF / 50 V ceramic plus 10 µF / 50 V bulk input capacitance.
  • Green VIN-present LED with 3.3 kΩ, 0.25 W resistor.
System Architecture

Text


External STM32F7                 Isolation             Power domain
CTRL connector -> 330 Ω -> PC817 LED || PC817 transistor -> 2.2 kΩ -> GATE_DRV
      |                |                          |                    |
  100 kΩ pull-down  CTRL_GND                  power GND       IRF4905 + clamp
VIN/GND input -------------------------------------------------> V_OUT/GND output
Hardware Subsystems
Control Interface
  • J1 exposes CTRL_3V3, CTRL_SIGNAL, and CTRL_GND.
  • R2 = 100 kΩ from CTRL_SIGNAL to CTRL_GND prevents a floating command when disconnected.
  • R1 = 330 Ω limits PC817 LED current.
  • C3 = 100 nF from CTRL_3V3 to CTRL_GND provides controller-side interface bypass without crossing the isolation barrier.
Isolation
  • U1 is PC817 in DIP-4. Pin mapping is pin 1 anode, pin 2 cathode, pin 3 emitter, and pin 4 collector.
  • No copper/net connection exists between CTRL_GND and power GND.
Gate Driver and High-Side Switch
  • Q1 is IRF4905PBF, TO-220: pin 1 Gate, pin 2/metal tab Drain, pin 3 Source.
  • Source connects to VIN; drain connects to V_OUT.
  • R4 = 10 kΩ source-to-gate default-OFF pull-up.
  • D1 = 1N4744A: cathode to source/VIN, anode to gate. Its nominal zener voltage is 15 V.
  • R3 = 2.2 kΩ between PC817 collector and GATE_DRV limits optocoupler/zener current.
Power Input, Output, and Indicator
  • J2 = VIN/GND input terminal; J3 = V_OUT/GND load terminal.
  • C1 = 100 nF, 50 V, ceramic; C2 = 10 µF, 50 V, aluminum electrolytic.
  • LED1 is green WP7113SGC; its forward voltage is 2.2 V typical at 20 mA.
Interfaces and Connections

Table


ConnectorPinNetFunction
J11CTRL_3V3Controller-side 3.3 V reference and local C3 bypass
J12CTRL_SIGNALActive-high GPIO command
J13CTRL_GNDController-side return only
J21VIN11–20 V DC input
J22GNDPower return
J31V_OUTSwitched high-side output
J32GNDLoad return
Power and Runtime Expectations
  • No onboard regulator and no battery/runtime target.
  • Quiescent power is dominated by the VIN indicator and gate network while ON.
Power Tree and Power Budget
  • VIN feeds Q1 source, input capacitors, gate pull-up/clamp, and the VIN LED branch.
  • Load current, inrush, duty cycle, and ambient conditions are unspecified; final current rating is therefore TBD.
  • Connector rating, MOSFET dissipation/heatsinking, copper width/thickness, and thermal limits must be verified after load current is provided.
Manufacturing and Assembly Expectations
  • Through-hole implementation selected for the MOSFET, PC817, screw terminals, LED, resistors, and capacitors.
  • No PCB layout is included in this revision.
Firmware-Relevant Hardware Requirements
  • External GPIO is active high.
  • Use only static/low-rate ON/OFF transitions; do not use fast PWM.
  • Default state must be GPIO low/high-impedance during controller reset.
Physical Design Expectations
  • Module PCB dimensions and connector edge placement remain open until current, wiring gauge, and mounting needs are known.
  • Maintain physical creepage/clearance across the optocoupler barrier during PCB layout.
Important Design Decisions
  • Control and power grounds remain galvanically isolated.
  • IRF4905 retained with protected negative VGS; its absolute maximum VGS is ±20 V, so the 15 V clamp adds margin.
  • Flyback protection is not guessed because the load type and wiring are unknown.
Assumptions
  • 3.3 V GPIO can source the PC817 LED current through 330 Ω.
  • External load supply remains within 11–20 V under normal and transient conditions.
  • Load is not assumed inductive.
Open Items
  1. Continuous and inrush load current.
  2. Load type, especially inductive behavior and cable length.
  3. Allowed voltage drop and thermal rise.
  4. Required PCB dimensions, mounting, and connector wire gauge.
  5. Surge/reverse-polarity protection requirements.
Change Notes
  • Initial complete isolated high-side switch schematic created with real library parts and through-hole footprints.
  • Project Overview

  • Intended Use

  • What the Device Should Do

  • Main Features

  • System Architecture

  • Hardware Subsystems

  • Control Interface

  • Isolation

  • Gate Driver and High-Side Switch

  • Power Input, Output, and Indicator

  • Interfaces and Connections

  • Power and Runtime Expectations

  • Power Tree and Power Budget

  • Manufacturing and Assembly Expectations

  • Firmware-Relevant Hardware Requirements

  • Physical Design Expectations

  • Important Design Decisions

  • Assumptions

  • Open Items

  • Change Notes