Extension board · Interface

Four-PWM/two-input/probe interface

Four MOSFET-buffered PWM outputs, two filtered switch inputs and a comparator probe input on one header.

Top view of the Four-PWM/two-input/probe interface board
Top view drawn from the original board file. This is a drawing, not a photograph.
4PWM outputs
2switch inputs
1probe input
2N7002output MOSFETs
LMV331comparator
40 × 50 mmboard size
The outputs invert and the jumpers decide the voltages. A high request pulls the output low. JP2 feeds host 5 V to the output supply and must be cut before you connect another supply. Check every jumper before powering. This is a design by Chris Cecil, not a current Smoothieware board.

Tech specs

FunctionPWM, switch and probe interface
OutputsJ6–J9: signal, ground, selected supply
Switch inputsJ3, J4
Probe inputJ5
External output supplyJ2 (cut JP2 first)
Size40 × 50 mm

Board tour

  1. 1
    Host header J1 — All logic signals.
  2. 2
    Output 1 — J7–J9 follow below.
  3. 3
    Output MOSFETs — One per output.
  4. 4
    External supply — For the outputs.
  5. 5
    Switch input 1 — J4 is the second.
  6. 6
    Probe input — Three-contact connector.
  7. 7
    LMV331 comparator — Conditions the probe.
  8. 8
    Transistor Q1 — Transistor Q1, marked 2N7002 in the board file. Connects to PWM4, GND.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

Host header J1

J1 contactConnected to
1+3.3V
2+5V
3GPIO1
4GPIO2
5Comparator
6PWM1
7PWM2
8PWM3
9PWM4
10GND

External supply J2

J2 contactConnected to
1VS
2GND

J6–J9: contact 1 output (PWM1–PWM4), contact 2 ground, contact 3 selected supply.

J3 and J4: contact 2 ground; contacts 1 and 3 are the switch supply and signal. J5: probe connector, same layout.

What you need

PWM boardBuilt from the design files
MeterTo check jumpers and levels
LeadsVerified contact by contact

Get started

The minimum wiring first, then the order to do it in. Facts about each contact are in the pinout.

Wiring: J2 contact 1 to VS; J2 contact 2 to GND.J2 on this boardExternal supply00.0 VVS 1VS1: VS 2GND2: GND
Wiring drawn from the original design files. Make connections with all power off. Equipment is drawn as a typical unit, not a specific model.
  1. Check the contacts

    With all power off, find contact 1 on each connector and check every wire against the pinout.

  2. Set up and check

    Check the supply-selector jumpers and logic levels with a meter.

  3. Configure and power up

    Apply the settings under Configuration, then power up.

Configuration

A contact on switch input 1 (PB1) and a digital test of one output on PG0. See switch and endstops. Syntax checked against firmware commit 2a21c0108b1d095ecd8b2b9358e94055f053c003.

[endstops]
pwmboard_contact_diagnostic.enable = true
pwmboard_contact_diagnostic.pin = PB1-
pwmboard_contact_diagnostic.axis = X
pwmboard_contact_diagnostic.homing_direction = none
pwmboard_contact_diagnostic.limit_enable = false

[switch]
pwmboard_sink_diagnostic.enable = true
pwmboard_sink_diagnostic.input_on_command = M42
pwmboard_sink_diagnostic.input_off_command = M43
pwmboard_sink_diagnostic.subcode = 18
pwmboard_sink_diagnostic.output_pin = PG0
pwmboard_sink_diagnostic.output_type = digital
pwmboard_sink_diagnostic.startup_state = false
pwmboard_sink_diagnostic.halt_set_to = false
pwmboard_sink_diagnostic.ignore_on_halt = false

How it works

Each output is a 2N7002 that connects its output to ground when the PWM signal is high; a selectable pull-up raises it again. Without the pull-up the output is open drain. The probe input is compared by an LMV331 with a clamp network on J5. See the LMV331 datasheet.

PWM signal then 2N7002, pulls output to ground then Output, with selectable pull-up. Probe input then LMV331 comparator, clamp network on J5 then Controller.PWM signal2N7002pulls output to groundOutput, with selectable pull-upProbe inputLMV331 comparatorclamp network on J5Controller
How the signals pass through this board, one path per row.

Troubleshooting

SymptomCheck
Nothing respondsWith power off, check continuity along each lead and board path against the pinout tables. Confirm which end of the connector is contact 1.
Output is invertedExpected: invert the pin in the configuration if your load needs it.
Output never risesIts pull-up jumper is open or the supply is missing.
Probe input does nothingCheck the probe jumpers and voltage before connecting a sensor.

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

FileWhat it is
The upstream sourceDesign source
original circuitDesign source
Ccecil upstream projectDesign source
Original PWMlaserBoard.kicad_schDesign source
Original README.mdDesign source

Appendix: mounting dimensions

Outline and holes from the original board file. Millimetres, seen from the component side.

Mounting drawing of the historical-pwm-io-board, component side: outline 40 by 50 millimetres with 3 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 40 50 0, 0 X Y 1 19.50, 5.00 2 20.00, 26.50 3 19.50, 45.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 40 × 50 mm, square corners, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
119.505.003.2 mm, not platedMounting, M3 screw
220.0026.502.5 mm, not platedMounting
319.5045.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Only what the design source states or the circuit fixes. Blank cells are not specified.

ParameterApplies toLowerNominalUpperBasis and conditions
Voltage, current and temperature limitsWhole board———Not specified in the source

Design source

Designed by Chris Cecil: original design files. It was drawn for the Smoothieboard V2 Gadgeteer era; check every connection against your own controller. See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.