Extension board · Spindle
Turns a PWM signal from the controller into an isolated analog speed command for a variable-frequency drive, with a separate run contact.
| Function | Isolated PWM to analog speed command, plus run contact |
| Drive terminals | J3: 10V, AOUT, GND, RUN, DCM |
| Host connector | J1 (Gadgeteer), chain on J2 |
| Isolator | ISO7710F for PWM |
| Converter | LTC2644, 2.5 V full scale |
| Amplifier | TS912, nominal gain 4 |
| Run path | ILD217T optocoupler between RUN and DCM |
| Field supply | The drive’s 10 V; TPS70930 makes 3 V |
| Size | 60 × 52 mm |
1Host connector J1 — PWM, run enable and 3.3 V.
2Chain connector J2 — Next board.
3Isolator U3 — ISO7710F, carries PWM across the barrier.
4Converter U4 — LTC2644, duty cycle to voltage.
5Amplifier U2 — TS912, gain of 4.
6Optocoupler U1 — Run contact.
7Regulator U5 — TPS70930, field 3 V.
8Drive terminals — 10V, AOUT, GND, RUN, DCM.
| J1 contact | Connected to |
|---|---|
| 1 | +3V3 |
| 2 | +5V |
| 3 | GAD_P3 |
| 4 | GAD_P4 |
| 5 | GAD_P5 |
| 6 | RUN_EN |
| 7 | PWM_IN |
| 8 | GAD_P8 |
| 9 | GAD_P9 |
| 10 | GND |
| J3 contact | Connected to |
|---|---|
| 1 | VFD_10V |
| 2 | VFD_AOUT |
| 3 | GND_VFD |
| 4 | VFD_RUN |
| 5 | VFD_DCM |
| J2 contact | Connected to |
|---|---|
| 1 | +3V3 |
| 2 | +5V |
| 3 | CHAIN_P3 |
| 4 | CHAIN_P4 |
| 5 | CHAIN_P5 |
| 6 | CHAIN_P6 |
| 7 | CHAIN_P7 |
| 8 | CHAIN_P8 |
| 9 | CHAIN_P9 |
| 10 | GND |
A bench test with a voltmeter and no drive, motor or mains connected.
With power off, connect Prime J34 contact 1 (3.3 V) to J1 contact 1, J34 contact 7 (PI6) to J1 contact 7 and J34 contact 10 to J1 contact 10. Leave the other J1 contacts open.
Connect a current-limited 10 V supply to J3 contact 1 (positive) and contact 3 (return), and a DC voltmeter to contact 2 (positive) and contact 3. Never join the field return to the controller ground.
Add the entries from Configuration, restart, then power the field side.
Send M43.21, then M42.21 S25, then M42.21 S50, and finish with M43.21. Remove field power before disconnecting.
Near 0 V, then about 2.5 V, then about 5 V.
A switch driving hardware PWM; S is percent duty, not RPM. Syntax checked against firmware commit 2a21c0108b1d095ecd8b2b9358e94055f053c003.
[pwm2]
frequency = 1000
[switch]
spindle_request.enable = true
spindle_request.output_type = hwpwm
spindle_request.output_pin = PWM2_2
spindle_request.input_on_command = M42
spindle_request.input_off_command = M43
spindle_request.subcode = 21
spindle_request.startup_value = 0
spindle_request.halt_set_to = 0
spindle_request.ignore_on_halt = false
A drive installation also needs run control, speed-to-RPM mapping and a fault and stop policy suited to your machine.
Good to know:
The ISO7710F carries PWM across the isolation barrier. The LTC2644 measures its duty cycle and outputs a voltage, which the TS912 multiplies by 4: 25 % duty gives about 2.5 V and 50 % about 5 V (nominal values). A separate optocoupler closes RUN to DCM. The field side is powered by the drive’s 10 V terminal; field and host returns stay separate.
J2 passes the Gadgeteer socket on to a further board. The PWM and run contacts are used by this board. A solder link on each contact sets whether it is passed through: check the link labels against Pinout before stacking boards.
| Contacts | Link as designed | On CHAIN |
|---|---|---|
| 1, 2, 10 | none, wired through | 3.3 V, 5 V, ground |
| 3, 4, 5, 8, 9 | closed | passed on |
| 6 (run enable), 7 (PWM) | open | stop here |
| Symptom | Check |
|---|---|
| No output voltage | Check 10 V between J3 contacts 1 and 3, and that PWM arrives on J1 contact 7. |
| Output at full scale | The PWM input is high or held high. Send a low duty. |
| Drive does not run | Check the RUN and DCM wiring and the run signal. |
Still stuck? Read how to ask for help or see the general troubleshooting guide.
| File | What it is |
|---|---|
| M3/M5 handlers | Design source |
| auxiliary UART shell output | Design source |
Outline and holes from the original board file. Millimetres, seen from the component side.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 10.00 | 21.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 30.00 | 21.00 | 3.2 mm, not plated | Mounting, M3 screw |
Only what the design source states or the circuit fixes. Blank cells are not specified.
| Parameter | Applies to | Lower | Nominal | Upper | Basis and conditions |
|---|---|---|---|---|---|
| PWM frequency | J1 contact 7 | 30 Hz | — | 25 kHz | LTC2644 datasheet |
| Field supply | J3 contacts 1 and 3 | — | 10 V | — | Design value |
| Speed command | J3 contact 2 | 0 V | — | 10 V | Nominal gain 4; swing near the rail not specified |
The design files for this board are not published for download. See all boards on the extension boards page.
See the spindle control breakout family to compare connections for analog, RS-232 and RS-485 drives.