Extension board · Sensors and inputs
A magnetic field sensor whose output voltage rises and falls with the field of a nearby magnet, for sensing distance or a passing magnet. It sits at half supply with no magnet. No firmware module reads a general analogue input yet, so using the value takes your own driver.
| Purpose | Measuring the distance to a magnet or detecting a passing magnet. For an on/off endstop use an endstop board instead; not for safety interlocks |
| Sensor | Texas Instruments DRV5055A3QDBZR, senses the field perpendicular to the board |
| Output | About 1.65 V with no field, rising for a south pole at the top face, through 1 kΩ and 100 nF |
| Supply | 3.3 V from the socket, 2 mA typical, 4 mA maximum |
| Sockets | Two 10-contact Gadgeteer type A sockets (Samtec SHF-105, 1.27 mm): input and chain |
| Test points | On the underside: 3.3 V, ground and output |
| Size | 50 × 55 mm, four M3 holes on a 40 × 40 mm pattern |
| Works with | Smoothieboard V2 Prime header GH electrically; no firmware module reads the value |
| Licence | Open 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.
The numbers on the drawing match the list below it. The board is shown from the component side.
1Input socket A IN (J1) — The type A socket to the controller. As delivered the sensor is on contact 3.
2Chain socket CHAIN (J2) — Passes the other contacts to the next board.
3Hall sensor (U1) — Bring the magnet to its top face, at the SENSOR marking.
4Supply capacitor (C1) — 100 nF next to the sensor.
5Output filter (R1, C2) — 1 kΩ and 100 nF, a corner near 1.6 kHz.
6Contact selectors (JP23 to JP25) — Close exactly one: contact 3, 4 or 5. JP23 is closed as delivered.
7Chain links (JP3 to JP5) — JP3 is open, JP4 and JP5 closed as delivered.
8Mounting hole — One of four M3 holes, not connected to ground. Use non-magnetic screws near the sensor.
Check contact numbering with the power removed before wiring by hand.
| Contact | Signal | Use | Prime header GH |
|---|---|---|---|
| 1 | 3.3 V | Sensor supply | 3.3 V |
| 2 | 5 V | Passed to the chain only | 5 V |
| 3 | OUT | Field voltage as delivered (JP23) | PC3 (ADC1_5) |
| 4 | Selectable | Field voltage with JP24 | PA3 (ADC1_6) |
| 5 | Selectable | Field voltage with JP25 | PC2 (ADC1_4) |
| 6 to 9 | Passed through | Not used | PF2, PI10, PH7, PB12 |
| 10 | GND | Ground | GND |
Keep steel parts and motors away from the sensor, and fix the magnet so its path is repeatable.
Plug J1 into header GH.
Power up with no magnet nearby and measure between the ground and output test points.
The data sheet gives 1.59 to 1.71 V at 3.3 V and 25 °C.
Approach the top of the board above the marking SENSOR and watch the voltage.
By the data sheet a south pole raises the output and a north pole lowers it.
| You want | Module | Example |
|---|---|---|
| Read the field strength | None | No SmoothieV2 module reads a general analogue input |
| Use it as an endstop | None | Use an endstop board with an on/off output |
There is nothing to add to config.ini. The analogue contacts of header GH are ADC1_5, ADC1_6 and ADC1_4 in SmoothieV2.
The output sits at half the supply with no field and moves about 15 mV for each millitesla. Both the rest voltage and the sensitivity scale with the supply, and so does the controller’s converter. Field strength falls steeply and non-linearly with distance, so calibrate with your own magnet if you want millimetres. Sensitivity also rises with temperature, about 0.12 % per degree typically.
To move the sensor 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.
| Link | What it does | As delivered |
|---|---|---|
| JP3 | Joins contact 3 to the chain socket | Open |
| JP4 | Joins contact 4 to the chain socket | Closed |
| JP5 | Joins contact 5 to the chain socket | Closed |
| JP23 | Puts the sensor on contact 3 | Closed |
| JP24 | Puts the sensor on contact 4 | Open |
| JP25 | Puts the sensor on contact 5 | Open |
Further analogue boards can share the socket, each on a different contact.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3 | Sensor | Stopped by open JP3 |
| 4, 5 | Free analogue inputs | Passed on |
| 6 to 9 | Free | Passed on |
| Symptom | Likely cause | What to check |
|---|---|---|
| Output stays at 0 V | No selector closed, or no 3.3 V | Exactly one of JP23 to JP25 closed; test point 3.3 V |
| No change with a magnet | Field parallel to the board, or magnet too weak or far | Turn a pole towards the top of the sensor and move closer |
| Output moves the wrong way | Opposite pole facing the sensor | Turn the magnet over |
| Output stuck near a rail | Field beyond the linear range | Move the magnet away or use a weaker one |
| Reading shifts without the magnet moving | Nearby steel, motor fields or temperature | Relocate the board and calibrate in place |
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.
| File | What 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 |
| 3D view, angled (PNG) | Rendered from the design files |
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.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 5.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 45.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 45.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 45.00 | 45.00 | 3.2 mm, not plated | Mounting, M3 screw |
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.
| Parameter | Applies to | Lower | Nominal | Upper | Basis |
|---|---|---|---|---|---|
| Supply voltage | J1 contact 1 | 3.0 V | 3.3 V | 3.63 V | TI data sheet, 3.3 V operating range |
| Supply current | 3.3 V | — | 2 mA | 4 mA | TI data sheet |
| Output with no field | U1, 25 °C | 1.59 V | 1.65 V | 1.71 V | TI data sheet |
| Sensitivity | U1 | — | 15 mV/mT | — | TI data sheet, A3 at 3.3 V |
| Linear range | U1 | — | ±88 mT | — | TI data sheet |
| Linear output swing | U1 | 0.2 V | — | 3.1 V | TI data sheet |
| Filter corner | Selected contact | — | 1.6 kHz | — | Calculated and simulated |
| Settling after a field step | Selected contact | — | 0.46 ms | — | Simulated |
| Part | Limit | Use on this board |
|---|---|---|
| Sensor supply | 7 V absolute maximum | 3.3 V |
| Sensor output current | ±1 mA | Limited by controller input; keep the load high |
| Capacitors | 16 V | 3.3 V |
The output filter was simulated with ngspice with a 0.9 V step, as a sudden field change would produce.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Settling after a field step | 463 µs | at most 1 ms | Within |
| Filter corner frequency | 1.59e+03 Hz | 1e+03 Hz to 2e+03 Hz | Within |
Not simulated: the magnetic response, offset and temperature drift, because no sensor model is available.
The first page of the manufacturer data sheet. Click the page to open the PDF.
See all boards on the extension boards page.