Extension board · Power output

Single-channel small mosfet advanced output

Switch a fan, solenoid, pump or light from a 3.3 V controller output. Use a three-pin header or a Gadgeteer type-Y socket. An optocoupler separates the selected command from the load circuit.

Prototype design · revision v29 · untested on hardware

Top view with the white control header and two keyed Gadgeteer connectors along the top, field supply on the left and load on the right
Top view drawn from revision v29.
1low-side DC output
5–24 Vexternal DC field supply
4 Aload current design target
3.3 Vnominal logic command
7outputs per type-Y socket
60 × 87millimetres, four M3 holes
Prototype design. The current target and operating limits await hardware testing. Use an appropriately fused, current-limited DC supply. A heater also needs an independent thermal cut-out.

Compare the MOSFET boards

All three boards switch one DC load. The voltages and currents are design targets; none of the boards has been tested on hardware.

Small MOSFET basic Small MOSFET advanced Large MOSFET
Specifications
Load supply12 V DC nominal5 to 24 V DC5 to 24 V DC
Load current, design target1 A4 A12.5 A
Load connectorScrew terminalScrew terminalXT30
Control connectorThree-pin header and Gadgeteer IN / CHAINThree-pin header and Gadgeteer IN / CHAINThree-pin header and Gadgeteer IN / CHAIN
Features
Works from a 3.3 V control signal
Optically isolated control
Output stays off with the control cable unplugged
Diode for inductive loads (fans, solenoids)
Boards per Gadgeteer portUp to sevenUp to sevenUp to seven
Can feed a small load from the controller
Reversed-supply protection
Electronic current limit
Switches off when the supply voltage is out of range
Soft start
Light for output on
Lights for faults
M3 mounting holes
Cable-tie holes

Tech specs

Parameter Revision v29
Output One low-side DC switch with flyback diode
Load supply 5–24 V DC, external only
Load current 4 A design target, untested
Control Active-high 3.3 V from the selected three-pin or Gadgeteer input
Isolation Optical signal path with separate controller and field returns
Connectors Keyed three-pin header, two Gadgeteer type-Y ports and two screw terminals
Size 60 × 87 mm, four 3.2 mm mounting holes

See mounting dimensions and electrical specifications.

Board tour

Along the top edge, CTRL IN (J1) is the white three-pin connector. Y IN (J4) and Y CHAIN (J5) are the black keyed connectors. INPUT SELECT (SJ14) selects the local command. The six smaller links between the Gadgeteer connectors pass the remaining six commands. Field supply enters at J2 on the left and the load plugs into J3 on the right.

Pinout

J1 contact Function
1 Controller ground
2 Unconnected
3 Active-high 3.3 V command
Field connector Pin 1 Pin 2
J2, supply in Supply positive Field ground
J3, load out Load positive Switched load return
Y IN pin Function Y CHAIN pin
1 Controller 3.3 V pass-through 1
2 Controller 5 V pass-through 2
3 Local board command —
4 First forwarded command 3
5 Second forwarded command 4
6 Third forwarded command 5
7 Fourth forwarded command 6
8 Fifth forwarded command 7
9 Sixth forwarded command 8
10 Controller ground 10

CHAIN pin 9 is unconnected. The passed-through rails and ground belong to the controller.

What you need

  • A 3.3 V controller output and a keyed type-Y ribbon cable or a mating three-pin harness.
  • A 5–24 V DC supply, an appropriately rated fuse and wires sized for the load.
  • The mating field supply and load connectors.

Get started

  1. Power down. Choose one local command source at SJ14.
  2. For Gadgeteer, plug the controller’s type-Y ribbon into Y IN. For the three-pin harness, wire controller ground to pin 1 and the command to pin 3. Leave pin 2 empty.
  3. Connect the external supply to J2 and the load to J3 using the polarity in the pinout. Keep the field and controller returns separate to preserve isolation.
  4. Configure the chosen controller pin to start and halt low. Bring up the board with a current-limited supply and a small test load.

Configuration

Example for the Smoothieware V2 Switch module. Replace PB1 with the controller pin that actually reaches the board’s selected input. In a chain, configure a different output pin for each board.

[switch]
mosfet.enable            = true
mosfet.output_pin        = PB1
mosfet.output_type       = digital
mosfet.input_on_command  = M64
mosfet.input_off_command = M65
mosfet.startup_state     = false
mosfet.halt_set_to       = false

Send M64 to turn on the test load and M65 to turn it off.

Wiring the load

Route both load wires to J3. The board switches the negative load return. The positive contact can remain energized while the command is low. Disconnect the field supply before moving wiring.

How it works

The optocoupler passes the selected command across the isolation barrier. The protected field supply powers the gate driver. The gate is held low when the command is absent or the bias supply is below its startup threshold. The field circuit also provides reverse-polarity and overcurrent protection and a path for inductive current at turn-off.

Source selector

Input SJ14
Y IN Factory bridge between pads 1 and 2
Three-pin CTRL IN Cut the 1–2 bridge, verify it is open, then bridge pads 2 and 3

Power down both sides before changing the selector. Bridge only one pair.

Chaining

Connect Y CHAIN on one board to Y IN on the next. With Gadgeteer selected on each board, the local channel always uses Y IN pin 3. The six factory-closed links SJ8–SJ13 pass Y IN pins 4–9 to Y CHAIN pins 3–8 in order. Cutting a link interrupts that command downstream. Use one host per chain. Adding or removing a board changes the downstream channel assignments.

The controller's ribbon cable goes to the connector Y IN of the Small MOSFET advanced. Inside the board each of the ten pins runs through a solder link to the connector Y CHAIN, where a second ribbon cable continues to the next board. A closed link passes its pin on, an open link stops it. Controller one ten-pin port Small MOSFET advanced Y IN Y CHAIN Pin 3 stops here Pin 4 stops here Pin 5 stops here one solder link per pin Next board sees what is passed on
Chaining: one port of the controller serves two boards. Pin 1 of Y IN leads to pin 1 of Y CHAIN, pin 2 to pin 2, and so on, each through its own solder link. The three lines stand for the ten pins and show the links as delivered. Two boards must never drive the same pin, and a pin that one board uses for a signal is not free for the next. Each board uses pin 3 and moves the remaining commands down one position.

Troubleshooting

What you see What to check
Load stays off Check field supply polarity and voltage, controller pin mapping and SJ14. A logic command alone supplies no gate or load power.
Wrong load switches in a chain Check ribbon direction, board order and the closed links. Each board shifts the remaining commands by one pin.
Protection interrupts the load Power down and check for a short, reversed supply or too much load current.

Downloads

Appendix: mounting dimensions

The board is 60 × 87 mm. Four 3.2 mm holes form a 40 × 40 mm pattern. Hole centres from the top-left of the board are (5, 42), (45, 42), (5, 82) and (45, 82) mm.

Appendix: electrical specifications

Parameter Value Basis
Field supply 5–24 V DC Design range
Continuous load 4 A Design target, untested
Logic command 3.3 V nominal Design target for both interfaces
Minimum loaded high 2.72 V at the selected input Design threshold, untested
Maximum logic low 0.4 V Design threshold, untested
Isolation voltage rating Open Hardware qualification pending. Use with low-voltage DC.
This is a wiki! If you'd like to improve this page, you can edit it on GitHub.