Deutsche Fassung →
AKWORKZ · CUSTOM ELECTRONICS DEVELOPMENT · EMBEDDED SYSTEMS · ROBOTICS

SmartServo HV220S – a custom smart servo controller with RS-485 bus, position control and telemetry

For the 18 joints of our hexapod robot VENOM we developed completely new servo electronics: schematic, a four-layer PCB measuring 15 × 24 mm, firmware, bus protocol and PC tools. The motor, gearbox, potentiometer and housing of the existing HV220 servos stay – a conventional servo becomes an addressable, network-connected actuator with feedback. The project shows what AKworkz also develops for clients: custom electronics from the first concept to the integrated system.

Design V1 completePrototypes in preparationNot yet validated in hardware
3D rendering of the SmartServo HV220S PCB from the KiCad data: 15 × 24 mm, four layers, with STM32G031 microcontroller, DRV8874 H-bridge, voltage regulator and the print HV220S 1.7 with AKworkz logo
3D rendering from the KiCad data, PCB rev. 1.7 – not a photo of a manufactured board.
PCB15 × 24 mm · 0.8 mm · 4 layers
Assembly41 components, both sides (19 top, 22 bottom)
MicrocontrollerSTM32G031 · Arm Cortex-M0+ · 64 MHz
Motor driverTI DRV8874 with current sensing
BusRS-485, 1 Mbit/s, custom protocol with CRC-16
Control20 kHz PWM · 1 kHz position loop on the servo
PowerDirect 2S LiPo (6–8.4 V), reverse polarity, transient and fuse protection
TelemetryPosition, current, voltage, PCB temperature
01 · PROJECT OVERVIEW

Starting point: solid mechanics, fragile electronics

VENOM is our six-legged robot with 18 joints – coxa, femur and tibia on every leg. Each joint is driven by an HV220 servo. In recent weeks these servos kept us busier than any software: failed motor controllers, destroyed power semiconductors, damaged gears (workshop report). Matching replacement MOSFETs for the original H-bridge were hard to get at short notice.

The mechanics, on the other hand, are robust. Instead of replacing 18 servos, we modernise them: new electronics in the old housing. The original board only serves as a mechanical reference for outline, connection positions and available space – we do not reuse its circuit, firmware or protocol.

Original HV220 servo board next to a ruler – the starting point for space and connection positions of the new electronics
Photo: the original servo board with a ruler – the reference for space and connections.
Angled 3D rendering of the new HV220S board with solder pads for motor, potentiometer and bus
The new electronics in the same space: 15 × 24 mm, connected via wires. Rendering, rev. 1.7.

Why custom servo electronics?

  • Availability: replace hard-to-source parts with readily available ones – the component choice in revision 1.7 was made explicitly for availability.
  • Feedback: position, motor current, supply voltage and temperature from every joint – the basis for diagnostics, the digital twin and future control strategies.
  • One bus instead of 18 separate lines: all servos addressable over a shared RS-485 line, with a synchronous setpoint and telemetry cycle.
  • Protection: current limiting, temperature monitoring and communication monitoring on the servo itself – before a driver burns out.
  • Sustainability: keep using existing, working mechanics instead of buying new ones.
02 · FROM SERVO TO ACTUATOR

Turning conventional servos into smart, network-connected actuators

What changes for the robot controller when every joint has its own networked electronics.

AspectWith HV220S (design V1)
AddressingIndividually addressable over RS-485: IDs 1–253 plus broadcast, commands for read, write, synchronous targets and stop
ControlTrajectory planning and position control at 1 kHz locally on every servo; targets with travel time so that several joints arrive simultaneously
FeedbackMeasured: position, motor current, supply voltage, PCB temperature. Estimated: velocity, load, joint torque (after calibration)
SynchronisationOne CYCLE frame sets targets for all servos; all sample their telemetry at the same moment and reply in fixed time slots
SafetyHardware and firmware current limiting, thermal derating and shutdown, reaction to communication loss, fault log in the servo
MaintenanceRegister model with configuration, calibration, counters and the latest fault entries – readable over the bus
03 · SYSTEM ARCHITECTURE

Electronics concept and system architecture

Every servo board is a self-contained embedded system: power and protection, microcontroller, power stage, measurement chain and bus communication on 3.6 cm².

Block diagram SmartServo HV220S, PCB rev. 1.7Bus wiresVM_IN · GND · A · BTransient protectionTVS SMF9.0CA (bidirectional)Reverse polarityP-MOSFET Si7101DNFuse + 3.3 V regulator0.5 A · TPS70933MicrocontrollerSTM32G031 · Cortex-M0+ · 64 MHzADC: angle · current · VM · temperatureRS-485-TransceiverTHVD1450, half duplexH-bridgeDRV8874 · 6 A peakDC motor + gearboxOriginal HV220PotentiometerPosition, ratiometricTemperatureNTC at the H-bridgeVM3.3 VVM 6–8.4 V (2S LiPo)PWM 20 kHzCurrent (IPROPI)UART + Hardware-DEA / B
Block diagram based on the project's architecture description (rev. 1.7). Four wires carry power and bus: VM_IN, GND, A and B.
  • Power path: the battery voltage (VM) passes the reverse-polarity protection directly to the H-bridge; a TVS diode at the wires clamps spikes when plugging in and from motor back-feed.
  • Logic supply: a fuse protects the 3.3 V branch; a short behind the regulator opens the fuse instead of overloading traces.
  • Measurement chain: the STM32's 12-bit ADC captures the potentiometer (ratiometric), motor current via the DRV8874 current mirror, battery voltage and the temperature right at the H-bridge.
  • Communication: the microcontroller's UART drives the RS-485 transceiver with hardware direction control – precise timing even at 1 Mbit/s.
04 · COMPONENT SELECTION

Component selection and technical specifications

Every part was checked against the manufacturer documentation – pinout, temperature range, limits and availability.

FunctionPartWhy
MicrocontrollerSTMicroelectronics STM32G031G8U3, UFQFPN-28 (4 × 4 mm)64 MHz Cortex-M0+, 64 KB flash, 12-bit ADC with DMA, USART with hardware direction control; temperature class up to 125 °C
H-bridgeTexas Instruments DRV8874, HTSSOP-16 with PowerPADProtected full bridge with shunt-less current sensing (IPROPI) and hardware current limit, 2 × 100 mΩ, 6 A peak – less heat in the closed housing than smaller alternatives
RS-485Texas Instruments THVD1450, VSSOP-83.3 V, 1/8 unit load, failsafe on an open bus
3.3 V regulatorTexas Instruments TPS70933, WSON-6 with thermal padWide input range, heat dissipation through the pad, readily available; pin-compatible second source exists
Reverse polarityVishay Si7101DN, P-MOSFETLow-loss protection against a reversed battery
TransientsLittelfuse SMF9.0CA, bidirectional TVS diodeClamps plug-in surges, motor back-feed and negative spikes at the wires
Fuse0.5 A, 0603, ahead of the regulatorOpens on a short in the logic branch
TemperatureNTC 10 kΩ at the H-bridge + internal MCU sensorMeasured where the heat is generated
Top view rendering of the HV220S board with DRV8874 H-bridge, STM32G031 microcontroller and RS-485 transceiver
Component side with microcontroller, H-bridge and RS-485 (rendering).
Rendering of the opposite side of the HV220S board with solder pads for the bus (A, B, GND), potentiometer (H, W, L) and voltage regulator
Opposite side with solder pads for the bus (A, GND, B) and potentiometer (H, W, L) – rendering.
Overview graphic SmartServo HV220S with 3D rendering, schematic, layout of both copper layers and key data (German labels)
Overview graphic published with design V1 (27 Nov 2026), German labels: rendering, schematic, layout and key data.
05 · PCB DESIGN

PCB design with KiCad: schematic and layout

Compact, multilayer, assembled on both sides – and generated reproducibly from a single source.

  • 15 × 24 mm, 0.8 mm, 4 layers: outline and thickness are set by the space inside the servo housing; double-sided assembly with 41 components.
  • Strict design rules: laid out to the AISLER rules with open vias (the stricter case); the manufacturer can be chosen freely.
  • Reproducible: the KiCad 10 project is generated from a netlist as the single source; routing is frozen and only changed deliberately. ERC and DRC run on every rebuild – rev. 1.7: 0 errors.
  • Heat: 11 thermal vias in the H-bridge footprint conduct heat into the ground planes; the regulator dissipates through its thermal pad.
  • Manufacturer-neutral production package: Gerber with job file, drill data, BOM and placement data, assembly drawings, schematic PDF and 3D STEP model.
Schematic of the SmartServo HV220S PCB rev. 1.7 from KiCad: input protection, voltage regulator, STM32G031, DRV8874, THVD1450 and measurement chain
Schematic rev. 1.7, exported from KiCad 10 (overview).
PCB layout of the HV220S, top copper layer with silkscreen
PCB layout, top copper layer (F.Cu) with silkscreen.
PCB layout of the HV220S, bottom copper layer mirrored with silkscreen
PCB layout, bottom copper layer (B.Cu), mirrored.
06 · MOTOR CONTROL

Motor control and position control

  • 20 kHz PWM from the STM32 timer to the H-bridge – outside the audible range.
  • 10 kHz current limiting in firmware, plus the DRV8874 hardware current limit.
  • 1 kHz trajectory planning and position loop locally on every servo: velocity, acceleration and deceleration limits as registers; alternatively a travel time so several joints arrive together.
  • Operating modes: position control plus direct PWM, current and brake modes.
  • Stop: a broadcast STOP acts directly in the receive interrupt and cannot get lost behind other commands; the joint decelerates in a controlled way to its actual angle.
07 · BUS COMMUNICATION

RS-485 bus communication and a custom protocol

VSP – VENOM Servo Protocol, version 1: a lean binary protocol for many nodes on one line.

Possible bus topology: star per leg, three servos in a chain (alternatively one line)Robot controllerBus master, RS-485 at 3.3 VBias 2 × 750 ΩLeg 1HV220S · CoxaHV220S · FemurHV220S · TibiaLeg 2HV220S · CoxaHV220S · FemurHV220S · TibiaLeg 3HV220S · CoxaHV220S · FemurHV220S · TibiaLeg 4HV220S · CoxaHV220S · FemurHV220S · TibiaLeg 5HV220S · CoxaHV220S · FemurHV220S · TibiaLeg 6HV220S · CoxaHV220S · FemurHV220S · TibiaTermination only on the servo with the longest cable run (variant HV220S-ENDE)
One possible bus topology for the hexapod. Idle-state bias and termination exist once per network; stub lines are kept short.

Physical layer

  • RS-485 half duplex, four wires (VM, GND, A, B), default 1 Mbit/s; selectable 115,200 bit/s, 500 kbit/s and 2 Mbit/s.
  • AC termination only on one servo at the end of the line (assembly variant “HV220S-ENDE”), bias at the master.

Frames and commands

Command: A5 5A | ID | LEN | INSTR | PARAM ... | CRC_L CRC_H Reply : A5 5A | ID | LEN | 0x80|INSTR | ERRSUM | DATA...| CRC_L CRC_H
  • CRC-16/CCITT-FALSE over ID, length and payload; corrupted frames are discarded and counted.
  • Commands: PING, READ, WRITE, SYNC_WRITE, SYNC_READ, CYCLE, STOP, REBOOT, FACTORY_RESET, plus reading and clearing the fault log.
  • Writes are all-or-nothing: a frame is applied completely or not at all; out-of-range values are clamped and reported.

Synchronous cycle for 18 joints

A single CYCLE frame carries the targets for all servos. Each servo copies its telemetry when the last checksum byte arrives and replies in its own time slot. The servos align their clocks with the master's timestamp and correct their slot position. By calculation, a cycle with 18 servos and the compact telemetry set takes 9.03 ms at 1 Mbit/s – i.e. 100 Hz if the master responds within 0.97 ms, otherwise 80 Hz. These values are calculated, not yet measured.

Fault tolerance

  • The master treats a servo as failed after three missing replies and at least 50 ms and stops the motion.
  • The servo itself reacts if communication stays silent too long (default 100 ms) – the reaction is configurable.
  • Bus load is limited so the electronics stay thermally safe inside the housing.
08 · TELEMETRY

Telemetry and condition monitoring

We strictly separate measured from estimated values.

QuantitySourceMethod
Actual anglemeasuredPotentiometer, ratiometric, 12 bit, two-point calibration
Motor currentmeasuredDRV8874 current mirror, peak and average values
Supply voltagemeasuredVoltage divider; under/overvoltage and dips are counted
PCB temperaturemeasuredNTC at the H-bridge, derating and shutdown on overtemperature
Velocity, accelerationestimatedFrom the angle signal, filtered
Load and joint torqueestimatedFrom the current; torque only after calibration – there is no torque sensor
End stop, load changeestimatedCurrent at the limit without motion; deviation from the moving average

Three telemetry sets are available: compact for the digital twin, full and diagnostic. A fault log in the servo keeps the last eight events with operating time.

09 · POWER

Power supply and protection circuits

  • Directly on the 2S LiPo (6–8.4 V); voltage measurement covers up to 18 V.
  • Reverse-polarity protection with a P-MOSFET; a gate capacitor keeps it off during negative spikes (dimensioned by simulation).
  • TVS diode, bidirectional, at the wires ahead of the reverse-polarity protection.
  • Fuse ahead of the 3.3 V regulator, regulator heat dissipated through its thermal pad.
  • Firmware protection: undervoltage detection, brown-out lock, current and temperature limits as registers with hard maximum values.
10 · FIRMWARE

Firmware development and tools

  • Firmware in C directly on CMSIS, without a vendor HAL, built with CMake; current image about 42 KB.
  • One register map as the single source for firmware, Python tools and documentation – they cannot drift apart.
  • Tests on the PC: the firmware logic runs on a computer against a virtual servo – more than 500 automated tests, plus tests of the Python tools, static analysis and timing measurement.
  • Python tools: bus scan, ID assignment, register access, motion, telemetry with CSV export, calibration, GUI, digital twin and an adapter for the VENOM controller.

How we verify before we manufacture

A board that sits 18 times in one robot has to be right before production. Seven separate reviews – circuit, firmware safety, control and telemetry, protocol and software, thermal design, PCB and bill of materials – produced 164 documented findings, including 2 critical and 25 high. The fixable ones are fixed, all others are documented with their status. Several cross-check rounds followed, each with corrections and a new test run. These reviews do not replace measurements on real hardware – they give the first prototypes a good chance.

11 · INTEGRATION

Integration into the VENOM hexapod platform

VENOM is being developed as an autonomous robotics platform – with cameras, distance sensors, an inertial sensor, local AI and a digital twin (development status). The HV220S electronics provide the joint level: the robot controller sends targets for all 18 joints in one cycle and receives position, current, voltage and temperature back in the same cycle. The compact telemetry set is designed for the digital twin, and the Python client includes a VENOM adapter.

For the next platform generation we use off-the-shelf smart servos (VENOM Next Generation). The HV220S remains the project to modernise the existing HV220 servos – for VENOM and as a possible open solution for everyone who still owns such servos.

12 · DEVELOPMENT STATUS

Current development status (27 November 2026)

Complete

  • Schematic and layout, PCB rev. 1.7
  • Firmware 1.15 with bus protocol VSP 1
  • Python tools and test environment
  • Manufacturer-neutral production package V1
  • Design reviews and cross-check rounds

In preparation

  • Production data is with several PCB and assembly manufacturers for feedback
  • First prototype batch of a few assembled boards
  • Technical production release by AKworkz

Planned

  • First-article inspection: solder joints, step-by-step bring-up, current and temperature measurements
  • Bus operation with all servos in the robot
  • Only then production of the remaining boards

Not yet validated

  • All electrical and thermal properties on real hardware
  • Control quality with the original gearbox
  • Cycle times and bus behaviour in practice
  • Calibration of the torque estimate
Honest status: no board has been manufactured yet and nothing has been measured on real hardware. All figures on this page are design and calculated values. We will publish hardware test results in the engineering log – including things that do not work.
13 · PROTOTYPES

Planned prototype manufacturing and hardware validation

  • Production in two stages with a hold: first a small prototype batch including the variant with bus termination, then first-article acceptance – only then the remaining boards.
  • First-article inspection: solder joint inspection (including X-ray of packages with hidden terminals), step-by-step bring-up on the test bench, measurement of currents, voltages and temperatures.
  • In the robot: bus operation with all servos, cycle time, failure detection and thermal behaviour inside the closed housing.
14 · OUTLOOK

Possible future extensions

Ideas and options – not implemented and not committed.

  • Higher bus speed (2 Mbit/s is provided for in the design) for shorter cycles.
  • An open smart servo controller that makers can use to modernise existing, compatible servos.
  • Adaptation to other servo mechanics with similar space.
  • Extended diagnostics from the telemetry data, such as wear and load analysis in the digital twin.
15 · AKWORKZ AS DEVELOPMENT PARTNER

What this project shows about our services

The SmartServo HV220S is not a one-off but an example of the work we also do for companies – from the first concept to the integrated system.

Electronics & PCB design

Custom electronics development, schematic design and compact multilayer PCBs.

  • Schematic and layout in KiCad, parts chosen by datasheet and availability
  • 4-layer boards in the smallest space, assembled on both sides
  • Manufacturer-neutral production files

Embedded systems & firmware

Microcontroller and firmware development, close to the hardware and testable.

  • C on ARM Cortex-M, ESP32, Raspberry Pi, Arduino
  • Tests on the PC against virtual hardware
  • Register models, boot process, diagnostics

Motor control & actuators

Motor controllers, H-bridges, position and current control.

  • Servo and DC drives, trajectory planning
  • Current and temperature protection
  • Modernisation of existing drives

Sensors, telemetry & communication

Sensor integration and industrial communication systems.

  • RS-485, CAN, UART, I²C, SPI, USB, Ethernet
  • Custom protocols with checksums and time synchronisation
  • Telemetry for condition monitoring and digital twins

Mechanics, CAD & prototypes

Mechanical design and prototype development.

  • CAD design and 3D printing
  • Installation space, assembly and cable routing
  • Fast iterations to a working prototype

Robotics, automation & AI

Robotics and intelligent control systems, developed across disciplines.

  • Multi-axis robotics and motion control
  • Local AI, perception, digital twin
  • Interdisciplinary product development from one source

AKworkz takes on custom development projects, client-specific hardware, joint product development and open-source projects for companies and their communities – from the first concept to the integrated system. Related services: Robotics & embedded engineering, Rapid product development, Modernising existing systems.

16 · WORK WITH US

Who we are the right partner for

Companies with development needs

You need a controller, a measuring device, motor electronics or an embedded system that cannot be bought off the shelf.

Request a development project →

Modernising existing hardware

A product or machine still works mechanically, but its electronics, parts or interfaces are outdated.

Discuss modernisation →

PCB and PCBA manufacturers

We are looking for experienced partners for compact 4-layer boards with double-sided assembly – from prototypes to small series.

Get in touch as a manufacturing partner →

Electronics and semiconductor manufacturers

Your components in a publicly documented robotics project – with honest results from practice.

Become a supporter or partner →

Technology partners & sponsors

Support the development with hardware, manufacturing or know-how and become part of a build-in-public project.

View the partner programme →

Robotics companies

Actuators, bus architecture, sensors and control for your platform – or joint development.

See robotics engineering →

Community and open-source projects

You would like a hardware project developed for your community or as open source.

Describe your project →
17 · FAQ

Frequently asked questions about the SmartServo HV220S

Can AKworkz develop electronics for our company too?

Yes. We develop custom electronics, PCBs, firmware and complete embedded systems – as contract development, as joint product development or to modernise existing products.

Can I buy the SmartServo HV220S?

No, not at the moment. The HV220S is a development project for our robot VENOM. The first prototypes are in preparation; whether and in which form an open or commercial version will follow has not been decided.

Has the design been tested?

At design level, yes: the firmware runs in more than 500 automated tests against a virtual servo, schematic and layout have no ERC or DRC errors, and the design went through several review rounds. Nothing has been measured on real hardware yet – that follows with the first prototypes.

Which software was used for the PCB?

Schematic and layout are created in KiCad 10; the project is generated reproducibly from a netlist. The renderings, schematic and layout images on this page come directly from the KiCad data.

We are a PCB manufacturer – how can we help?

Write to us at info@akworkz.de. There is a manufacturer-neutral production package; we agree on sharing it with interested manufacturers case by case.

MORE ABOUT THE PROJECT

Read more

CONTACT

Request a development project or partnership

Briefly describe your plans – contract development, modernising existing hardware, manufacturing partnership, sponsorship or a community project. We reply by email. Required: name, email, description.

We use your details only to handle your request (Art. 6(1)(b) GDPR). See our privacy policy. Alternatively: info@akworkz.de.