PCBA PARTNER
EN
English中文Deutsch日本語Français
Home / Projects / Portable coffee grinder

Our own product · Design to EVT

Portable coffee grinder PCBA: two boards, no cable between them

A battery coffee grinder we are developing ourselves. We designed the main board, a small USB-C board joined to it by eight spring pins, and the control logic, and checked both boards against the 3D model and the tolerance stack before ordering parts. Rotate the model below.

Portable electric coffee grinder, 3D design model, three-quarter view
Design model, Rev F. Size Ø74 × 218 mm.
Product
Battery coffee grinder with 48 mm conical burrs
Our scope
Enclosure and mechanics, 2 PCBAs, control logic, design review
Status
Design done to Rev F. No prototype has been built yet.

3D design model

Use it before it is built.

Drag to rotate. Press Next to play nine steps of use, from taking the head off to charging. Cut the body open, explode it, or click a part to see what it is.

The brief

Grind 30 g anywhere, then charge over USB-C.

One Ø74 mm aluminium cylinder: three 18650 cells and the motor in the head, a 48 mm conical burr set in the body, the cup at the bottom. One button picks the speed and starts. The grinder stops on its own when the burrs run empty.

The hard part

A charging port in a head that comes off.

You take the head off every time you add beans, so nothing can hang on a cable inside it. The main board has to drive a motor that may stall at 4.5 A, charge three cells and fit in a Ø62 mm circle above the battery.

The electronics

Two PCBAs, both our own design.

  1. Main board

    2 layers, Ø62 mm, all parts on the top side. STM32G030 controller, DRV8874 H-bridge at 20 kHz with its current mirror read for auto-stop and stall detection, IP2326 USB-C charger for the 3-cell pack, battery voltage and temperature, a Hall input that confirms the head is locked, the button and three indicator LEDs.

  2. USB-C board

    15 × 16.2 mm, 1.0 mm thick. The receptacle, ESD protection and the two 5.1 kΩ CC resistors. It is screwed into the head at the back, under the top face.

  3. Spring-pin link

    Eight spring pins on the main board press on gold pads on the USB-C board: power, ground and USB data. There is no cable or connector to fit when the head is assembled.

Main board and USB-C board of the portable coffee grinder, KiCad 3D view
Main board (left) and USB-C board, KiCad 3D view without component models. The eight round pads take the spring pins.

Checked before ordering

We checked the boards against the model and the tolerance stack.

Rule checks pass on both boards, every pin was compared between schematic and layout, and the 3D model's 123 parts have no clashes. Two checks changed the design.

  • The spring pins needed more travel. Our first pin had 1.0 mm of stroke; once solder, board thickness and part tolerances were added up, the stack used it up. We moved to a 1.5 mm stroke pin (YTC1P-3015) and a 3.6 mm board gap. The worst case is now 3.09–4.01 mm against the pin's 3.0–4.5 mm working range.
  • The battery pack set the board height. We modelled the pack at its largest assembled height, 65.9 mm, with 0.5 mm of foam above it, and moved the battery and motor wires to the edge of the deck so nothing runs between the deck and the main board.

Two items are confirmed on samples before the EVT order: the spring pin's base diameter against our footprint, and the battery pack height.

Control logic

Constant speed, and a stop you do not have to press.

  1. Hold the speed

    Hold the button 1.5 s to pick 50, 70 or 90 RPM. Every 10 ms the controller estimates speed from motor voltage and current and adjusts the duty cycle.

  2. Stop when empty

    When the burrs run out of beans the motor current falls to its no-load level and the grinder stops. The thresholds are calibrated on the first prototypes.

  3. Clear a jam

    Above 4.5 A for 300 ms the motor reverses for 0.5 s at no more than 2 A, then tries again. After three failed tries it stops and shows an error.

  4. Refuse to run

    No grinding while charging, without the head locked, or when the battery is too hot.

Use simulation

Nine steps of use, checked in 3D.

Before ordering prototype parts we took the model through each step of use and measured what moves, what touches and how much fits. This is what it found.

StepWhat we foundWhat we changed
Lock the headA solid silicone seam would have needed far more force than a hand can give to turn the bayonet.Microcellular foam seam; push-and-turn force estimated at 28–66 N.
Clear a jamThe short reverse turns the head the unlocking way.A 0.2 mm locking pocket holds the head; reverse current limited to 2 A.
Put the head onThree equal lugs let the head fit three ways round, so the USB-C port and the head-lock sensor could end up in the wrong place.One wide lug, two narrow ones.
Put the head onThe lugs fixed the head's angle before the drive hex reached the shaft.The hex engages first, with lead-in chamfers.
Take the cup offThe cup's magnets faced aluminium: nothing to hold on to.A 0.8 mm 430 stainless ring in the burr carrier.
Press the buttonWith nothing pushing it up, the button sat 0.6 mm below the top and rattled.A small conical return spring on a bonded retainer.
Grind a full hopperThe hopper holds more beans than the cup holds grounds.Cup 8 mm deeper; a fill line in the hopper at about 30 g.
Set the grindThe grind-adjustment linkage is not designed yet.Open: waiting for the burr supplier's drawing.
Exploded view of the portable coffee grinder design model
Exploded: head sleeve, battery and boards, grinding body, cup.
Section through the portable coffee grinder showing cells, motor, burrs and cup
Section: cells and motor in the head, burrs in the body, cup below.

Your next project

Bring the idea or the design you have.

We design the electronics, check them against your enclosure and build the boards. Orders start at 1 board. Samples and small batches typically take 14–21 days from complete files.