Extension board · Controls and displays

Linear slide potentiometer

A 30 mm slider that gives the controller a voltage between 0 and 3.3 V. Solder links choose which of three analogue contacts it uses, so up to three of these boards can share one socket. No firmware module reads a general analogue input yet, so using the value takes your own driver.

Top view of the slide potentiometer board: a ten-contact socket on each short edge and the long slider across the lower half.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
1 sliderBourns PTA3043, 10 kΩ linear
30 mmtravel
0 to 3.3 Vratiometric output
3 contactsselectable: 3, 4 or 5
2 socketstype A input and chain
90 × 40millimetres, four M3 holes

Tech specs

PurposeA manual override slider in your own software
ControlBourns PTA3043 slide series, 30 mm travel, 10 kΩ linear taper; choose the lever style when ordering
Output0 to 3.3 V through 1 kΩ, with 100 nF to ground
Supply3.3 V from the socket, about 0.33 mA
SocketsTwo 10-contact Gadgeteer type A sockets (Samtec SHF-105, 1.27 mm): input and chain
Test pointsOn the underside: 3.3 V, ground and wiper
Size90 × 40 mm, four M3 mounting holes
Works withSmoothieboard V2 Prime header GH electrically; no firmware module reads the value
LicenceOpen 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.

Board tour

The numbers on the drawing match the list below it. The board is shown from the component side.

  1. 1
    Input socket A IN (J1) — The type A socket to the controller. As delivered the slider is on contact 3.
  2. 2
    Chain socket CHAIN (J2) — Passes the other contacts to the next board.
  3. 3
    Slide potentiometer (RV1) — The wiper voltage rises from 0 to 3.3 V over its travel.
  4. 4
    Series resistor (R1) — 1 kΩ in the wiper path; it also limits current if two boards drive one contact by mistake.
  5. 5
    Filter capacitor (C1) — 100 nF to ground, smoothing the wiper signal.
  6. 6
    Contact selectors (JP23 to JP25) — Close exactly one: it sends the slider to contact 3, 4 or 5. JP23 is closed as delivered.
  7. 7
    Chain links (JP3 to JP5) — Connect contacts 3, 4 and 5 on to the chain socket. JP3 is open, JP4 and JP5 closed as delivered.
  8. 8
    Mounting hole — One of four M3 holes, not connected to ground.
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

Check contact numbering with the power removed before wiring by hand.

J1: input socket (A IN)

ContactSignalUsePrime header GH
13.3 VPotentiometer supply3.3 V
25 VPassed to the chain only5 V
3WIPERSlider voltage as delivered (JP23)PC3 (ADC1_5)
4SelectableSlider voltage with JP24PA3 (ADC1_6)
5SelectableSlider voltage with JP25PC2 (ADC1_4)
6 to 9Passed throughNot usedPF2, PI10, PH7, PB12
10GNDGroundGND

What you need

A controller socketPrime header GH has analogue inputs on contacts 3, 4 and 5.
A ten-way cable1.27 mm Gadgeteer ribbon cable.
A slider capTo suit the lever of the potentiometer you order.
Your own driverCode that reads one analogue input; none is supplied.

Get started

Minimum wiring: contact 1 to contact 1, 3.3 V; PC3, contact 3 to contact 3, slider voltage; contact 10 to contact 10, ground. Prime header GH (J39) Slider J1 contact 1contact 13.3 V PC3, contact 3contact 3slider voltage contact 10contact 10ground
Three connections as delivered.
  1. Mount the board

    Use the four M3 holes. A panel needs a slot at least as long as the travel.

  2. Connect with the power off

    Plug J1 into header GH. Never feed the potentiometer from 5 V.

  3. Check the output

    Power up and measure between the ground and wiper test points while moving the slider.

    By design the voltage moves smoothly between about 0 and 3.3 V. Note which end of travel gives 0 V.

Configuration

You wantModuleExample
Read the slider positionNoneNo SmoothieV2 module reads a general analogue input
Use it as a speed overrideNoneNeeds your own driver or host script

There is nothing to add to config.ini. The analogue contacts of header GH are ADC1_5, ADC1_6 and ADC1_4 in SmoothieV2.

How it works

The potentiometer divides the 3.3 V supply; a resistor and capacitor filter the wiper before the selector link. 3.3 Vacross the element RV1position sets ratio 1 k + 100 nFfilter JP23 to JP25contact 3, 4 or 5
One signal path, no active parts.

The wiper gives a fraction of the 3.3 V supply that follows the lever. The controller’s converter measures against the same rail, so the reading depends on position, not on the exact voltage. A controller input draws very little current: with a 1 MΩ load the simulated error is below 0.2 % of the range.

Solder links

To move the slider to contact 4: open JP23, close JP24, close JP3 so contact 3 passes on, and open JP4. For contact 5: open JP23, close JP25, close JP3 and open JP5. Every board in one chain must use a different contact.

Solder links as delivered: JP3 open; JP4 closed; JP5 closed; JP23 closed; JP24 open; JP25 open. JP3 · openchain contact 3 JP4 · closedchain contact 4 JP5 · closedchain contact 5 JP23 · closedslider to contact 3 JP24 · openslider to contact 4 JP25 · openslider to contact 5
The links as delivered. Close one with a small blob of solder across both pads; open it by removing the solder or cutting the copper between the pads.
LinkWhat it doesAs delivered
JP3Joins contact 3 to the chain socketOpen
JP4Joins contact 4 to the chain socketClosed
JP5Joins contact 5 to the chain socketClosed
JP23Puts the slider on contact 3Closed
JP24Puts the slider on contact 4Open
JP25Puts the slider on contact 5Open

Chaining

Up to three analogue boards of this kind can share one socket, each on its own contact.

The controller's ribbon cable goes to the connector A IN of the slide potentiometer board. Inside the board each of the ten pins runs through a solder link to the connector 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 slide potentiometer board A IN CHAIN pin 3, slider stops here pin 4, free passed on pin 5, free passed on one solder link per pin Next board sees what is passed on
Chaining: one port of the controller serves two boards. Pin 1 of A IN leads to pin 1 of 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. As delivered, pin 3 stops here and pins 4 and 5 pass on.
ContactSignalOn CHAIN
1, 2, 10Power and groundPassed on
3SliderStopped by open JP3
4, 5Free analogue inputsPassed on
6 to 9FreePassed on

Troubleshooting

SymptomLikely causeWhat to check
Output stays at 0 VNo selector closed, or no 3.3 VExactly one of JP23 to JP25 closed; test point 3.3 V
Two sliders move one readingBoth boards on the same contactGive each board its own contact
Slider not seen by the next boardChain link still closed on the used contactOpen the chain link of the contact this board uses
Reading is noisyLong cable or motor interferenceShorten the cable, route it away from motor wires, average in software

The board has no indicator lights; measure at the test points.

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

Downloads

FileWhat 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; the slider body is an approximate model
3D view, angled (PNG)Rendered from the design files; the slider body is an approximate model

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 slide potentiometer board, component side: outline 90 by 40 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 90 40 0, 0 X Y 1 5.00, 5.00 2 85.00, 5.00 3 5.00, 35.00 4 85.00, 35.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 90 × 40 mm, corners rounded to a 1 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
285.005.003.2 mm, not platedMounting, M3 screw
35.0035.003.2 mm, not platedMounting, M3 screw
485.0035.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

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.

ParameterApplies toLowerNominalUpperBasis
Supply voltageJ1 contact 1—3.3 V—Design
Element resistanceRV18 kΩ10 kΩ12 kΩBourns data sheet, ±20 %
Supply current3.3 V—0.33 mA0.41 mACalculated
Output voltageSelected contact0 V—3.3 VDesign; end resistance leaves a small offset
TravelLever—30 mm—Bourns data sheet
Operating forceLever30 gf—250 gfBourns data sheet
Sliding lifeRV1—15 000 cycles—Bourns data sheet
Operating temperatureRV1−10 °C—+50 °CBourns data sheet
Settling to within 1.4 %Selected contact—1.6 ms—Simulated
Loading error, 1 MΩ inputSelected contact—0.17 %—Simulated

Component stress limits

PartLimitUse on this board
Element power0.2 WAbout 1.1 mW (calculated)
Element voltage200 V DC3.3 V
Filter capacitor16 V3.3 V

Appendix: simulation

The wiper filter was simulated with ngspice at mid travel, where the potentiometer’s source resistance is highest, with a 1 MΩ input load.

Each simulated value (yellow mark) against its allowed range (green band). Settling to within 1.4 % after a step1.6 ms Loading error with a 1 Mohm input, percent of range174 m%
Simulated value (yellow) against the limit used for it (green). Each bar has its own scale.
ResultSimulated valueLimitOutcome
Settling to within 1.4 % after a step1.6 msat most 5 msWithin
Loading error with a 1 Mohm input, percent of range174 m%at most 500 m%Within

Not simulated: the element’s linearity, noise and wear, and the controller’s input sampling.

Appendix: datasheet

The first page of the manufacturer data sheet. Click the page to open the PDF.

First page of the PTA series low profile slide potentiometer datasheet
PTA series low profile slide potentiometer — Bourns, 5 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.