Replacing a Ceramic Capacitor? Compare Usable Capacitance

by mhmd bakri
Hypothetical capacitor comparison: two nominal 10 µF candidates screen at 6.0 and 4.0 µF against a 4.7 µF minimum.

A matching value and footprint do not prove an MLCC substitute is suitable. Compare effective capacitance, document the evidence and retest the circuit behavior.

A capacitor disappears from stock, and a supplier offers another part with the same capacitance, voltage rating and footprint. That is a useful starting point, not an engineering approval. The replacement must still do the same job in the assembled product.

For a multilayer ceramic capacitor, or MLCC, the number in the bill of materials does not tell the whole story. A practical substitution review compares the exact parts under the circuit’s operating conditions, records what remains uncertain, and tests the behavior that the capacitor supports.

Start with the capacitor’s job

Identify the reference designator and the function before comparing catalog entries. Is this an output capacitor required by a regulator, a local supply bypass, a filter component, or a timing element? The acceptance criteria will differ. A successful boot is weak evidence for a part whose critical job appears only during a load change.

Write down the operating voltage range, expected temperature range and relevant load states. Identify the component datasheet or design calculation that sets the requirement. Keep minimum effective capacitance separate from nominal capacitance, and check any maximum capacitance or equivalent series resistance (ESR) limits too.

For example, the TI TPS7A20 datasheet, revision H, distinguishes its nominal output-capacitor recommendation from an effective capacitance range required for stability. Its recommended-operating-conditions table and footnotes specify 0.47 µF minimum and 200 µF maximum effective output capacitance. These are requirements for that device, not universal limits for other regulators.

Compare the exact part numbers, not just X7R

High-dielectric-constant ceramic capacitors can lose capacitance under DC bias. Murata’s DC-bias guidance explains why this must be considered in the actual equipment. A shared dielectric designation or voltage rating does not establish that two parts retain the same capacitance on your rail.

Obtain the manufacturer’s data for each complete orderable part number. Record the curve’s measurement conditions and whether its values are typical or guaranteed. A typical curve is useful for screening, but it is not automatically a worst-case production limit. If the available data cannot support the required margin, ask the manufacturer for clarification or choose a better-documented candidate.

Also distinguish an operating-condition estimate from a bench measurement taken without bias. Murata’s capacitance-measurement FAQ identifies temperature, AC and DC voltage, frequency, and time as influences on high-dielectric-constant ceramic capacitance. Record these conditions so the comparison can be repeated.

A small example that changes the decision

Consider a hypothetical circuit whose documented requirement is at least 4.7 µF of effective capacitance. Two candidate parts both carry a nominal value of 10 µF. Suppose the review produces screening estimates of 6.0 µF for candidate A and 4.0 µF for candidate B at the intended operating point.

  • Candidate A clears that screening threshold by 1.3 µF, but still needs its uncertainty and remaining requirements checked.
  • Candidate B falls below it by 0.7 µF. Matching the printed 10 µF value does not rescue the substitution.
  • If those estimates exclude tolerance, temperature or other relevant effects, neither is yet a complete lower-bound assessment.

These invented values explain the decision process. They are not manufacturer data, measurements, or approval of any real capacitor. Do not apply a generic percentage reduction to every MLCC, or multiply unrelated curve factors without checking how the manufacturer defines them.

Hypothetical capacitor comparison: two nominal 10 µF candidates screen at 6.0 and 4.0 µF against a 4.7 µF minimum.
Illustrative screening comparison, not real part data. Both candidates are nominally 10 µF; only candidate A clears the hypothetical 4.7 µF threshold. Final approval still requires uncertainty and circuit checks.

Make the approval record useful to purchasing

A short comparison sheet should let another engineer reconstruct the decision and let purchasing order the exact approved item. Include:

  • Identity: original and proposed manufacturer part numbers, reference designators and affected board revision.
  • Fit: package dimensions, height, termination and assembly requirements, rather than footprint name alone.
  • Electrical evidence: voltage and temperature limits, nominal tolerance, effective-capacitance evidence, and application-specific impedance or ESR requirements.
  • Traceability: source documents, revisions, access date, assumptions, reviewer and unresolved questions.
  • Release scope: the builds or board revisions covered by the approval, plus the tests that must pass.

A supplier’s proposed alternative should remain identifiable as a proposal until that review is complete. Keep the decision with the hardware revision record, rather than leaving it only in an email conversation.

Retest the behavior, not just the component

Define pass limits before testing. Use representative boards, the intended supply and relevant operating corners. Compare the original and replacement under the same setup, recording the board revision and exact fitted part. For a supply capacitor, useful observations may include rail excursions during load transitions, startup and shutdown behavior, and the product’s response during its demanding operating modes.

Changing capacitance can also change startup behavior. Treat the power-rail startup and inrush check as a separate test rather than assuming that more nominal capacitance is always better. Preserve traces and test conditions, including probe connection and load stimulus, so a later reviewer can distinguish an actual improvement from a changed measurement setup.

This is a system-level decision. MakersGround’s Gomicron development work spans mechanical design, PCB electronics, firmware and control, slicing software, prototyping and manufacturing. That multidisciplinary context explains why a component change belongs in the product’s engineering record; it does not imply that the hypothetical capacitor example came from that project.

The release question is simple: does this exact replacement meet the documented requirements, with enough evidence to repeat the decision? Approve that conclusion, not a matching line in a distributor’s search results.

Nonvolatile Memory Endurance: Count Writes Before Release

by mhmd bakri

Count embedded storage writes, identify physical wear units and validate saving policies before approving a hardware prototype.

Before accepting an embedded prototype, translate its saving behavior into writes to the actual nonvolatile memory. Count normal saves, retries, startup activity and housekeeping. Then compare the busiest physical storage unit with the selected component’s endurance conditions. A device that saves successfully during a demonstration has not yet established a sustainable write budget.

For a product owner, the useful deliverable is a storage budget tied to firmware behavior: what is saved, why, how often, where it goes and what the product may lose if saving is delayed. That makes the tradeoff between persistence and wear visible before field use.

Begin with data that really needs to survive

List the stored information by purpose. Calibration values, user configuration, accumulated operating hours and diagnostic events do not necessarily need the same saving policy. A calibration value might change only during service; a running counter may change continuously.

Separate the rate at which a value changes in RAM from the rate at which it must be committed. Specify the acceptable loss window in plain terms. If a counter is checkpointed periodically, what unfinished interval could be lost after power interruption? If a setting is saved only on an explicit confirmation, what should the interface show before that confirmation?

Do not silently trade away persistence to reduce writes. Agree the behavior with the product team and test it. Financial, safety-related or legally required records need their own requirements; a convenient batching interval is not sufficient justification.

Identify the physical unit that wears

An application-level save is not automatically one independent byte write. The selected memory architecture and driver determine how logical changes become physical operations.

For example, Microchip’s AT25010B/AT25020B/AT25040B data sheet (DS20006251C, Table 4-6) specifies endurance under particular temperature, voltage and page-write conditions. Its note defines write-cycle endurance for aligned groups of four data bytes. This is a device-specific example, not a universal EEPROM rule. Check the exact part and revision before budgeting.

Flash-backed EEPROM emulation is different again. ST’s AN4894 explains an implementation that appends updates, transfers valid elements when a page set fills and erases the old set. Its allocation and wear-leveling rules affect the physical cycle count. Do not treat a variable update as one page erase or assume that doubling reserved bytes always doubles useful life.

Record the program unit, erase unit where applicable, endurance conditions, retention requirements and driver version. Include metadata: sequence counters, directory entries, validity markers or a fixed status location can be written more frequently than the payload they describe.

A hypothetical write budget

Consider a hypothetical low-voltage monitoring device that commits one counter to the same endurance unit every 10 seconds, continuously. The workload is 8,640 commits per day, or 3,153,600 over a 365-day year. These are arithmetic workload counts, not measured product data or a component lifetime prediction.

If the product instead permits a checkpoint every 10 minutes, the base workload becomes 144 commits per day, or 52,560 per year. That is 60 times fewer base commits, but it also increases the potential unsaved interval. It does not prove that the memory lasts 60 times longer: metadata, retries, physical allocation and operating conditions still matter.

Add exceptional writes separately. A reconnect loop, repeated factory-default save or a sensor fault that records the same event on every iteration may dominate the normal workload. A budget based only on intended user actions will miss these paths.

A comparison of saving every 10 seconds, producing 8,640 base commits per day, and every 10 minutes, producing 144, with the persistence tradeoff called out.
Hypothetical write workload for one repeatedly updated storage unit. These counts exclude retries and housekeeping and are not lifetime predictions.

Change the policy before changing the component

First remove avoidable writes. Verify whether the software writes unchanged settings, rewrites an entire structure for one field, or retries completed work because acknowledgement handling is ambiguous. An unchanged-value comparison must use the intended representation; uninitialised padding or unstable serialization can make equivalent settings appear different.

Then consider batching or checkpointing, but retain the agreed loss window. Use distinct policies for infrequent settings and frequent events. If wear leveling is needed, review the supported driver’s storage layout and recovery behavior rather than designing a rotation scheme from capacity alone.

More storage or a different memory technology may be appropriate when the required persistence cannot fit the budget. Compare options against the actual workload and conditions, not a headline endurance number. Include software complexity, boot recovery, update compatibility and evidence needed to accept the change.

Measure the writes in the prototype

Instrument the persistence boundary so a representative test can report attempted updates, completed logical commits, physical program operations and erase operations where exposed. Keep these definitions separate. A successful API call count alone may hide internal housekeeping.

Use the same configuration, record sizes and firmware build planned for acceptance. Test normal operation, repeated setting changes, reboot sequences, communication outages, retries and a full log or storage area. Capture the hottest unit where the driver allows it. When physical counters are unavailable, document the model used to translate logical activity and validate it against the driver implementation.

Make the result reviewable:

  • Memory part, revision and relevant operating conditions.
  • Firmware and storage-driver versions; layout and reserved capacity.
  • Data categories, update rates and maximum permitted loss windows.
  • Measured logical and physical activity, test duration and fault scenarios.
  • Calculated workload over the intended service period, assumptions and margin.
  • Remaining tests and the person responsible for accepting the storage policy.

Keep endurance and recovery as separate acceptance questions

An endurance budget asks whether repeated storage operations fit the component and implementation. Recovery asks whether interrupted operations leave valid information that the product can interpret. Passing one does not establish the other. Use the separate power-failure recovery checklist for interrupted-save behavior rather than counting a successful reboot as endurance evidence.

MakersGround’s Gomicron project documents mechanical design, PCB electronics, firmware and control, slicing software, prototyping and manufacturing. Storage policy is one of the questions that connects custom electronics with product behavior. This example is an engineering planning method, not a claim about Gomicron’s memory parts or historical test process. See our hardware and firmware development scope for the wider development context.

Before approving the next build, require a write budget that another engineer can reproduce. The important result is an agreed persistence policy backed by measured workload and exact component conditions, not a generic promise that nonvolatile memory lasts for years.

Sources

Technical sources checked November 16, 2026, and revalidated November 17, 2026.

Power Rail Startup: Check Inrush Before Blaming Firmware

by mhmd bakri

A practical startup investigation for low voltage embedded prototypes: capture the supply event, separate capacitor charging from load behavior, and define repeatable acceptance evidence.

When an embedded prototype starts only sometimes, measure its power rails during startup before treating the symptom as a firmware defect. Capture the voltage at the load, the source behavior and a useful reset or enable signal together. A successful boot message tells you that one attempt completed; it does not show whether the electrical startup was repeatable.

This guide concerns low voltage prototype electronics. It separates capacitor charging, converter protection and firmware startup so a team can investigate the right boundary. It is not a mains measurement procedure or a substitute for electrical safety review.

A quiet supply after boot can hide a difficult start

A board may draw modest current once running but need additional current while its capacitors charge. Texas Instruments explains that this charging demand can disturb the supply feeding a switched load. Its Managing Inrush Current application report relates capacitor current to capacitance and voltage slew rate: I = C × dV/dt. Slowing a controlled ramp reduces that capacitor charging component, subject to the circuit’s actual behavior.

That is a useful first estimate, not the complete startup budget. The processor, sensors and other loads can begin consuming current while the voltage rises. Cable resistance, source limits, converter operation and stored charge also affect the result. A bench supply’s displayed steady current cannot establish the peak that occurred before the display settled.

Keep three questions separate: did the input source remain suitable, did the converter produce its required output, and did the powered circuitry start correctly? Changing firmware before answering the first two can mask an electrical problem without resolving it.

Make the first capture explain the sequence

Draw a small power map before attaching probes: source, cable, protection or switch, converter, local capacitors and load. Mark separately powered interfaces, including a debugger or USB cable. Record the exact board revision and fitted components, not merely the schematic revision.

Choose observation points that answer a specific question. For example, compare the converter input with its output to distinguish an upstream collapse from an output startup problem. A reset or enable signal provides timing context when its electrical meaning is known. If channels are limited, repeat under controlled conditions rather than treating unrelated captures as simultaneous.

  • Record the supply model, current limit, voltage setting, cable and connection method.
  • Note whether the board was fully discharged, partly charged or already powered through another interface.
  • Save the trigger condition, time scale, probe setup and bandwidth settings with the capture.
  • Measure current with a suitable instrument or method whose range and bandwidth can resolve the event. Account for any disturbance the measurement introduces.

Use appropriately rated equipment and verify grounding before connecting an oscilloscope. Do not lift protective earth or assume a ground clip can be attached to an arbitrary node. Ask a qualified engineer to choose a safe measurement arrangement where the grounding or isolation is uncertain.

For rail measurements, a long probe ground lead can create misleading switching spikes. Analog Devices’ AN-1144 measurement guidance explains how probe connections affect ripple and transient observations. Keep the connection loop appropriate to the measurement and distinguish genuine rail behavior from probing artifacts. Preserve the DC voltage trajectory when investigating startup; a ripple-focused measurement alone answers a different question.

A hypothetical capacitor calculation

Suppose an idealized 470 µF capacitor bank charges linearly from 0 V to 5 V. A 1 ms ramp requires a capacitor charging current of 2.35 A. Stretch the same linear ramp to 10 ms and that component becomes 0.235 A. These numbers are hypothetical, not measurements from a MakersGround product.

Two idealized voltage ramps over the same 10 millisecond scale compare capacitor charging current: 2.35 amperes for a 1 millisecond rise and 0.235 amperes for a 10 millisecond rise.
Hypothetical capacitor-only comparison: the same 470 µF bank charged from 0 V to 5 V over 1 ms or 10 ms. Both panels use a 0–10 ms time scale. Not measured product data.

The calculation excludes load current, losses, capacitance variation and nonlinear startup behavior. It does not specify a safe current limit or prove that a particular converter can start. The useful takeaway is narrower: ramp timing belongs in the investigation, alongside capacitance and load behavior.

Do not respond by removing required decoupling or adding an arbitrary delay. The fitted converter may impose output capacitance, stability, sequencing or soft-start constraints. A proposed change must satisfy its data sheet and the requirements of everything powered by the rail.

Read the failure pattern before choosing a remedy

Analog Devices describes converters entering repeated startup attempts when output inrush interacts with protection in Preventing Start-Up Issues Due to Output Inrush in Switching Converters. That mechanism is device dependent. Repeated pulses on a rail are a reason to inspect the chosen converter’s protection behavior, not proof that every pulsing rail has the same cause.

If the input drops first

Investigate the source, current limit, cable and upstream switching path. Repeat with the intended product supply and connection arrangement. A shorter bench cable is a useful diagnostic comparison, but it cannot validate a product intended to ship with a longer cable.

If the input remains acceptable but the output retries

Compare the trace with the regulator’s documented startup and protection sequence. Check fitted capacitance and the load enabled during that interval. Evaluate only supported adjustments. Preserve each original configuration so comparisons remain interpretable.

If the rail rises but the processor repeatedly resets

Check the relevant voltage at the processor, reset timing and the actual device’s startup requirements. Correlate these with the reset signal where available. A regulator output measured elsewhere on the PCB does not establish the voltage at every load pin. Keep electrical evidence and firmware logs together without assuming either explains the whole event.

Turn the finding into a startup acceptance record

Replace “boots on the bench” with a short, reviewable requirement. Name the intended source conditions, permissible startup time, rail limits and expected system state using the selected components and product requirements. Do not borrow a universal voltage threshold from another design.

Repeat the agreed test across relevant conditions: cold connection, rapid reconnection, intended cable variants, connected peripherals and permitted supply extremes. Define the sample count and dwell conditions before testing. Record attempts and failures, rather than retaining only the best waveform.

A useful release record contains the tested hardware and firmware revisions, source and load configuration, acceptance limits, captured evidence, observed exceptions and the owner of any remaining action. If a change improves startup, repeat the same comparison and check that normal operation remains acceptable. Startup success does not by itself validate thermal behavior, fault protection or long-term reliability.

Where this fits in an integrated prototype

Our Gomicron engineering project documents work spanning custom electronics and firmware/control alongside mechanical and software development. That cross-discipline scope makes the power-to-firmware boundary a relevant design-review topic. This article is general engineering guidance, not a claim about Gomicron’s historical power components, test equipment or startup results.

For a broader development scope, see our IoT and hardware engineering services. Once startup is understood, the separate power-failure recovery checklist addresses what the product should retain and how operation resumes after an interruption.

The practical decision is simple: capture the startup event, identify which boundary fails, and approve a change against the actual component requirements. A repeatable electrical start gives firmware debugging a firmer foundation.

Sources

Technical sources checked on 15 November 2026. Vendor examples describe their documented circuits and measurement conditions, not an endorsed universal implementation.

Cable Harness Planning Before a Hardware Prototype Build

by mhmd bakri

Plan cable routes, connector access, service slack and moving sections before the next hardware prototype, with a practical build and inspection checklist.

Before building a hardware prototype, define the cable harness as part of the assembly: which points it connects, where it runs, how it is supported, what moves and how someone will install or replace it. Review that route with the intended enclosure and mating connectors. A complete pinout can still leave a cable trapped under a cover or a latch impossible to reach.

When commissioning custom electronics or a small machine, include a harness drawing and a documented fit and service-access review in the prototype scope. Agree which enclosure, connectors and cable parts that review will represent. The question is practical: can someone install and disconnect the intended connections in the available space?

MakersGround’s Gomicron engineering project documents work across mechanical design, PCB electronics, firmware and control, slicing software, prototyping and manufacturing. A harness review brings a concrete assembly question to that multidisciplinary scope: do the connector locations, cable route and service sequence work together?

Start with a connection map and an installation state

Give each harness and branch an identifier. Record its endpoints, the connector orientation and the exact mating parts. Include contacts, housings, seals or accessories where applicable, rather than specifying only a familiar connector-family name. A drawing should make clear whether a connector is shown from the mating face or the wire-entry side.

Keep the electrical requirements beside that map: circuit function, expected load, wire requirements and operating conditions. Check the selected component documentation. For example, Molex’s Mini-Fit Jr BMI HPC product specification makes current rating dependent on the application and identifies loading, temperature and surrounding construction as relevant conditions. There is no universal connector current rating. Check the exact contact, wire and connector configuration and the conditions attached to its rating.

Then define the assembly state being reviewed. Is the board already fixed to the base? Is the lid attached? Must a cable pass through an opening before its connector is fitted? These questions determine the installation sequence. Record a temporary prototype arrangement explicitly if it will differ from the next build.

Put the cable route into the mechanical review

Reserve space for the cable and its supports in the assembly model or an annotated drawing. Show branch points, enclosure crossings, nearby fasteners, sharp edges and parts that will move or be removed. Use the intended cable diameter and connector envelope once those parts are selected.

NASA’s cable and harness workmanship standard treats routing, support, abrasion protection and access as explicit engineering concerns. It is a high-assurance reference, not a claim that an ordinary prototype follows NASA requirements. Its relevance here is that a harness needs a physical definition as well as an electrical one.

Check the route with the cover fitted and with the intended service part removed. Reserve space for fastener tools and hands where they are needed. A cable that fits after careful manipulation may still lack a repeatable installation path. Note where a protective sleeve, edge treatment or support is required, and specify the actual solution through the product’s design review.

Choose support locations so that normal cable handling does not turn the board connector into the assembly’s only restraint. Leave the wire exit and any manufacturer-specified free length undisturbed. More cable ties do not automatically improve the design: placement and tightness must suit the cable, connector and installation.

Conceptual top view of a low-voltage enclosure with a cable route around an obstruction, supports, service slack and space to unplug the PCB connector.
Conceptual harness layout for a hypothetical low-voltage enclosure, shown from above with its lid removed. Reserve connector access, a clear route, service slack and cable supports. No Gomicron hardware or measured dimensions are shown.

Separate fixed wiring from moving cable

Mark each section by its actual use. A cable fixed inside an enclosure, one disturbed occasionally during servicing and one flexed on every machine cycle face different requirements. A flexible-feeling cable is not evidence that it suits repeated motion.

igus distinguishes fixed, occasional-flex and continuous-carrier conditions in its bend-radius guidance. The applicable limit depends on the selected cable and conditions such as temperature and travel. There is no universal bend radius. Use the cable’s specification for the real installation, including the motion and temperature conditions.

If a cable moves during operation

Define the complete movement envelope, including travel extremes and intermediate positions. Identify bending, twisting and any change in support. Check the cable with the proposed carrier or guidance arrangement, not as a loose sample on a bench.

In its cable-carrier installation guidance, igus discusses clearance, separation, jacket interaction, freedom of movement and strain relief. Those details depend on the selected system. A carrier cannot be treated simply as an empty channel to fill tightly.

Specify the movement conditions and evidence required for the next development decision. Record the travel, motion frequency and configuration being evaluated. A brief motion demonstration may expose interference; it does not establish the cable’s service life. Use a reviewed test setup with qualified personnel and protective measures intact.

Make connector access and retention visible

Reserve room to insert the mating part, operate its latch and remove it by the intended method. Include the wire exit, any backshell and the bend that follows. Check access using the actual parts when possible; two connector bodies that mate in isolation may be difficult to join inside the enclosure.

Keep three questions separate:

  • Are the contacts correctly retained inside their housings?
  • Are the two connector halves fully mated and retained?
  • Is the harness supported so external loads are handled as intended?

Molex’s Mini-Fit Jr application specification addresses terminal seating, locking and wire dress, including free wire length near the housing. For the connector actually selected, check the contact, wire and tooling as a compatible set and preserve the space its instructions require.

Define service slack by the task it enables. A removable panel may need enough controlled slack to reach its disconnect point. Extra loose wire also needs somewhere to sit when the panel is closed. Document both states, rather than asking the assembler to find a convenient place for the excess.

A hypothetical removable-panel problem

Consider a low-voltage prototype controller with a sensor mounted on a removable side panel. The electrical drawing correctly connects the sensor to the PCB. During the first fit check, the panel can be closed, but opening it pulls the cable tight before the connector latch becomes accessible.

The team now has a specific design question: how far must the panel move before the connector can be released? The review compares the required opening distance with the available cable movement, then considers a defined slack pocket, revised support locations or a different removal sequence. Each option must also fit when the panel is closed and respect the selected cable’s bending requirements.

For the next prototype, acceptance should include opening the panel by the intended procedure, reaching and releasing the connector, and closing the assembly without trapping the harness. Record the route and support arrangement used.

Prepare a build record another person can use

Keep the harness package proportional to the prototype. A short drawing set can be sufficient if it removes the important ambiguities. A useful starting package includes:

  • A connection map with endpoint identifiers, pin references and viewing orientation
  • A parts list identifying the selected wire, contacts, housings and accessories
  • Lengths and branch locations, with defined measurement references and permitted variation
  • A route sketch showing support, pass-throughs, service slack and keep-out areas
  • The assembly sequence and connector-manufacturer instructions that apply
  • A unit or harness identifier linking the actual build to inspection and test records

Record substitutions and rework against the actual assembly. A changed cable construction can require another routing or motion review even if the endpoints remain identical. Our prototype revision checklist explains how to keep those as-built changes connected to the design files and subsequent tests.

Agree what the prototype must prove

Review physical fit and electrical function separately. Before energizing a new assembly, use the project’s approved inspection and connection-verification procedure. The method and test limits must suit the actual circuit, attached electronics and components; do not borrow test voltages from an unrelated harness standard.

For the mechanical review, record whether the harness follows the defined route, the connectors can be fully engaged and released, the cover closes correctly, and the specified service operation is possible. For a moving section, record the tested travel and configuration, the observed behavior and any damage or interference. Preserve failures as well as successful checks.

End the review with a clear decision: which configuration is accepted for the next build, what remains unresolved and which changes require another check. An initial continuity result does not establish long-term flex durability, just as an attractive route photograph does not establish electrical correctness.

When discussing custom electronics and hardware development with MakersGround, bring the enclosure model, connection map, selected component documents and the service tasks the product must support. Include harness routing in the agreed deliverables before ordering the next prototype. That gives the mechanical and electronics work a shared, testable assembly target.

Sources

Technical sources and linked project evidence checked 18 October 2026. Manufacturer examples apply to their stated product families and conditions. The project link establishes Gomicron’s multidisciplinary scope; it does not document the harness practices discussed here. The checklist is an original planning recommendation and the panel example is hypothetical. Product-specific design and test procedures require their own engineering review.

UART Packet Framing: Recover After a Dropped Byte

by mhmd bakri

A practical UART receiver design for discarding incomplete packets, finding fresh boundaries and testing recovery after a dropped byte.

A UART receiver can deliver correctly timed bytes while the application loses its place in a packet. If one byte disappears from a fixed-length message, a parser that simply counts bytes can consume the start of the next message as the end of the damaged one.

The receiver needs a defined way to discard an incomplete candidate and find a fresh boundary. For a device team preparing a prototype for deployment, this belongs in the protocol specification and acceptance tests, before recovery depends on restarting the product.

Separate UART errors from packet errors

UART character framing and application packet framing solve different problems. In Microchip’s ATmega328PB receiver documentation, the frame-error flag reports an incorrect stop bit; a separate overrun flag reports loss caused by a full hardware receive buffer. Check the equivalent behavior in your MCU’s documentation.

A byte lost later in a software queue does not necessarily produce either hardware flag. Keep hardware error counters, software overflow counters and parser rejection counters separate. If the driver reports a receive discontinuity, invalidate the current candidate and resume boundary searching, following the device-specific procedure for clearing hardware errors.

Give each framing mechanism one job

A length field tells the receiver how much data to expect once it has found the correct header. It does not, by itself, identify that header after bytes disappear. The Protobuf streaming guidance recommends prefixing message sizes because its wire format is not self-delimiting. A length-prefixed stream still needs a recovery strategy when its transport can lose bytes.

Keep these responsibilities explicit:

  • Delimiter: marks a place where a new frame can start.
  • Escaping: prevents a delimiter value inside the body from looking like a boundary.
  • Length validation: checks that the decoded body has the specified size, within a fixed maximum.
  • Integrity check: detects covered corruption, subject to the chosen algorithm’s limits.
  • Timeout: releases an unfinished candidate when its permitted reception window expires.

RFC 1055’s SLIP description illustrates the distinction: it defines packet boundaries and escaping, but provides no error-detection mechanism of its own.

A small hypothetical packet format

Consider a binary-transparent UART link with software flow control disabled. Our example uses 0x7E before and after every frame. Inside those delimiters, 0x7E becomes 0x7D 0x5E, and 0x7D becomes 0x7D 0x5D. Escape the entire body, including the check bytes.

This borrows the octet-escaping pattern described in RFC 1662. It is a custom teaching example, not an implementation of PPP. Its decoded body contains:

  1. One version byte and one message-type byte.
  2. A two-byte, little-endian payload length, limited to 256 bytes.
  3. The payload.
  4. A two-byte CRC covering the header and payload before escaping.

For this example, specify CRC-16/IBM-SDLC completely: polynomial 0x1021, initial value 0xFFFF, reflected input and output, final XOR 0xFFFF, transmitted low byte first. Applying those parameters to ASCII 123456789 gives 0x906E, verified with the executable example fixture. A label such as “CRC-16” alone leaves too much room for incompatible implementations.

The maximum decoded body is 262 bytes. Since each body byte can expand to two wire bytes, a complete encoded frame requires at most 526 bytes, including its two delimiters. These are calculated limits for the hypothetical format, not product measurements.

Make the receiver discard deliberately

Use three states: waiting for a delimiter, collecting a candidate, and discarding until a delimiter. Check for a raw 0x7E before interpreting escape state. It closes the current candidate and establishes a fresh starting boundary. Consecutive delimiters represent empty candidates and can be ignored.

While collecting, decode only the two permitted escape sequences. An unsupported escape, too many encoded bytes or more than 262 decoded bytes moves the parser into discard mode. A delimiter arriving immediately after an escape rejects that candidate rather than becoming payload.

At the closing delimiter, require a supported version and message type, a permitted length, an exact decoded size of six bytes plus that length, and a matching CRC. Only then pass the payload onward. Keep candidate data away from command handlers until every check passes.

Hypothetical UART test: frame A loses one payload byte and fails its length check; the next complete frame B passes length and CRC checks.
Hypothetical receiver example. A dropped payload byte leaves frame A shorter than its declared length, so it is discarded. An intact opening delimiter starts frame B, which is accepted after length and CRC checks. Decoded body fields are shown; escaping is omitted.

In the illustrated hypothetical test, frame A declares three payload bytes, but one is removed before the parser receives it. Its decoded body is eight bytes instead of nine, so the closing delimiter triggers rejection. The next opening delimiter starts clean collection; intact frame B passes its size and CRC checks. Nothing from frame A reaches the application.

Bound waiting as well as memory

A maximum length prevents unbounded buffering. Add an encoded-body limit of 524 bytes so malformed input cannot keep consuming work inside one candidate. After rejection, scan for a delimiter without retaining the discarded bytes.

Also define a total candidate deadline, starting with the first body byte. An inter-byte timeout alone can be kept alive by a slow trickle. Choose both limits from the allowed sender pauses, transport buffering and receiver scheduling, and check elapsed time even when no new byte arrives.

For illustration, at 115200 baud with 8N1, each byte occupies ten bit periods. The maximum 526-byte frame takes about 45.7 milliseconds of continuous transmission. That calculation excludes gaps and processing delays, so it is a baseline for choosing a deadline, not a recommended timeout.

Recovery has a condition: after corruption stops, the receiver must encounter an intact opening delimiter followed by a complete valid frame within its limits. If delimiters are also lost, more data may be discarded. If the sender stops, the deadline clears the candidate; it cannot create a replacement packet.

Test the damaged stream and the next packet

Feed the parser reproducible byte streams independently of the UART driver. For each mutation, append a known valid frame and check both rejection behavior and subsequent delivery.

  • Delete a payload byte and verify the illustrated length rejection.
  • Change a payload byte without changing the length or CRC and verify CRC rejection for that fixture.
  • Split an escaped byte across two receive callbacks. It must decode normally.
  • Supply an invalid escape, oversized length, truncated body and unsupported message type.
  • Expire the total deadline during a slow trickle, then send a fresh frame.
  • Remove or insert delimiters and document which candidates are discarded. Do not assume every fault loses exactly one frame.

Run additional tests through the real driver for buffer wraparound, queue overflow and delayed servicing. Record the input, expected accepted payloads and rejection reason. A CRC does not guarantee detection of every possible corruption and provides no sender authentication. Sequence numbers, acknowledgments, duplicate suppression and safe retry rules are separate design decisions, particularly for commands that move machinery.

Include recovery in the product specification

A useful firmware acceptance criterion is concrete: after a specified stream fault, the device rejects the damaged candidate, stays within memory and timing limits, and accepts a subsequent valid packet under documented conditions.

Our Gomicron project spans mechanical design, PCB electronics, firmware and control, slicing software, prototyping and manufacturing. That work is relevant to the coordination required across a physical product. The UART format and tests here are hypothetical and are not claims about Gomicron’s protocol or test results.

Include interface recovery in the hardware and firmware development scope. The handover should contain the packet format, buffer and timing limits, replayable fault fixtures, and the exact accepted and rejected packet sequence expected for each fixture.

Technical sources checked on November 11, 2026. The packet format, calculated limits and receiver examples are educational, not Gomicron design details or hardware measurements.

Testing Positioning Repeatability in a Prototype Machine

by mhmd bakri

A practical guide to separating homing, repeatability and positioning error, with an acceptance record for a prototype motion axis.

Positioning acceptance needs independent measurements of error at the working point and the spread of repeated returns, alongside a separate check of the homing reference. Agree the required performance and test conditions first, then preserve the readings that support the decision.

A prototype axis completes its home cycle, moves to a coordinate, and reports that it has arrived. That is a useful demonstration. Before accepting the machine for a real task, a buyer needs another answer: where did the working point actually finish, and how consistently can it return there?

Those questions belong in a positioning acceptance test. The evidence should connect the intended application to measured behavior, with a clear record of the machine configuration and test conditions. A smooth demonstration or a finely divided position display cannot provide that connection on its own.

Separate the reference, the error, and the spread

Homing establishes a reference for the controller. In LinuxCNC, for example, homing sets the machine-coordinate origin, and software travel limits are defined relative to it. The documentation also explains that the repeatability of that origin depends on the home switch or index mechanism. This is a documented controller example, not a statement about the controller used in any particular project. LinuxCNC: Homing Configuration.

A repeatable home reference does not establish accurate positioning throughout the working travel. The machine can establish the same origin each time and still miss a distant target because of mechanical or geometric errors. Conversely, an axis might return consistently to a target during one session while its reference changes between home cycles.

Keep three observations separate: displacement after repeated homing, measured error from the intended target, and the spread of repeated arrivals. A tight group of arrivals can be consistently displaced from the target. Aerotech’s engineering reference distinguishes repeatability from accuracy and warns that theoretical resolution can exceed practical movement resolution. More command increments do not automatically produce more dependable motion. Aerotech: Engineering Reference Guide.

Write the acceptance question before the sequence

Start with the operation the buyer needs to perform. Where must the tool, fixture, or carried part arrive? Which positions matter? What payload and mounting arrangement will be present? Is the relevant result a settled endpoint, motion along a path, or both? An endpoint test should not quietly become evidence for path accuracy.

Agree the acceptable target error and return spread before collecting measurements. Choose the tested positions, cycle count, approach distances, and settling rule to suit the application and its consequences. There is no universal tolerance or number of repetitions that makes every prototype acceptable. A short trial provides evidence about its observed conditions, not a guarantee about every future cycle.

The configuration record should identify the machine revision and the control settings that influence the test. Mechanical changes and control changes can both affect the result. The hardware–firmware interface checklist provides a related way to review the boundary between physical signals and control behavior before interpreting an unexpected measurement.

Measure the working point independently

The displayed coordinate is part of the control system’s account of the movement. Acceptance evidence needs a suitable measurement of the physical result. Depending on the required travel and uncertainty, the setup might use an indicator, a calibrated length reference, or another appropriate displacement measurement method. These are possible methods, not claims about equipment used by MakersGround or Gomicron.

Document where the measurement is taken and how the instrument is mounted. A reading at the carriage may not represent the position of a tool mounted some distance away. Angular movement and the separation between the measurement line and working point can matter. Renishaw discusses this distinction when explaining why an internal scale’s location can differ from the application’s point of interest. Renishaw: Why use an interferometric laser encoder?

Record instrument identity, resolution, calibration status, alignment, and known uncertainty limitations. A display with enough decimal places is not proof that the complete measurement setup can resolve the acceptance decision. If the observed result sits too close to a limit for the available measurement confidence, keep the decision open and improve the evidence.

Conceptual linear axis with motor, carriage and working point measured against an independent reference, with approach arrows from both directions.
Conceptual single-axis setup: compare arrival at the working point with an independent reference, approaching the target from both directions. Illustration only; no measured results or Gomicron hardware are shown.

A hypothetical axis exposes different problems

Consider a hypothetical linear axis carrying a fixture. Begin by repeating its approved homing sequence from several permitted starting positions. After each cycle, measure the same reference location using the same documented approach. Keep each reading and starting position. This checks the combined return-to-reference behavior under that procedure; it does not isolate the switch from every other contributor.

Next, home once and visit selected working positions without rehoming between every move. Measure arrivals approached from each direction, keeping the direction labels. This helps separate within-session positioning behavior from variation introduced by repeated homing. Preserve the approach distance, movement settings, and settling rule so that a later comparison is meaningful.

If arrivals from one direction cluster separately from arrivals from the other, investigate reversal-dependent behavior. Backlash and elastic effects are possible contributors, but the pattern alone does not identify a failed component. Aerotech explains that one-direction repeatability omits reversal effects and that mounting and loading can contribute additional positioning errors. Test the explanation before changing compensation settings.

Repeat the relevant sequence with the representative fixture and payload, recording their placement as well as their mass. Keep any unloaded comparison clearly labeled. A result from an empty carriage should not be silently substituted for evidence about the assembled working configuration.

Make the result reproducible on paper

Retain the raw readings, target positions, approach directions, cycle numbers, and any faults or interrupted moves. Report signed target error separately from the observed maximum-minus-minimum arrival spread. State exactly how each reported quantity was calculated. Combining directions or positions into one favorable number can hide the behavior the buyer needs to understand.

Newport demonstrates that different collection methods and calculations can produce different repeatability values from the same setup. Its paper highlights direction, sample count, sampled travel, and settling conditions. That makes the method part of the result. A project-specific range calculation should not be presented as an ISO-standard test without actually following the applicable procedure. Newport: Specifications don’t always tell the whole story.

Package the results with a setup photograph or drawing, configuration identifier, instrument record, test date, agreed limits, and a disposition for exceptions. Renishaw’s calibration documentation illustrates the importance of recording method, traceability, uncertainty, and results. Those documentation principles do not transfer Renishaw’s certifications to a prototype. Renishaw: Calibration product quality and conformance.

Accept a defined configuration and scope

Travel-boundary behavior deserves its own recorded check using the machine’s approved commissioning procedure. Distinguish software limits, limit-switch positions, and physical clearance. Do not demonstrate a boundary by deliberately crashing into a hard stop or defeating protective functions. A positioning test is not a safety certification.

When a revision changes the assembly or motion settings, review which evidence remains applicable. The hardware prototype revision checklist can help connect the revised build to the checks that need repeating. Keep the accepted configuration identifiable rather than treating the original demonstration as permanent evidence.

The Gomicron project provides context for connected mechanical, PCB/electronics, firmware/control, slicing, prototyping, and manufacturing work. The hypothetical test here is a proposed acceptance framework, not a report of Gomicron’s tests, equipment, or results.

The useful outcome is a bounded statement: this configuration met these agreed positioning criteria at these locations, under these conditions, using this measurement method. That gives a buyer something concrete to review without implying untested full-volume accuracy, endurance, or production capability.

Sources checked

Primary sources linked above were opened and checked on 17 October 2026. Newport’s manufacturer-hosted paper was originally published in August 2003. The examples and proposed evidence package are hypothetical; no universal tolerances, sample counts, or certification claims are implied.

Connector Pinout Review: Prevent Mirrored Wiring Before Assembly

by mhmd bakri

Prevent mirrored wiring by identifying the connector view, tracing cavity numbers through the design and checking every intended connection before first power.

A connector can fit, latch and still carry the wrong signals. One avoidable cause is a pinout copied from a mating-face drawing while the assembler is looking at the wire-entry side. The numbered cavities have not changed, but their apparent left-to-right order has.

Before releasing a cable assembly, connect three records: the manufacturer’s physical cavity numbering, the circuit’s signal assignment and the assembly’s end-to-end wiring table. Then verify a first assembly without power. This guide covers that review for low-voltage prototypes, using a hypothetical connector rather than a production pinout.

Start with the exact connector and its drawing

“Six-pin connector” is not enough identification. Record the manufacturer, full housing and mating-part numbers, contact part number and drawing revision. Confirm the polarization variant as well as the contact count. Similar housings can have different keys, terminals or permitted mates.

Find the manufacturer’s circuit-one reference before assigning signals. For example, note 10 in Molex drawing SD-45587-001, revision D, identifies a rib as the circuit-one marker. That statement belongs to the depicted special-polarization Mini-Fit Jr. housings. It does not establish that every rib on every connector identifies pin one.

Compare the drawing with the actual part under adequate light. Look for molded cavity numbers, the specified marker, latch and key features. If a mark is unreadable or the part does not match the drawing, resolve that discrepancy before building the wiring instruction. A catalog photograph alone should not decide the numbering.

Write the viewing direction beside every pin map

The mating face is the side that meets the other connector. The wire-entry side is the rear where wires enter the housing. A PCB mounting view is another reference and must be interpreted using the drawing’s projection and view labels. “Front view” is too vague unless the document defines front.

Use a caption such as “P1 cable housing, viewed into the disconnected mating face, latch at top.” For the assembly view, explicitly name the wire-entry side and retain a visible orientation feature. Do this for both cable ends. The Omnetics High Speed Digital Connector catalog provides a useful manufacturer example: its USB circular connector pinout drawings on printed page 7 identify the plug and socket and explicitly state the mating-face viewpoint. Those pin arrangements apply to the listed products, not a generic circular connector.

For a simple straight-through housing, walking around to the opposite side while keeping the same top edge up reverses the apparent horizontal order. The cavity identities stay fixed. Do not apply an automatic mirror operation to every connector image: right-angle terminals, alternate key positions and different projections require the actual drawing.

Illustrative six-cavity housing viewed from its mating face and wire-entry side with the latch kept at top. Cavity one appears at upper left from the mating face and upper right from the rear; its identity does not change.
Illustration only: two views of the same hypothetical straight-through six-cavity housing, with the latch kept at top. Cavity numbers stay with the physical positions as the viewpoint changes. This is not a manufacturer pinout or a MakersGround project drawing.

Separate cavity numbers from signal names

The housing drawing tells you where a numbered contact is. The schematic tells you what that contact does in your product. A third record must connect the two ends of the assembly. Keep all three visible during review.

For each conductor, record the source reference and cavity, destination reference and cavity, signal name and wire identifier. Add wire specification and assembly requirements in the appropriate drawing fields. Color can help an assembler follow the table, but it should not be the only identifier or the authority for an electrical function.

Trace one connection across the schematic symbol, PCB footprint and physical connector. A schematic symbol can be rearranged for readability, so its drawn left-to-right order is not a housing map. Check that the symbol pin number reaches the intended footprint pad and the manufacturer’s corresponding terminal. Repeat for every used position, including grounds.

A cable is not necessarily pin-one-to-pin-one. Different connectors or interface requirements may intentionally change the destination number. State the actual mapping rather than calling the assembly “straight” or “crossed” without a table.

A hypothetical supply wire in the wrong cavity

Suppose a low-voltage sensor cable uses the illustrative P1 housing above. The design assigns P1 cavity 1 to +5 V, cavity 2 to return and cavity 3 to a signal. The far end uses P2 with its own independently verified numbering.

Connection Intended mapping Example mirror error
+5 V supply P1 cavity 1 to P2 cavity 4 Inserted into P1 cavity 3
Return P1 cavity 2 to P2 cavity 2 Still in P1 cavity 2
Signal P1 cavity 3 to P2 cavity 1 Inserted into P1 cavity 1

If the assembler copies the mating-face picture while loading wires from the rear, the two outer positions can be exchanged while the center position remains correct. A return-only check would miss this error. Depending on the circuit, applying power could put the supply on a signal input. This example is invented to explain the failure mechanism; its assignments must not be used to wire a real product.

Check intended connections and unintended connections

Test the cable separately from the electronics where practical. De-energize and isolate it from supplies, batteries and connected devices. Follow the equipment’s procedure for stored energy before touching conductors. Fluke’s continuity-testing guide specifies testing a de-energized circuit with the component isolated from other components. Parallel paths through an attached board can otherwise obscure what the cable itself connects.

Use suitable mating fixtures or approved probing contacts. Do not force oversized meter probes into small receptacle contacts. Verify the fixture’s own numbering and wiring before using it as the reference. A fixture copied from the same mistaken view can repeat the assembly error.

For each source cavity, verify its intended destination. Then check the connections that must remain separate, using a complete test matrix for the assembly. Include unused cavities, shields and intentional common connections in the documented expectations. An open unused cavity is different from a conductor intentionally tied to a shared return.

Record measured resistance where the acceptance plan requires it. A continuity beep depends on the instrument’s threshold; it does not establish acceptable contact resistance or current-carrying performance. Set acceptance limits from the assembly design and chosen measurement method, accounting for test leads and fixtures. Do not borrow a meter’s beep threshold as the cable’s quality limit.

Confirm the installed interface before first power

After the isolated cable passes, check that each end mates with the intended board connector and that the released board matches the wiring record. Confirm supply polarity and signal destinations at accessible points using an approved unpowered method. Plan those connections early through the PCB test-access review.

A wiring check does not qualify the crimp, insulation, shielding, current rating or behavior under motion. Those need their own acceptance methods. First powered operation also needs a separate, reviewed procedure with appropriate protection; a passed continuity test is not permission to energize unknown wiring.

Release a pinout that another person can build

Ask a reviewer to follow the package using the actual parts, without an oral explanation from its author. The release record should answer these questions:

  • Are the exact housings, mates, contacts and drawing revisions identified?
  • Does every numbered view name its side and show an orientation feature?
  • Do symbol pins, footprint pads and physical cavities agree?
  • Does the wiring table identify every conductor and intentional common connection?
  • Are required connections and prohibited connections covered by the test record?
  • Can the inspected assembly be matched to its drawing revision?

Keep an annotated photograph of the verified first assembly alongside the drawing, with the connector reference and view identified. Use it as supporting evidence, not a substitute for the controlled pinout. Recheck affected mappings after a connector substitution, footprint change or harness revision.

MakersGround’s public Gomicron project record documents work across PCB electronics, firmware and control, and mechanical design. That combined scope makes interface clarity relevant to a complete product. The record does not establish that this particular review or test procedure was used on Gomicron.

When commissioning hardware and embedded development, ask for the connector drawing, end-to-end wiring table and first-assembly test record together. The useful handover is a pinout that can be built, inspected and traced to the correct revision without guessing which side of the connector someone meant.

Sources

Technical sources and linked MakersGround pages checked 8 November 2026. Manufacturer examples are limited to the products and documents identified above. The review sequence and hypothetical example are original explanatory guidance.

Tolerance Stack-Up Before Prototyping: Check the Clearance

by mhmd bakri

Check whether nominal CAD clearance survives part variation, using a worked axial tolerance stack-up, supplier questions and a prototype inspection checklist.

A housing can show a 0.50 mm clearance in CAD and still miss its assembly requirement when every component is within its drawing limits. The missing check is the dimensional chain between the two surfaces that define the gap.

Before ordering a prototype assembly, a tolerance stack-up helps answer a practical question: how much clearance remains when the contributing dimensions vary? It also shows which dimensions deserve closer control and which can stay relatively loose.

When separate suppliers make the housing, spacer and internal parts, they need a shared assembly requirement to review before fabrication. A clear section view, a short dimensional chain and an inspection plan can expose a problem that a nominal CAD assembly leaves hidden.

Define the gap and its acceptable range

Start with the two functional surfaces. Name the direction of measurement and the assembly condition: cover seated, cartridge against its stop, fasteners installed, or mechanism at a specified position. “Check the clearance” is too vague if different people can measure different gaps.

Then record the allowable range. A minimum gap may be needed to prevent contact. A maximum may matter for movement, alignment or a neighboring interface. The limits must come from the product’s requirements. A positive gap alone does not establish that the assembly works.

Keep three numbers separate:

  • Nominal dimension: the value used to define the intended geometry.
  • Part limits: the smallest and largest permitted values for each contributing dimension.
  • Assembly limits: the acceptable range for the resulting gap.

Worst-case analysis combines part limits to find the extreme assembly values within the model. It does not estimate how often those combinations occur. PTC’s explanation of tolerance stack-up methods makes this distinction explicit.

Follow the surfaces that locate the parts

Draw a section through the gap and trace a continuous dimensional chain. Follow the shoulders, seats and contact faces that actually locate each component. A convenient CAD origin may have no physical equivalent during assembly or inspection.

Choose a functional reference that the design and inspection method can reproduce. A datum plane is an ideal reference established from a physical datum feature; the real surface can have form variation. KEYENCE’s datum examples illustrate that distinction. For a simple axial check, the base shoulder supporting the stack may be the useful starting reference.

Give every dimension a sign: does increasing it open the gap or consume it? Include only the dimensions on that chain. If the distance to a cover’s inner face is already controlled directly, adding the cover thickness again would double-count it.

Flag unresolved inputs rather than entering zero. Ask whether the dimensions describe finished surfaces, whether a coating sits in the contact path, and whether a spacer is supplied to a stated tolerance. An unknown contribution is a question for the drawing or supplier review.

A hypothetical axial-clearance example

Consider a stationary cartridge, spacer and top plate stacked against a housing’s base shoulder, reference A. The cover seats on the housing independently of that stack. The gap G is measured from the top plate to the cover’s inner face.

This teaching example assumes rigid parts, parallel faces and complete seating along one axis. All dimensions and the required gap are hypothetical, in millimeters:

  • H, base shoulder to seated cover inner face: 30.00 ±0.10, giving limits of 29.90 to 30.10.
  • B, cartridge height: 18.00 ±0.08, giving limits of 17.92 to 18.08.
  • S, spacer height: 8.00 +0.10/-0.05, giving limits of 7.95 to 8.10.
  • P, top-plate thickness: 3.50 ±0.05, giving limits of 3.45 to 3.55.
  • Required gap G: 0.20 to 0.80.
Not-to-scale axial stack with cartridge B, spacer S and top plate P seated on reference A beneath a fully seated cover. Gap G equals H minus B, S and P. A range comparison shows the calculated gap of 0.17 to 0.78 mm against the required 0.20 to 0.80 mm, with only the lower end outside the requirement.
Hypothetical axial-clearance stack, not to scale. With the cover fully seated, G = H − B − S − P. The nominal gap is 0.50 mm, but the worst-case range is 0.17 to 0.78 mm, missing the illustrative 0.20 mm minimum by 0.03 mm. All lengths are in mm; rigid parts and parallel faces are assumed.

Calculate both ends of the interval

The signed chain is G = H – B – S – P.

At nominal dimensions, G = 30.00 – 18.00 – 8.00 – 3.50 = 0.50 mm, comfortably inside the required range.

For the minimum gap, use the smallest permitted base-to-cover dimension H and the largest internal stack:

G minimum = 29.90 – 18.08 – 8.10 – 3.55 = 0.17 mm.

For the maximum gap, use the largest permitted H and the smallest internal stack:

G maximum = 30.10 – 17.92 – 7.95 – 3.45 = 0.78 mm.

The minimum misses the 0.20 mm requirement by 0.03 mm. The asymmetric spacer tolerance also means the gap interval is not centered on its nominal value. Converting every input to explicit lower and upper limits keeps that detail visible.

Compare a nominal change with a tolerance change

Reducing the spacer nominal to 7.90 mm, with the same +0.10/-0.05 tolerance, moves the gap interval to 0.27 to 0.88 mm. It fixes the minimum but fails the maximum. In fact, the original interval is 0.61 mm wide and the permitted band is only 0.60 mm wide. A nominal shift alone cannot fit the whole interval inside it.

Keeping the spacer at 8.00 mm and changing its tolerance to ±0.03 mm produces a gap interval of 0.24 to 0.76 mm. That satisfies this simplified calculation, with 0.04 mm margin at each end. Whether it is a sensible design change depends on how the spacer will be made and measured.

Choose the analysis method deliberately

For an early prototype with little process data, the worst-case calculation is a useful starting point. It exposes permitted combinations that miss the requirement without assuming a production distribution.

Statistical analysis asks a different question: what distribution of assembly results follows from the distributions of the contributing dimensions? Root-sum-square, or RSS, is one approach. Sigmetrix describes the distinction between limits and statistical variation, including assumptions behind conventional RSS analysis.

A drawing tolerance is not automatically a measured standard deviation. Using tolerance half-widths in an RSS calculation requires a justified relationship between those limits and process variation. Distribution shape, centering and dependence between dimensions also matter. Shared process effects can make dimensions vary together, so they cannot simply be assumed independent. NIST’s propagation guidance explains why covariance can change a combined variation estimate.

Do not replace a failing worst-case result with a smaller RSS number just to release the drawing. First establish the process evidence, the acceptable assembly risk and the assumptions the team is willing to use.

Ask the supplier about the controlling dimensions

The example identifies the spacer as one possible place to recover margin. Send the supplier the functional section and identify the dimensions that consume the gap budget.

For this one-to-one chain, the full tolerance widths add to 0.61 mm: H contributes 0.20 mm, B 0.16 mm, S 0.15 mm and P 0.10 mm. Compare these contributions with the cost of controlling each feature before choosing a change.

Ask whether the proposed limits are achievable with the selected material, process, finish and quantity. Clarify whether inspection happens before or after finishing and whether additional operations or inspection time are needed. A different locating arrangement or fewer components in the chain may be worth comparing with a tighter part tolerance.

Separate a supplier’s quoted capability from evidence about the actual process. NIST describes process capability as a comparison between a stable process and specification limits. One prototype that fits is useful assembly evidence, but it does not establish the distribution of later parts.

Plan how the first parts will be checked

For each controlling dimension, write down the measurement reference, method and part condition. For the example, H must be checked with the cover seated on its intended housing stops. Measuring an external enclosure height would answer a different question.

Check the contributing dimensions and the assembled gap where accessible. If they disagree with the predicted chain, investigate the seating condition and model before changing a nominal dimension. Record burr removal, extra shims or hand fitting; otherwise the apparent success may depend on work absent from the next build instructions.

Measurement uncertainty also matters near an acceptance limit. NIST’s dimensional-calibration guidance explains that a measurement is an estimate with uncertainty. Select an inspection method that can support the decision, and agree how borderline results will be handled. A digital readout with several decimal places is insufficient evidence on its own.

Review the geometry beyond one axis

A passing axial chain leaves other questions open: can the parts tilt, do the locating holes align, and can surface form or assembly load change the local gap? Angular and nonparallel contributions do not necessarily affect clearance in a one-to-one ratio, as Sigmetrix explains in its stack-up overview.

Use the simple calculation to identify what needs a deeper geometric review. Where relevant, extend the model to geometric tolerances, contact behavior, deformation or operating temperature rather than treating the one-dimensional result as proof of the complete assembly.

Keep fit decisions connected to product development

Our Gomicron project brought together mechanical design, PCB electronics, firmware and control, slicing software, prototyping and manufacturing. In an integrated product, changing a locating surface can affect sensor placement, cable clearance or assembly access. Review those interfaces whenever a fit change moves a neighboring part.

For teams using our hardware, robotics and product-development services, the useful handoff is a reviewable fit requirement alongside the design files. It gives the mechanical, fabrication and assembly teams a specific result to check.

Before releasing the prototype parts

  • Name the gap, its two defining surfaces and the assembly condition.
  • Set the required minimum and maximum from the product’s needs.
  • Trace the signed dimensional chain from a reproducible reference.
  • Record every lower and upper limit, including asymmetric tolerances.
  • Calculate both extremes and compare them with both assembly limits.
  • Review unresolved geometry, finishing and seating contributions.
  • Confirm manufacturing and inspection plans for the controlling dimensions.
  • Measure the first build and record any fitting or adjustment it required.

The release decision should leave the team with a clear answer: which combinations of permitted dimensions work, what margin remains, and which assumptions the first build still needs to test.

Technical sources and linked project information checked on October 19, 2026 and rechecked on November 5, 2026.

Battery Runtime: Measure the Whole Duty Cycle

by mhmd bakri

Build a battery runtime estimate from complete-device current traces, realistic operating cycles and usable capacity, with a worked hypothetical retry example.

A credible battery runtime estimate starts with the current drawn by the complete device over a representative operating cycle. Measure sleeping, sensing, processing, communicating and recovery activity at the battery input, then relate that demand to usable battery capacity under the intended conditions. A processor’s sleep specification or a battery’s headline capacity cannot answer the runtime question alone.

For a connected prototype, the practical decision is whether its enclosure, power circuit and firmware can deliver the required service interval together. The following method produces an auditable estimate and a test plan before anyone turns that estimate into a product promise.

Define the service the battery must support

Write the operating requirement before selecting a capacity. “Runs for three months” needs a measurement interval, reporting frequency, communication conditions and a clear endpoint. Does the device stop when its supply reaches a defined voltage, when a reset occurs, or when it can no longer deliver a valid measurement?

  • Specify the normal workload: sensor rate, processing, radio activity, indicators and user interactions.
  • Define the supported environment and battery condition at installation.
  • Include expected maintenance, startup, reconnection and update events.
  • Set separate limits for average consumption and correct operation during the largest current pulse.

Keep measurement availability in the requirement. Extending sleep is not an improvement if the product then misses the event it was designed to capture.

Measure at one clearly defined boundary

Prefer a measurement of the complete board at its battery input for the first system budget. Label that boundary in the schematic and test record. It should include the regulators, sensors and other loads that the battery actually supplies. An isolated microcontroller rail answers a different question.

If measurements are made on regulated output rails instead, convert their power demand to battery demand using the relevant input voltage and conversion efficiency. Do not simply add currents from rails at different voltages. Equally, do not add regulator losses a second time when the recorded current already comes from the battery input.

Texas Instruments explains why converter selection must consider the load profile and efficiency during both active and inactive periods. Peak efficiency at a large load does not describe operation while the device spends most of its time asleep. Check the selected regulator’s light-load behavior, quiescent current and shutdown conditions, rather than treating those terms as interchangeable. TI’s pulsed-load converter application report provides the underlying distinction.

Use the final peripheral configuration where possible. Record whether debug hardware, USB power, indicator LEDs or an external sensor supply are present. A test powered partly through another cable can omit demand from the battery measurement.

Capture a cycle, then inspect the events inside it

The measuring instrument must resolve low idle current without clipping the larger pulses. Check range, sampling behavior and the voltage disturbance introduced by the setup. Record the actual device supply voltage as well as current when a pulse could approach the system’s operating limit.

Nordic’s hardware verification guidance calls out measurement sensitivity, dynamic range and sample rate, and asks designers to check supply transients during transmission. Its nRF9161 examples are device-specific, not universal current figures for other radios. Read the verification guidance.

A current trace with firmware event markers is useful because it links a burst to work such as sensor warmup, packet delivery or retry. Nordic’s Power Profiler Kit II documentation, for example, describes low-current and short-peak measurements with digital inputs for code correlation. This is an example of the capability to look for, not a claim about MakersGround’s equipment or a recommendation for every voltage and load.

Capture enough complete cycles to expose variation. Then run separate cases for startup, a missing connection, repeated user input and maintenance. Do not hide rare activity inside an unexplained allowance: record how often it is assumed to occur.

A hypothetical one-minute sensing cycle

The following numbers are invented to demonstrate the calculation. They are not measurements from a MakersGround product. Assume the currents are measured at the battery input and remain constant within each listed state.

  • Sleep: 0.10 mA for 58 seconds, consuming 5.8 mA·s.
  • Sense and process: 8 mA for 1.5 seconds, consuming 12 mA·s.
  • Transmit: 40 mA for 0.5 seconds, consuming 20 mA·s.
Hypothetical duty-cycle charge budget comparing a normal one-minute cycle at 0.63 mA average with a two-second retry case at 1.96 mA.
Hypothetical battery-input budget, not measured product data. A 60-second cycle averages 0.63 mA. Replacing two seconds of sleep with an additional 40 mA transmission raises the average to 1.96 mA. The illustrated states are simplified constant-current assumptions.

The durations total 60 seconds. Total charge per cycle is 37.8 mA·s, so average current is 37.8 ÷ 60 = 0.63 mA. For a varying trace, integrate current over the cycle rather than replacing every burst with its peak value.

Now assume, solely for this example, that testing has established 1,200 mAh of usable capacity under the relevant conditions. Dividing 1,200 mAh by 0.63 mA gives approximately 1,905 hours, or 79 days. This is a simplified charge-budget result, not validated calendar runtime. It leaves out effects such as storage loss and changes in demand during discharge unless those are already represented in the assumptions.

One retry changes the result

Suppose every cycle includes an additional two-second transmission at 40 mA, replacing two seconds of sleep. The added charge is (40 − 0.10) × 2 = 79.8 mA·s. The revised cycle consumes 117.6 mA·s and averages 1.96 mA. Under the same simplified capacity assumption, the result falls to about 25.5 days.

The engineering question is now specific: can the expected communication environment sustain the original duty cycle, and what retry limit preserves useful operation? A firmware change that reduces retries may matter more than a small improvement in the sleeping processor alone. The example does not establish what retry policy any real product should use.

Use capacity that belongs to the test conditions

Capacity is not an unconditional number. Energizer defines rated capacity in relation to a specified load, temperature and cutoff voltage. Its definition of cutoff also includes the point below which equipment will not operate or operation is not recommended. See Energizer’s battery glossary.

Obtain the selected cell’s discharge information and match it to the product’s load and endpoint. Energizer’s alkaline handbook illustrates how temperature, discharge rate, internal resistance and cutoff affect accessible service. Those curves describe alkaline batteries; do not transfer their numerical values to a rechargeable lithium pack or a coin cell. See the alkaline handbook.

Repeat the current budget at representative battery voltages; a regulated load can draw a different input current as the battery discharges. Repeat system checks near the intended end of discharge. A device may meet an average-current budget but still reset during a transmission pulse. Define the permitted voltage range from the actual components and battery guidance. Do not lower a battery’s specified cutoff or defeat its protection to meet a runtime target.

Make the prototype review reproducible

Attach a compact evidence record to the hardware revision:

  1. Configuration: board revision, firmware version, peripherals, radio settings and battery specification.
  2. Conditions: supply voltage, temperature, communication environment and workload.
  3. Measurement: instrument, range, capture duration, connection diagram and raw trace.
  4. Results: charge per cycle, average current, peak current, minimum supply voltage and successful task completion.
  5. Exceptions: startup, retry and maintenance costs, with their assumed frequency.
  6. Decision: required service interval, evidence still missing and the next test that could change acceptance.

Compare revisions under the same conditions. Keep a changed reporting interval visible rather than presenting it as an unexplained hardware efficiency gain. Before release, run representative complete-device discharge tests; the spreadsheet is a planning tool, not a substitute for that evidence.

Connect the budget to hardware and firmware decisions

Our historical Smart Glasses project record documents MakersGround’s device design, hardware and software work around a connected camera wearable. It does not publish a battery specification or runtime validation result. Its relevance here is the integration boundary: peripherals, communications and software behavior belong in the same engineering conversation.

For a new device, bring that boundary into the hardware and firmware development scope early. The useful output is a traceable budget: what the device does, what each cycle costs, which battery conditions support it and what has been tested. That makes the next decision concrete, whether it is changing a regulator, shortening a sensor warmup, revising a retry policy or selecting a different capacity.

Sources

Technical sources opened and checked on November 3, 2026. Manufacturer examples support the principles identified above; they are not MakersGround test results.

Quadrature Encoder Validation: Prove Counts, Direction and Speed

by mhmd bakri

Verify quadrature encoder scale, direction, input rates and counter boundaries before accepting reported position, with a worked hypothetical count example.

A quadrature encoder can make a position display look convincing while the conversion behind it is wrong. Before using that reading for control or acceptance, verify the number of counts per known shaft movement, the sign of the change and the behavior at the highest required speed. Keep the raw counter visible during those tests. A rounded angle or distance display can hide the fault you need to find.

For a prototype machine, the deliverable is a documented chain from physical movement to reported units. This guide covers incremental A/B feedback and count acquisition. It does not establish machine safety, replace the selected component documentation or prove the accuracy of the complete mechanism.

Write down what one count means

Start with the encoder datasheet rather than a number copied into firmware. Manufacturers do not always use CPR and PPR in the same way. Record the stated number of electrical cycles on one channel per encoder-shaft revolution, then record how the receiver decodes them. In x1 mode, one selected edge per cycle is counted; x2 counts two edges; x4 counts both edges of both A and B. US Digital explains these terminology and decoding distinctions.

Make a small configuration record before the first test:

  • Encoder part number, output interface and datasheet revision.
  • Channel cycles per encoder-shaft revolution, stated without an ambiguous acronym.
  • Decoder mode, input polarity, counter range and any index-reset behavior.
  • Where the encoder is mounted, and the ratio between that shaft and the reported movement.
  • The physical direction defined as positive, including the viewpoint used to describe it.

Do not assume that the motor shaft, encoder shaft and output shaft make the same number of revolutions. A correct counter with the wrong transmission ratio still gives the wrong reported position.

Our historical Gomicron project documents mechanical design, custom electronics, firmware and control within one product. That combined scope is the context for this interface review. The public record does not establish a particular encoder, decoder or validation method used on Gomicron; the tests below are general recommendations.

Prove scale and direction before closing the loop

Begin with controlled, slow movement and an independent way to identify the displacement. Use an appropriate safe test arrangement, with drive torque disabled where the mechanism permits it. Do not hand-turn a hazardous or unsupported load. A qualified machine review must define safe access, restraint and the conditions for powered testing.

Record the starting count, move through a known encoder-shaft rotation, then record the ending count. Compare the change with the expected value before converting it to degrees or millimetres. Repeat in both directions. Keep the raw readings and the reference method, not just a photograph of a plausible display.

Check the sign against actual movement. A-leading-B is not a universal synonym for clockwise: the manufacturer’s viewpoint and wiring convention matter. For example, the Dynapar HS35R manual, revision S dated September 2013, specifies a viewing end and includes reverse phasing. Verify the selected encoder and configured decoder together. Do not discover a sign mismatch by enabling an unverified feedback loop.

Keep channel frequency separate from count rate

Consider a hypothetical encoder specified as 500 A-channel cycles per encoder-shaft revolution. With x4 decoding, one shaft revolution produces 2,000 counts. At 60 rpm, that is one revolution per second: 500 channel cycles per second and 2,000 count transitions per second. These are different quantities.

A and B waveforms show the state sequence 00, 10, 11, 01, 00 over one electrical cycle. Four numbered transitions count in x4 decoding; A’s rising edge alone counts in x1. A separate hypothetical example shows 500 A cycles per encoder-shaft revolution multiplied by four to give 2,000 counts per revolution, or 2,000 counts per second at 60 encoder-shaft rpm.
Conceptual quadrature sequence, not to scale: 00 → 10 → 11 → 01 → 00. In this chosen convention, A leads B. One electrical cycle produces four x4 counts or one x1 count using A’s rising edge. The 500-cycle example is hypothetical, not measured project data; its revolution and rpm values refer to the encoder shaft. Software sign must be verified against physical motion.

At a hypothetical 1,800 rpm, the same encoder produces 15,000 channel cycles per second and 60,000 count transitions per second. The calculation describes the requested signal rate, not the capability of an encoder, input circuit or processor. Confirm which quantity each manufacturer’s maximum-frequency specification describes.

Check the input voltage and electrical interface, minimum accepted pulse widths, phase and duty-cycle limits, and the receiver’s filtering configuration. A filter chosen to suppress short disturbances must still pass legitimate pulses at the intended speed. The Beckhoff EL5112 filter documentation illustrates why this is device-specific: limits depend on input mode, and the terminal exposes filter-violation counters. Its values are not settings to copy into another product.

Repeat the count check using the actual cable, connector, receiver and configured filter. Include representative switching loads and cable routing. A clean signal at the encoder connector does not establish what the controller receives at the other end of the harness.

Test the counter boundary deliberately

A raw counter has a finite range. Record its configured maximum and what happens at the boundary in each direction. The TI eQEP reference guide SPRU790D, revised December 2008, is a historical implementation example: its position counter can wrap from the configured maximum to zero and underflow in reverse. Check the current reference manual for the actual controller rather than assuming identical behavior.

For a hypothetical full-range 16-bit counter, a known forward movement from raw 65,530 to raw 6 crosses zero once and represents 12 counts, provided there are no additional full counter wraps. Ordinary subtraction of those displayed numbers would suggest a large negative change. Test both forward and reverse crossings, including how the application accumulates motion beyond one hardware-counter range.

Do not apply that example as a universal software recipe. A count difference becomes ambiguous if unobserved motion can span too much of the counter range between reads. Specify the allowed speed, longest read interval, configured modulus and direction assumptions. Test the implementation against those limits, including delayed processing and restart behavior.

Use the index as evidence, not a way to erase evidence

If the encoder provides an index channel, record what the controller does with it. An index event may latch a value, reset a counter or participate in a separate reference procedure, depending on the hardware and configuration. TI’s eQEP guide describes latching the position count at index events as a way to inspect accumulated counts.

Where supported, compare counts between equivalent index events during motion in one direction. Preserve the count and diagnostic state before any reset overwrites them. A display that returns to zero on every revolution can conceal the discrepancy that would otherwise identify a missed or extra count.

This is an additional consistency check, not a complete measurement reference. State which index edge and phase qualify the event, and use the selected component documentation. An absent index is not permission to invent one in the test record.

Separate count integrity from mechanical accuracy

Correct counts do not prove that the load reached the intended position. An encoder observes movement at its own mounting location. Coupling slip, backlash or compliance elsewhere in the mechanism can produce output error even when the counter acquires every valid transition. More counts also do not automatically remove systematic measurement error. Dynapar distinguishes resolution, accuracy and system repeatability.

Keep two acceptance questions separate: did the electronics and firmware acquire the expected count, and did the output mechanism move as required? Use a suitable independent physical measurement for the latter. Do not use the same encoder-derived display as both the result and its reference.

Leave a test record another engineer can repeat

Define the pass criteria before testing, including how the chosen reference’s uncertainty or edge alignment affects the comparison. Do not adjust the counts-per-unit constant merely to make one run agree. Investigate an incorrect scale, lost transitions and mechanical error separately.

  1. Establish the baseline. Record hardware and firmware revisions, encoder model, interface, cable and decoder settings. Confirm scale and sign with known slow movement.
  2. Exercise the operating envelope. Repeat the agreed motion in both directions at the required speeds, including starts, reversals and relevant electrical loads. Record expected and observed raw-count changes.
  3. Cross the boundaries. Test overflow, underflow, index handling where present, delayed reads and restart. Preserve diagnostic flags and counters where the selected hardware exposes them.
  4. Check the output separately. Compare actual mechanism movement with an independent reference. Record unresolved differences rather than hiding them in a calibration factor.

The acceptance package should identify the exact configuration, test conditions, reference method, observed counts, physical measurements and remaining gaps. For a custom machine engineering review, that is more useful than a smooth position display: it shows which part of the measurement chain has actually been demonstrated.

Sources and scope

Primary manufacturer documents and the public project record were checked on 31 October 2026. The workflow, numerical examples and conceptual diagram are original explanatory material, not measured MakersGround project results. Device-specific limits must be checked against the selected parts and configuration; the older TI guide is identified as a historical implementation example.