Extension board · Prototyping

Perma-proto breadboard

Solder your own circuit onto a breadboard-style board that plugs into seven controller pins with one ribbon cable.

Top view of the perma-proto board: two fields of gold holes joined by gold copper links, four power rails, the host connector in the middle and the chain connector with its wiring holes at the left
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
7controller signal pins
60strips of five or six holes
4 × 30rail holes
2 × 5holes to wire the chain connector
3.3 V + 5 Vrails, each with its own lamp
110 × 60 mmboard size
This board has no fuse, reverse-polarity, overcurrent or static protection. It carries low voltage only: never connect mains. Feed its rails from the controller only, and unplug the cable before soldering.

Tech specs

TypePassive solderable prototype board with two power lamps
Prototype area30 columns in two halves, rows A–F and G–L: six holes per strip, five in columns 15–19 beside the host connector
Rails+5 V and ground at the top, ground and +3.3 V at the bottom, 30 holes each
Copper linksBare on the front between every pair of joined holes, so you can see each connection and cut it
Hole pitch2.54 mm; 7.62 mm across the middle, the width of a narrow DIP chip
Host connectorJ1: Gadgeteer type Y, 10 pins, 1.27 mm pitch, Samtec SHF-105-01-L-D-TH-LC
Chain connectorJ2: the same connector, left of the prototype area, wired pin for pin to ten labelled 2.54 mm holes (J3) and to nothing else
SignalsSeven, connected straight to the controller
LampsRed: 5 V rail powered. Orange: 3.3 V rail powered
Solder jumpersFour, closed as made: each supply rail and each lamp
Supply load100 mA per positive rail (design target); less if your controller or cable allows less
Size110 × 60 mm, four M3 mounting holes

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on the drawing match the list below it.

  1. 1
    Host connector J1 — Ten pins to the controller. Check the notch before plugging in.
  2. 2
    Chain connector J2 — A second connector, left of the prototype area, linked only to the wiring holes below it.
  3. 3
    Chain wiring holes J3 — Solder wires here to choose what the chain connector carries; each hole is labelled with its pin.
  4. 4
    +5 V rail — Thirty joined holes fed by connector pin 2.
  5. 5
    5 V lamp — Red; lit while the 5 V rail is powered.
  6. 6
    3.3 V rail jumper — Closed as made; cut it to separate the bottom rail from connector pin 1.
  7. 7
    Upper strips — Each column of rows A to F is one connection, shown by the gold link.
  8. 8
    Column 14, GPIO 1 — The first signal arrives here. Columns 15 to 20 carry GPIO 2 to 7.
  9. 9
    Dashed guide lines — Each line runs from a J1 pin to the strip or rail it feeds.
  10. 10
    Lower strips — Each column of rows G to L is one connection.
  11. 11
    +3.3 V rail — Thirty joined holes fed by connector pin 1. Use it for signal pull-ups.
  12. 12
    3.3 V lamp — Orange; lit while the 3.3 V rail is powered.
  13. 13
    Mounting hole — One of four; see the dimensions appendix.
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

Header J37 (G_F) of the Smoothieboard V2 Prime. The signal pins are 3.3 V logic; do not apply 5 V to them (PB1, PA4 and PG1 are not 5 V tolerant).

Connector pinSignalOn this boardPrime J37
13.3 V+3.3 V rail (bottom), through its jumperPin 1, 3.3 V
25 V+5 V rail (top), through its jumperPin 2, 5 V
3GPIO 1Column 14, rows G–LPB1
4GPIO 2Column 15, rows A–EPJ4
5GPIO 3Column 16, rows H–LPA4
6GPIO 4Column 17, rows A–EPG0
7GPIO 5Column 18, rows H–LPJ3
8GPIO 6Column 19, rows A–EPG1
9GPIO 7Column 20, rows G–LPJ2
10GNDBoth ground railsPin 10, ground

Each column of rows A to F is one connection, and so is each column of rows G to L. Neighbouring columns, and the two halves of one column, are separate. Columns 15–19 have five holes per half because the host connector takes the sixth. The gold lines on the front are the copper that makes these connections: to split a strip or rail, cut the line between two holes with a sharp knife and check with a meter that the two sides are separate. Do this with the cable unplugged; solder or a wire joins them again. The bare links also mean a stray blob of solder, wire or metal can touch them, so look the board over before powering it. Each of the four 30-hole rails is one connection; the two ground rails are joined. The dashed lines printed on the board lead from every J1 signal and supply to its destination.

The chain connector J2 has the same pin numbers as the wiring holes J3: J2 pin n is joined to J3 pin n only. Each J3 hole is labelled on the board: 5V, 4, 6, 8, GND in the upper row and 3V3 (square pad), 3, 5, 7, 9 in the lower row. 5V is pin 2, 3V3 is pin 1 and GND is pin 10.

What you need

ControllerA Smoothieboard V2 Prime, or another controller whose pins you have checked against the table above.
CableA 1.27 mm, 2 × 5 ribbon cable for the board end (Samtec FFSD or FFTP families mate with the fitted header). Check the controller end separately: the Prime J37 footprint has no specified mating cable.
Soldering toolsIron, solder, 0.5 mm solid insulated wire, side cutters and a multimeter.
Your partsThrough-hole components. Each project below lists its own.
Screw terminals2.54 mm pitch, for anything that lives off the board, so that it can be disconnected.

Get started

Start with the simplest circuit, one button between a signal and ground, to prove the cable and your pin numbering. As in the projects below, nothing off the board is soldered straight into it: the button plugs into a screw terminal.

Perma-proto board with a push button connected through a two-pin screw terminal to column 14 and ground
One normally-open button on screw terminal CN1: yellow is GPIO 1 (column 14, pin PB1), black is ground. Select the drawing to open it full size.
  1. Fit the terminal

    With the cable unplugged, solder a two-pin screw terminal into holes J12 and J14, wire entry towards the bottom edge. Add a wire from L12 to hole 10 of the lower ground rail. Screw one button wire into each terminal.

  2. Check with a meter

    Connector pin 3 and pin 10 must be open with the button released and connected with it pressed.

  3. Check the cable

    Use only a cable whose pin numbering you have confirmed at both ends with a continuity test. Connect with the power off.

  4. Configure and test

    Add the setting below, power up with the button released, and keep machine loads disabled for the test.

    Pressing the button halts the controller. Releasing it does not clear the halt.

Configuration

You wantModuleExample
A button that haltsButton boxSetup
A touch switchSwitchSetup
A solenoid that taps while onSwitchSetup
A hand-turned jog wheelMPGSetup
Delayed STEP and DIR for an external driverMotion (actuator)Setup

Setup

The setting for the button of Get started. The four projects have their own: touch switch, tapper, handwheel and STEP and DIR delay. They share some pins, and a pin can be claimed by one setting only.

[button box]
raw_button.enable = true
raw_button.pin = PB1!^
raw_button.press = KILL

^ enables the pull-up and ! makes a ground connection count as a press (button box source). This is a software halt, not an emergency stop, and a broken wire goes unnoticed. A button already held at start-up can trigger at once.

How it works

Seven connector pins and both supplies are wired to fixed columns and rails; everything else is yours to connect with component leads and wires. The board cannot change voltage levels or protect a pin, so your circuit must keep signals between 0 and 3.3 V. A narrow (7.62 mm) DIP chip straddles the middle gap with one row of pins in row F and the other in row G, and needs no cut tracks; columns 20–30 give the longest run for this.

Power lamps and solder jumpers

5 V lamp3.3 V lamp
WhereLeft end of the +5 V railLeft end of the +3.3 V rail
Lit meansThe +5 V rail has voltageThe +3.3 V rail has voltage
Dark meansNo power, rail jumper cut, or lamp jumper cutNo power, rail jumper cut, or lamp jumper cut

The red lamp sits at the left of the +5 V rail and the orange lamp at the left of the +3.3 V rail. All four jumpers are closed as made. To open one, cut the thin copper bridge between its two pads with a sharp knife and check with a meter; to close it again, bridge the pads with solder. Do this with the cable unplugged.

PrintedPartWhen cut
5V LINKJP1The +5 V rail and its lamp are separated from connector pin 2
3V3 LINKJP2The +3.3 V rail and its lamp are separated from connector pin 1
5V LED LINKJP3The red lamp stays dark; the rail is unaffected
3V3 LED LINKJP4The orange lamp stays dark; the rail is unaffected

The lamps show that a rail has voltage, not that the voltage is correct. The ground rails have no jumper.

Chain connector

J2 and its wiring holes J3 sit left of the prototype area, so they take no strip holes. J2 carries nothing until you wire it. Solder a wire from a J3 hole to a strip or rail for each line the next board needs, for example J3 pin 10 to a ground rail and a signal pin to the matching column. Wiring J3 pin n to the destination of J1 pin n passes that line straight on. Check every wire with a meter: crossing a supply onto a signal can damage the controller. Anything on the chain shares the controller’s pins and supply budget, and signals stay limited to 3.3 V.

J1 connector pins and supplies then Fixed copper columns and rails then Your components and wires then Signals stay between 0 and 3.3 V.J1 connector pins andsuppliesFixed copper columnsand railsYour components andwiresSignals stay between 0and 3.3 V
How the signals pass through this board.

Four example projects

Each project uses its own board. The drawings are made from the same hole list as the tables, and that list was checked by script for open and shorted connections. The circuits were designed from datasheet figures, and the numbers given are calculated, not measured. Solder with the ribbon cable unplugged, check every connection with a meter, and check the output voltage before you plug in: no signal pin may see more than 3.3 V.

Hole names follow the board printing: H7 is row H, column 7. A rail hole such as “+5 V rail 19” is the nineteenth hole of that rail. Black wires are ground.

Project 1: touch plate switch

Touch a bare metal plate and an LED turns on; touch it again and it turns off. Your body picks up a little of the 50 or 60 Hz field from the mains wiring around you. When you touch the plate, three transistors in a chain amplify that tiny current enough to pull a controller input low. C1 fills the gaps between mains half-cycles so that the controller sees one steady press.

Perma-proto board populated with three transistors, resistors, a diode, a capacitor and an LED, with a screw terminal wired to a metal touch plate
The touch switch. Yellow carries the signal to GPIO 1 (pin PB1); LED1 is driven by GPIO 3 (pin PA4). Select the drawing to open it full size.
PartWhatHolesJob
CN12-pin screw terminal, 2.54 mm pitchpins in B2 and B4, wire entry towards the top edgedetachable lead to the plate; B4 is left unused
R11 MΩ resistor, 1/4 WE2 to E6protects the first transistor from static on the plate
D11N4148 diode (band = cathode)band end in B6, other end in B10gives the negative half of the pickup a path to ground
R210 MΩ resistor, 1/4 WK3 to K6ignores very small leakage currents
Q12N3904 NPN transistor, TO-92E in I5, B in I6, C in I7first of three amplifying transistors
Q22N3904 NPN transistor, TO-92E in I9, B in I10, C in I11second transistor
Q32N3904 NPN transistor, TO-92E in H22, B in H23, C in H24pulls the controller input low
R3100 kΩ resistor, 1/4 WJ7 to +3.3 V rail 7limits Q1
R410 kΩ resistor, 1/4 WJ11 to +3.3 V rail 11limits Q2
R5100 kΩ resistor, 1/4 WJ23 to lower ground rail 23keeps Q3 off when nothing touches
R6100 Ω resistor, 1/4 WI24 to I28limits the capacitor discharge current
R710 kΩ resistor, 1/4 WJ28 to +3.3 V rail 28holds the input high
C14.7 µF electrolytic capacitor, 16 V or more+ in H28, − in H29keeps the input low between mains half-cycles
R81 kΩ resistor, 1/4 WH13 to H16LED current limit
LED13 mm indicator LED− in J12, + in J13the lamp the plate switches
WireFromTo
Top: blueF6G6
Top: blackA10upper ground rail 10
Top: whiteF2G2
Top: blackL3lower ground rail 3
Top: greenL5L10
Top: violetK9K23
Top: blackJ22lower ground rail 22
Top: blackL29lower ground rail 29
Top: yellowL28L14
Top: blackK12lower ground rail 12
Off board: whiteCN1, the screw over B2the metal plate

Use a plate of copper, brass or steel, a few centimetres across, on a wire under 20 cm screwed into CN1. Connect the plate to nothing else, and never to anything powered. Sensitivity depends on the mains wiring nearby: far from any mains cable, or with a battery-powered machine outdoors, the circuit may not respond.

[switch]
touch.enable = true
touch.input_pin = PB1!^
touch.input_pin_behavior = toggle
touch.output_on_command = M42
touch.output_off_command = M43

lamp.enable = true
lamp.output_pin = PA4
lamp.output_type = digital
lamp.input_on_command = M42
lamp.input_off_command = M43

! makes the low signal count as a press and ^ enables the pull-up. toggle changes state once per touch; use momentary to keep the lamp on only while you touch (switch source). Test: type M42 and M43 in the console and watch the LED, then touch the plate. If it flickers, shorten the plate wire or raise C1 to 10 µF.

Project 2: 555 solenoid tapper

While a Gadgeteer signal is on, a solenoid taps about seven times a second without any further commands: shake a hopper, knock a sticking part loose or ring a small bell. The TLC555 runs as a repeating timer whose reset pin is the controller signal. Calculated timing: about 76 ms on and 69 ms off (the first pulse after switching on is longer).

The TLC555 straddles the gap in the middle of the board: pins 1 to 4 sit in row G and pins 5 to 8 in row F, columns 21 to 24, with the notch towards the connectors. No track needs cutting and every wire goes on top.

Perma-proto board populated with a TLC555 timer, a MOSFET, a flyback diode, passives and two screw terminals for a solenoid and its supply
The tapper. Yellow brings the on/off signal from GPIO 2 (pin PJ4). The solenoid has its own supply. Select the drawing to open it full size.
PartWhatHolesJob
CN12-pin screw terminal, 2.54 mm pitchpins in A3 and A5, wire entry towards the top edgedetachable solenoid connection
CN22-pin screw terminal, 2.54 mm pitchpins in A7 and A9, wire entry towards the top edgedetachable coil supply connection
U1TLC555 DIP-8 chippins 8, 7, 6, 5 in F21–F24; pins 1, 2, 3, 4 in G21–G24timer in a repeating (astable) circuit
C3100 nF ceramic capacitor+5 V rail 20 to upper ground rail 20supply decoupling
R110 kΩ resistor, 1/4 W+5 V rail 26 to B26timing
R2100 kΩ resistor, 1/4 WD26 to H26timing
C11 µF electrolytic capacitor, 16 V or more+ in L26, − in L27timing capacitor
C210 nF ceramic capacitorC24 to upper ground rail 24steadies the control pin
R5100 kΩ resistor, 1/4 WC15 to upper ground rail 15keeps the timer stopped when the input is not driven
R3100 Ω resistor, 1/4 WK2 to K8gate series resistor
R4100 kΩ resistor, 1/4 WL2 to lower ground rail 2keeps the transistor off
Q1IRLZ44N logic-level N-channel MOSFET, TO-220G in I2, D in I3, S in I4switches the coil
D11N4007 diode (band = cathode)band end in D5, other end in D3absorbs the coil’s voltage spike
WireFromTo
Top: redA21+5 V rail 21
Top: blueC22C26
Top: greenJ22J26
Top: greenD23I26
Top: blackJ27lower ground rail 27
Top: blackJ21lower ground rail 21
Top: blackL4lower ground rail 4
Top: violetL23L8
Top: yellowE15H24
Top: blueE3G3
Top: redE5E7
Top: blackD9D11
Top: blackA11upper ground rail 11
Off board: blueCN1, the screw over A3solenoid, second wire
Off board: redCN1, the screw over A5solenoid, first wire
Off board: orangeCN2, the screw over A7coil supply +
Off board: blackCN2, the screw over A9coil supply −
  • The solenoid has its own power supply, matched to the coil (for example 12 V for a 12 V coil). Never feed the coil from the board’s rails or the ribbon cable. The only link between the two supplies is ground.
  • As a starting point, choose a coil of 24 V DC or less that draws 0.5 A or less. This is a suggestion, not a rating: the current and voltage limits of this board’s copper have not been established. Take the solenoid and its supply to the screw terminals CN1 and CN2, and keep those wires short. The terminals’ own ratings also apply.
  • Check the coil’s permitted duty cycle. Tapping holds it on about half the time, which can overheat a solenoid rated for short pulses.
  • Fit D1 with its band towards the supply positive wire. Reversed, it short-circuits the coil supply.
  • To change the speed, change R2: roughly 1.44 / ((R1 + 2 × R2) × C1) taps per second.
[switch]
tapper.enable = true
tapper.output_pin = PJ4
tapper.output_type = digital
tapper.input_on_command = M44
tapper.input_off_command = M45
tapper.startup_state = false
tapper.halt_set_to = false

Test with the coil supply off: M44 should make pin 3 of the chip pulse (a meter reads about half of 5 V) and M45 should return it to 0 V. Then switch the coil supply on. M400 before M44 makes the command wait for queued movement to finish. A software halt switches the output off; it is not a safety function.

Project 3: a stepper motor as a handwheel

Turn the shaft of a spare 4-wire stepper motor by hand and an axis moves, like the wheel on an MPG pendant. A turning stepper is a small generator: its two coils produce two alternating voltages a quarter cycle apart. The LM393 turns each into a clean 0 / 3.3 V square wave, giving the A and B signals of an incremental encoder. R5 and R6 add about 70 mV of calculated hysteresis so that noise does not produce counts.

The LM393 straddles the gap in the middle of the board: pins 1 to 4 sit in row G and pins 5 to 8 in row F, columns 21 to 24, with the notch towards the connectors. No track needs cutting and every wire goes on top.

Perma-proto board populated with an LM393 comparator, four diodes, passives and a four-pin screw terminal wired to a stepper motor
The handwheel interface. Encoder A goes to GPIO 5 (pin PJ3) and B to GPIO 7 (pin PJ2). Select the drawing to open it full size.
PartWhatHolesJob
CN14-pin screw terminal, 2.54 mm pitchpins in B2, B4, B6 and B8, wire entry towards the top edgedetachable motor connection
U1LM393 DIP-8 chippins 8, 7, 6, 5 in F21–F24; pins 1, 2, 3, 4 in G21–G24two comparators, one per coil
C2100 nF ceramic capacitor+5 V rail 20 to upper ground rail 20supply decoupling
R110 kΩ resistor, 1/4 W+5 V rail 27 to B27half of the 2.5 V reference
R210 kΩ resistor, 1/4 WC27 to C30half of the 2.5 V reference
C110 µF electrolytic capacitor, 16 V or more+ in E27, − in E28steadies the reference
R310 kΩ resistor, 1/4 WI5 to I9coil A input protection
R5470 kΩ resistor, 1/4 WK9 to K18hysteresis, channel A
R74.7 kΩ resistor, 1/4 WL18 to +3.3 V rail 18pull-up to 3.3 V, output A
D1BAT85 diode (band = cathode)band end in J9, other end in lower ground rail 7clamp to ground, channel A
D2BAT85 diode (band = cathode)band end in L12, other end in L9clamp to 5 V, channel A
R410 kΩ resistor, 1/4 WF8 to F12coil B input protection
R6470 kΩ resistor, 1/4 WK20 to K26hysteresis, channel B
R84.7 kΩ resistor, 1/4 WL20 to +3.3 V rail 20pull-up to 3.3 V, output B
D3BAT85 diode (band = cathode)band end in J26, other end in lower ground rail 25clamp to ground, channel B
D4BAT85 diode (band = cathode)band end in L29, other end in L26clamp to 5 V, channel B
WireFromTo
Top: redA21+5 V rail 21
Top: blackJ24lower ground rail 24
Top: blackA30upper ground rail 30
Top: blackA28upper ground rail 28
Top: violetA23A27
Top: violetD27K22
Top: greenH21H18
Top: yellowE22J20
Top: blueH9J23
Top: orangeB24H26
Top: redH12+5 V rail 12
Top: redH29+5 V rail 29
Top: redE2H5
Top: violetD4D6
Top: violetE6D23
Top: orangeC12C24
Off board: redCN1, the screw over B2motor coil A, first wire
Off board: greenCN1, the screw over B4motor coil A, second wire
Off board: yellowCN1, the screw over B6motor coil B, second wire
Off board: blueCN1, the screw over B8motor coil B, first wire
  • Use a motor that is connected to nothing else, in particular not to a stepper driver. Find each coil pair with a meter: the two wires of one coil show a low resistance.
  • Use Schottky diodes such as BAT85 for D1 to D4. The comparator inputs must not go much below 0 V.
  • Turn the shaft firmly. Very slow turning produces too little voltage to count, and a motor with more turns or a higher inductance works at lower speed. Spin it by hand only, never with a drill.
  • If the axis moves the wrong way, swap the two wires of one coil.
[mpg]
x.enable = true
x.enca_pin = PJ3
x.encb_pin = PJ2
x.mmperpulse = 0.1

The MPG module reads the two pins as interrupts and counts one pulse per full A/B cycle. A 200-step (1.8°) motor gives a calculated 50 pulses per turn, so 0.1 moves X by 5 mm per turn at the axis’s maximum rate. M922 X0.01 changes the distance while running. Replace x. with y. or z. for another axis, or use shared. to pick the axis with M922. The two pins must have different pin numbers (here 3 and 2) that no other interrupt uses. This syntax needs firmware that includes the linked version of the module; older builds used axis = keys instead.

Test with motor power disconnected from the machine’s drivers or the axis free to move: check that A and B each switch between about 0 V and 3.3 V as you turn, then turn one revolution and compare the reported X position.

Project 4: delay the STEP and DIR signals

This circuit takes a STEP and a DIR signal from two Gadgeteer pins and passes them to an external stepper driver a fixed time later: about 1, 10 or 20 µs, set by the capacitors you fit. A signal turns on later and turns off later. A DIP switch chooses whether STEP, DIR or both are delayed. Use it when one signal has to arrive after the other, for example to give a driver more time between a direction change and the next step, or to line up one motor with another that has a slower signal path.

What it looks like in time. The graph shows the 10 µs setting. The dashed lines mark when the controller changes a pin; the white bars are the delay.

Timing of STEP and DIR over 120 microseconds: at the controller pins, and at the output with both signals delayed by 10 microseconds, only STEP delayed, and only DIR delayed.At the controller pins (input)STEP in (PB1)DIR in (PJ4)Output: both delayed (switches 2 and 4 on)STEP outDIR out10 µs10 µsOutput: only STEP delayed (switches 2 and 3 on)STEP outDIR out10 µsOutput: only DIR delayed (switches 1 and 4 on)STEP outDIR out10 µs020406080100120time in µs
Calculated, typical, not measured. The controller’s STEP pulse is drawn 3 µs wide; a delayed STEP pulse leaves with the width set by R2 and C2, about 3.2 µs, so it ends one delay later plus any difference between the two widths. The few tens of nanoseconds the chips add are not drawn.

How it works

  • STEP pulses are only a few microseconds long, shorter than most of these delays. A resistor and capacitor alone would swallow them, so the CD74HC123 does it with two one-shot timers. The first starts when STEP rises and runs for the delay (R1 with C1). When it ends, it starts the second, which sends out a new pulse about 3.2 µs long (R2 with C2).
  • DIR stays at one level for much longer than the delay, so a resistor slowly charging a capacitor is enough. The SN74HC14 inverter switches only when that voltage crosses its threshold. Two such stages in a row (R3 with C3, R4 with C4) invert the signal twice, and each edge passes one charging and one discharging stage, so turning on and turning off are delayed by the same calculated time.
  • SW1 connects each screw of CN1 either to the controller pin or to the delayed signal.
You want delayedSwitch 1Switch 2Switch 3Switch 4
STEP and DIRoffONoffON
STEP onlyoffONONoff
DIR onlyONoffoffON
Neither (straight through)ONoffONoff

Set switches with the controller off. In each pair (1 and 2, 3 and 4) turn exactly one on: with both off that output is not connected, and with both on the direct signal wins while R5 or R6 limits the current. The drawings show 2 and 4 on.

Which capacitors

Version A uses one fixed capacitor per position. Version B adds a screwdriver-adjustable (trimmer) capacitor beside a smaller fixed one, and uses different values for R1, R3 and R4. Use C0G (NP0) ceramic capacitors.

Version A, fixed capacitors

Delay you wantC1 (STEP)C3 and C4 (DIR)Calculated STEP / DIR
1 µs220 pF47 pF1.0 / 1.0 µs
10 µs2.2 nF510 pF10.3 / 9.9 µs
20 µs4.3 nF1 nF20.2 / 19.3 µs

Version B, fixed capacitor beside each trimmer

Delay you wantC1, beside VC1C3 and C4, beside VC2 and VC3Trimmer range, STEPTrimmer range, DIR
1 µsnonenone0.6 to 2.6 µs0.5 to 2.3 µs
10 µs180 pF200 pF9.0 to 11.0 µs9.0 to 10.8 µs
20 µs390 pF430 pF18.9 to 20.9 µs18.7 to 20.5 µs

All delays are calculated from typical datasheet figures at 3.3 V, with 5 pF assumed for the board and chip input where it matters; none has been measured. Chips differ: the DIR delay of a particular SN74HC14 can be roughly half to one and a half times the figure shown, because its switching thresholds vary. The STEP delay varies less, but the formula used here underestimates it for small capacitors, most at 1 µs. If the delay matters, build version B and set it with an oscilloscope; if the trimmer cannot reach it, change the fixed capacitor beside it by one step.

Version A: fixed capacitors

Perma-proto board with a 74HC123, a 74HC14, a four-position DIP switch, fixed capacitors, resistors and a three-pin screw terminal wired to a stepper driver
Version A. Green brings STEP from GPIO 1 (pin PB1); yellow brings DIR from GPIO 2 (pin PJ4). Select the drawing to open it full size.

Version B: screwdriver trimmers

The same delay circuit with three screwdriver trimmer capacitors VC1, VC2 and VC3 added
Version B adds VC1 (STEP), VC2 and VC3 (DIR) and one wire from A20 to A23. Select the drawing to open it full size.

Parts and wires

Both chips straddle the middle gap with the notch towards the connectors. No track needs cutting. The chips run from the +3.3 V rail; the +5 V rail is not used.

PartA: fixed capacitorsB: trimmersHolesJob
U1CD74HC123 DIP-16 dual one-shot timersamepins 16 to 9 in F21–F28; pins 1 to 8 in G21–G28delays STEP and rebuilds the pulse
U2SN74HC14 DIP-14 Schmitt-trigger inverterssamepins 14 to 8 in F1–F7; pins 1 to 7 in G1–G7delays DIR
SW14-position DIP switchsamepositions 1 to 4 across the gap: F9/G9, F10/G10, F11/G11, F12/G12, ON towards the top edgepicks delayed or direct for each signal
CN13-pin screw terminal, 5.08 mm pitchsamepins in B9 (STEP), B11 (DIR), B13 (GND), wire entry towards the top edgelead to the stepper driver
R110 kΩ100 kΩD22 to D26sets the STEP delay with C1
C1see the table abovesee the table above (nothing for 1 µs)B22 to B23sets the STEP delay
VC1not fitted7–50 pF trimmerC20 to C22fine adjustment of STEP
R210 kΩ10 kΩL27 to +3.3 V rail 27sets the output pulse width with C2
C2680 pF680 pFK26 to K27output STEP pulse of about 3.2 µs
R310 kΩ22 kΩD2 to D8first DIR delay stage
R410 kΩ22 kΩL5 to L8second DIR delay stage
C3see the table abovesee the table above (nothing for 1 µs)E2 to E4first DIR delay stage
C4same value as C3same value as C3J5 to J7second DIR delay stage
VC2not fitted7–50 pF trimmerB2 to B4fine adjustment of the first DIR stage
VC3not fitted7–50 pF trimmerH5 to H7fine adjustment of the second DIR stage
R5330 Ω330 ΩI25 to I29limits current if switches 1 and 2 are both on
R6330 Ω330 ΩI6 to I12limits current if switches 3 and 4 are both on
R7100 kΩ100 kΩK22 to lower ground rail 22holds STEP low while the pin is not driven
R8100 kΩ100 kΩK11 to lower ground rail 11holds DIR low while the pin is not driven
C5, C6100 nF ceramic100 nF ceramicC5: B21 to upper ground rail 21; C6: B1 to upper ground rail 1supply decoupling, one per chip
WireFromTo
Top: redE21E26
Top: red+3.3 V rail 29B26
Top: redK23+3.3 V rail 23
Top: red+3.3 V rail 1D1
Top: blackL21lower ground rail 21
Top: blackL28lower ground rail 28
Top: blackA28upper ground rail 28
Top: blackA4upper ground rail 4
Top: blackA6upper ground rail 6
Top: blackL1lower ground rail 1
Top: blackL3lower ground rail 3
Top: blackK7lower ground rail 7
Top: blackE13upper ground rail 14
Top: violetJ24E27
Top: orangeE3J8
Top: yellowD15E8
Top: yellowE15H11
Top: greenH14H9
Top: greenL14J22
Top: blueL29J10
Top: whiteE9E10
Top: yellowE11E12
Version B only, top: blueA20A23
Off board: whiteCN1, the screw over B9driver STEP input
Off board: yellowCN1, the screw over B11driver DIR input
Off board: blackCN1, the screw over B13driver logic ground

Limits

  • Step rate. A step that arrives before the STEP timer has finished restarts it, and steps are lost. Keep the step rate below about 150,000 per second at 1 µs, 70,000 at 10 µs and 35,000 at 20 µs (calculated, with margin). The step rate is steps_per_mm × speed in mm/s; for example 400 steps/mm at 30 mm/s is 12,000 per second.
  • Outputs are 3.3 V logic from a small chip, through 330 Ω when delayed. Connect them to driver inputs specified for 3.3 V logic. Do not assume they can drive an opto-isolated input: check its current and voltage, and add a buffer if needed.
  • Power-up. The timer can send one stray STEP pulse as power comes on. Home the axis after switching on.
  • Polarity. The STEP timer reacts to the rising edge, so do not invert the step pin with !. DIR may be inverted.

Setup

Give one motor the two Gadgeteer pins as its STEP and DIR pins. This example moves the Z motor (gamma) to an external driver, so the controller’s own Z driver output no longer steps; change these lines in your existing gamma settings. It claims PB1 and PJ4, which the other projects on this page also use.

[actuator]
gamma.driver = external
gamma.step_pin = PB1
gamma.dir_pin = PJ4

The controller’s default STEP pulse (step_pulse_us = 1 in the [system] section) works with this circuit and needs no change. These keys are read by the motion setup in the firmware.

Test before connecting the driver: with an oscilloscope, put one probe on the controller pin side (column 14, rows G–L, for STEP; column 15, rows A–E, for DIR) and one on the CN1 screw, then jog Z slowly. The output edge should follow the input edge by the delay you chose. In version B, turn VC1 for STEP, and VC2 and VC3 by equal amounts for DIR, with a plastic trimming tool, and read the delay with the tool removed.

Troubleshooting

SymptomCheck
Nothing respondsCheck the pin in the table above, the cable numbering, and that the setting loaded without an error at start-up.
A signal is always activeLook for a solder bridge between neighbouring columns, or a wire in the wrong half of a column.
A power lamp is darkCheck the cable and controller power, then that the rail jumper and the lamp jumper are closed.
One strip hole stays deadCheck that the gold link beside it has not been cut or scratched through.
Nothing on the chain connectorJ2 carries only what you wire to J3; check each wire and the pin numbering.
Controller resets or the supply dropsUnplug at once and check for a short between a rail and ground, then the load on the 5 V and 3.3 V rails.
Touch plate does nothingTest the LED with M42; touch near mains-powered equipment; check the transistor E, B, C order against its datasheet.
Tapper silentMeasure chip pin 4 (near 3.3 V when on) and pin 8 (5 V); then check the coil supply, the chip’s orientation and the wires.
Handwheel does not move the axisCheck both outputs switch, the coil pairs, and that the start-up log shows the MPG loaded.
Handwheel jitters back and forthOne channel is not switching: check its coil wires, feedback resistor and clamp diodes.
No delayed STEP pulsesCheck switch 2 is on and switch 1 off, the violet wire J24 to E27, and 3.3 V on chip pins 3, 11 and 16 of U1.
Delayed axis loses stepsThe step rate is too high for the delay: lower the speed or use a shorter delay.
DIR delay far from the tableNormal spread between chips: change C3 and C4 together, or build version B.

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

Downloads

FileWhat it is
Schematic (PDF)The complete circuit diagram
Parts list (CSV)Every component with its value and footprint
Board drawing (WebP)The top view used on this page
CAD files (ZIP)KiCad 9 board, schematic, footprints and licence texts (CERN-OHL-S-2.0)
Button drawing (WebP)Populated board, full size
Touch switch drawing (WebP)Populated board, full size
Tapper drawing (WebP)Populated board, full size
Handwheel drawing (WebP)Populated board, full size
Delay drawing, fixed capacitors (WebP)Populated board, full size
Delay drawing, trimmers (WebP)Populated board, full size

Appendix: mounting dimensions

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.

Mounting drawing of the Perma-proto breadboard, component side: outline 110 by 60 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 110 60 0, 0 X Y 1 5.00, 5.00 2 105.00, 5.00 3 5.00, 55.00 4 105.00, 55.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 110 × 60 mm, corners rounded to a 3 mm radius, 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
15.005.003.2 mm, not platedMounting, M3 screw
2105.005.003.2 mm, not platedMounting, M3 screw
35.0055.003.2 mm, not platedMounting, M3 screw
4105.0055.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Limits of the bare board. A dash means “does not apply”; Open means not established.

ParameterApplies toLowerNominalUpperBasis and conditions
Supply voltage+5 V rail—5 VOpenFrom the controller
Supply voltage+3.3 V rail—3.3 VOpenFrom the controller
Supply currentEach positive rail——100 mADesign target; the controller and cable may allow less
Signal voltageSeven GPIO columns0 V—3.3 VController logic level
Lamp currentRed, orange1.7 mA, 1.3 mA—2.0 mA, 1.9 mACalculated from 1.5 kΩ and 680 Ω resistors for an assumed 2.0–2.4 V lamp voltage; counts toward the rail load
Copper currentStrips and rails——OpenNot established
Voltage between neighbouring holesWhole board——OpenLow voltage only

Appendix: datasheets

The first page of each important chip’s datasheet. Click a page to open the PDF.

First page of the TLC555 datasheet
TLC555 LinCMOS Timer — Texas Instruments, 47 pages.
First page of the LM393 datasheet
LM393B, LM2903B, LM193, LM293, LM393 and LM2903 Dual Comparators — Texas Instruments, 56 pages.
First page of the IRLZ44N datasheet
IRLZ44NPbF HEXFET Power MOSFET — Infineon (International Rectifier), 10 pages.
First page of the CD74HC123 datasheet
CD54/74HC123 Dual Retriggerable Monostable Multivibrators with Reset — Texas Instruments, 24 pages.
First page of the SN74HC14 datasheet
SNx4HC14 Hex Inverters with Schmitt-Trigger Inputs — Texas Instruments, 38 pages.

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.