Extension board · Controls and displays
A receiver board for jogging handwheels and other 5 V encoders. It accepts differential, push-pull or open-collector outputs on screw terminals, powers the encoder, and gives the controller clean 3.3 V A, B and Z signals.
| Purpose | Conditioning a manual pulse generator or incremental encoder. Axis and step selectors and stop buttons of a pendant are not handled |
| Inputs | AM26LV32E receiver on A+/A−, B+/B−, Z+/Z−; absolute maximum −14 to +14 V |
| Outputs | 3.3 V push-pull through 100 Ω to contacts 3 (A), 4 (B) and 5 (Z) |
| Encoder supply | 5 V from the socket through a 0.5 A resettable fuse, with a transient suppressor |
| Isolation | None |
| Connectors | Eight-way 3.5 mm screw terminal; two Gadgeteer type Y sockets (Samtec SHF-105, 1.27 mm) |
| Size | 70 × 55 mm, four M3 holes on a 60 × 40 mm pattern |
| Works with | Smoothieboard V2 Prime header GF with the mpg module |
| Licence | Open hardware, CERN-OHL-S-2.0 |
Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.
The numbers on the drawing match the list below it. The board is shown from the component side.
1Handwheel terminal (J3) — 5V, 0V, A+, A−, B+, B−, Z+, Z−.
2Input socket Y IN (J1) — A, B and Z on contacts 3, 4 and 5.
3Chain socket CHAIN (J2) — Contacts 6 to 9 pass through.
4Receiver (U1) — AM26LV32E, powered from 3.3 V.
5Termination links (JP10 to JP12) — Add 120 Ω across a differential pair.
6Pull-up links (JP13 to JP15) — Add 2.2 kΩ to 5 V for open-collector outputs.
7Single-ended links (JP16 to JP18) — Tie the minus input to about 1.5 V.
8Supply protection (F1, D1) — Resettable fuse and clamp on the encoder 5 V.
9Threshold divider (R10, R11) — Makes the single-ended reference.
10Chain links (JP3 to JP5) — Open as delivered.
11Mounting hole — One of four M3 holes.
Check the handwheel’s own label: pinouts and wire colours differ between makers.
| Terminal | Use |
|---|---|
| 5V | Encoder supply, 0.5 A maximum |
| 0V | Encoder ground |
| A+, A− | Channel A |
| B+, B− | Channel B |
| Z+, Z− | Index channel, if present |
| Contact | Signal | Use | Prime header GF |
|---|---|---|---|
| 1 | 3.3 V | Receiver supply | 3.3 V |
| 2 | 5 V | Encoder supply | 5 V |
| 3 | ENC_A | A output | PB1 |
| 4 | ENC_B | B output | PJ4 |
| 5 | ENC_Z | Z output | PA4 |
| 6 to 9 | Passed through | Not used | PG0, PJ3, PG1, PJ2 |
| 10 | GND | Ground | GND |
Set the solder links per channel to suit the encoder output:
| Encoder output | Wire to | TERM link | PULLUP link | SINGLE link |
|---|---|---|---|---|
| Differential (line driver) | + and − | closed for long cables | open | open |
| Push-pull or voltage | + only | open | open | closed |
| Open collector | + only | open | closed | closed |
| Channel not wired (Z) | nothing | open | open | open |
Never close the TERM and SINGLE links of the same channel.
Read its label: supply voltage and output type. Use it only if it runs from 5 V.
Follow the table in the pinout section, with the power off.
Then connect J1 to header GF.
Power up and turn the wheel slowly while measuring test points ENC_A and ENC_B.
By design each test point switches between about 0 V and 3.3 V.
Add the entry below, restart, and turn the wheel with the machine idle.
| You want | Module | Example |
|---|---|---|
| Jog one axis from the wheel | MPG | The entry below |
| Select axis or step size | None | Not provided by this module |
Add this to config.ini to move the X axis from the wheel:
[mpg]
wheel.enable = true
wheel.enca_pin = PB1
wheel.encb_pin = PJ4
wheel.axis = 0
axis is 0 for X, 1 for Y, 2 for Z, up to 5. Both pins must be able to raise interrupts on line numbers that nothing else uses (here 1 and 4); the startup messages report a failure. Each full quadrature cycle moves the motor by one step, so the movement is fine, and there is no step-size selector. Turn the wheel only while no job is running or queued: as published, the module stops handling the wheel after a movement arrives while the machine is busy. If the direction is wrong, exchange the two pin names. See the mpg module.
A differential receiver outputs high when the plus input is more than 200 mV above the minus input. That suits line-driver encoders directly. For single-ended encoders the minus input is tied to a reference of about 1.5 V, and an optional pull-up serves open-collector outputs. An unwired input reads high.
All links ship open, which suits a differential encoder on a short cable.
| Link | What it does | As delivered |
|---|---|---|
| JP3 | Joins contact 3 to the chain socket | Open |
| JP4 | Joins contact 4 to the chain socket | Open |
| JP5 | Joins contact 5 to the chain socket | Open |
| JP10 | 120 ohm across A | Open |
| JP11 | 120 ohm across B | Open |
| JP12 | 120 ohm across Z | Open |
| JP13 | 2.2 k from A+ to 5 V | Open |
| JP14 | 2.2 k from B+ to 5 V | Open |
| JP15 | 2.2 k from Z+ to 5 V | Open |
| JP16 | Reference on A minus | Open |
| JP17 | Reference on B minus | Open |
| JP18 | Reference on Z minus | Open |
Contacts 6 to 9 are free for a further board.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3 to 5 | A, B, Z | Stopped by open links |
| 6 to 9 | Free | Passed on |
| Symptom | Likely cause | What to check |
|---|---|---|
| No signal on a test point | Encoder unpowered or wrong link setting | Test point +5V_ENC; link table |
| Test point stays high | Input not wired, or single-ended link missing | Wiring and SINGLE link |
| Wheel moves nothing | Configuration not loaded or pins refused | Startup messages |
| Wheel stopped working | It was turned while the machine was busy | Reset the controller |
| Counts erratically | Noise on a long cable | Use differential wiring and close TERM links |
| 5 V disappears | Fuse tripped by overload or short | Remove power, find the fault, let it cool |
The board has no indicator lights; use the test points.
Still stuck? Read how to ask for help or see the general troubleshooting guide.
| File | What it is |
|---|---|
| Schematic (PDF) | The circuit diagram |
| Parts list (CSV) | Every component with its value, footprint and part number where one is chosen |
| Board drawing (PNG) | The top view used on this page |
| 3D view, top (PNG) | Rendered from the design files |
| 3D view, angled (PNG) | Rendered from the design files |
For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 5.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 65.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 45.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 65.00 | 45.00 | 3.2 mm, not plated | Mounting, M3 screw |
Every figure is a design value, a calculated or simulated value, or a manufacturer’s data sheet value, as the last column says. A dash means no figure is given.
| Parameter | Applies to | Lower | Nominal | Upper | Basis |
|---|---|---|---|---|---|
| Logic supply current | 3.3 V | — | 11 mA | 20 mA | Data sheet and calculation |
| Encoder supply current | 5 V | — | — | 0.5 A | Fuse rating |
| Signal input | J3 | −14 V | — | +14 V | TI absolute maximum |
| Differential threshold | U1 | −200 mV | — | +200 mV | TI data sheet |
| Receiver delay | U1 | — | 16 ns | 26 ns | TI data sheet |
| Single-ended threshold | Reference | 0.8 V | 1.26 V | 1.6 V | Simulated, loaded case; limits used for the check |
| Open-collector high level | Pull-up fitted | 1.7 V | 3.76 V | 5 V | Simulated |
| Rise with 1 nF cable | Pull-up fitted | — | 0.88 µs | 10 µs | Simulated |
| Part | Limit | Use on this board |
|---|---|---|
| Encoder supply | 0.5 A hold | Keep the handwheel below it |
| Signal inputs | ±14 V absolute maximum | Never connect 24 V |
| Termination resistors | 0.25 W | About 0.1 W at 3.5 V differential |
The single-ended and open-collector input cases were simulated with ngspice.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Input low level with open-collector output | 52.2 mV | at most 1.3 V | Within |
| Input high level, pull-up fitted | 3.76 V | 1.7 V to 5 V | Within |
| Rise to the 1.7 V threshold with 1 nF cable | 875 ns | at most 10 µs | Within |
| Single-ended threshold, pessimistic loading to ground | 1.26 V | 800 mV to 1.6 V | Within |
Not simulated: the receiver itself, cable noise and the protection parts.
The first page of the receiver data sheet. Click the page to open the PDF.
See all boards on the extension boards page.