Extension board · Sensors and inputs
Measures the current in a low-voltage DC wire, such as a spindle or heater supply, and reports it as a voltage the controller can read. The measured circuit stays isolated from the signal side inside the sensor.
| Purpose | Watching the current of a 12 or 24 V load, or detecting a stalled or open load |
| Sensor | Allegro ACS712ELCTR-20A-T, 1.2 mΩ path, 100 mV/A nominal (96 to 104) |
| Outputs | Contact 3: current signal; contact 4: monitor of the 5 V supply, both scaled by 18/28 |
| Bandwidth | About 2.5 kHz |
| Supply | 4.5 to 5.5 V from the socket, about 10 mA |
| Connectors | Two-way 5 mm screw terminal in series with one conductor; two Gadgeteer type A sockets |
| Size | 60 × 40 mm, four M3 holes on a 50 × 30 mm pattern; 2 oz copper recommended |
| Works with | Smoothieboard V2 Prime header GH electrically; no firmware module scales the reading |
| 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.
1Current terminal (J3) — One wire of the measured circuit goes in at IN and leaves at OUT.
2Current sensor (U1) — Current flows through one side; the signal leaves isolated on the other.
3Input socket A IN (J1) — Current on contact 3, supply monitor on 4.
4Chain socket CHAIN (J2) — Contacts 5 to 9 pass through.
5Signal divider (R1, R2) — 10 kΩ and 18 kΩ, 0.1 %.
6Monitor divider (R3, R4) — Reports the 5 V rail with the same ratio.
7Filter capacitor (C3) — Sets the sensor bandwidth.
8Supply capacitors (C1, C2) — On the sensor 5 V.
9Chain links (JP3, JP4) — Open as delivered.
10Mounting hole — One of four M3 holes. Keep hardware clear of the current copper.
The terminal side and the socket side must never be connected to each other.
| Terminal | Use |
|---|---|
| IN | From the supply side. Current entering here reads positive |
| OUT | To the load side |
| Contact | Signal | Use | Prime header GH |
|---|---|---|---|
| 1 | 3.3 V | Passed to the chain | 3.3 V |
| 2 | 5 V | Sensor supply | 5 V |
| 3 | I_OUT | Current signal | PC3 (ADC1_5) |
| 4 | V_MON | 5 V monitor | PA3 (ADC1_6) |
| 5 to 9 | Passed through | Not used | PC2, PF2, PI10, PH7, PB12 |
| 10 | GND | Signal ground | GND |
Switch off and discharge the measured circuit and the controller.
Break one conductor; supply side to IN, load side to OUT. Tighten firmly and relieve strain.
Plug J1 into header GH.
Power the controller with the load off and measure test points I_OUT and V_MON.
By design about 1.61 V and 3.21 V.
Apply a known current and compare. Watch the temperature of terminals and copper on the first long run.
I_OUT should rise by about 0.064 V per ampere.
| You want | Module | Example |
|---|---|---|
| Show amperes | None | No SmoothieV2 module scales this sensor |
There is nothing to add to config.ini. Your own software computes the current as (V3 - zero) / (0.0643 * V4 / 3.214), where V3 and V4 are the voltages on contacts 3 and 4 and zero is the contact 3 reading at no current, scaled the same way.
The sensor senses the magnetic field of the current in its internal conductor, so no electrical connection exists between the two sides. Its output sits at half the 5 V supply and moves by 100 mV per ampere. The divider keeps it under 3.3 V even if it reaches the supply rail. Because both zero and scale follow the 5 V supply, the second divider lets software correct for it.
Leave both links open unless another board is meant to read the same signals.
| Link | What it does | As delivered |
|---|---|---|
| JP3 | Joins the current signal to the chain | Open |
| JP4 | Joins the monitor to the chain | Open |
Contacts 5 to 9 are free for a further board.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3, 4 | Signals | Stopped by open links |
| 5 to 9 | Free | Passed on |
| Symptom | Likely cause | What to check |
|---|---|---|
| Reading stuck near zero volts | No 5 V | Test point +5V |
| Zero is not exactly 1.61 V | 5 V tolerance and sensor offset | Record the zero and use the monitor |
| Current reads negative | IN and OUT exchanged | Swap with the power off, or invert in software |
| Noisy reading | Switching loads | Average many samples |
| Terminal or copper hot | Loose connection or too much current | Switch off at once |
The board has no indicator lights; use 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. Keep metal spacers and wiring away from the current terminal and copper; keep strong magnets and heavy wires away from the sensor.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 5.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 55.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 35.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 55.00 | 35.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 |
|---|---|---|---|---|---|
| Measured circuit voltage | J3 | — | — | 30 V DC | Design limit |
| Continuous current | J3 | — | — | 15 A | Design target |
| Supply | 5 V | 4.5 V | 5 V | 5.5 V | Allegro data sheet |
| Zero-current output | Contact 3 | 1.59 V | 1.607 V | 1.62 V | Simulated at 5.00 V |
| Output with VIOUT at 4.5 V | Contact 3 | 2.85 V | 2.89 V | 2.93 V | Simulated |
| Highest possible output | Contact 3 | — | 3.21 V | 3.3 V | Simulated |
| Filter step response, 90 % | Contact 3 | — | 0.15 ms | 0.3 ms | Simulated |
| Heat in the sensor path at 15 A | U1 | — | 0.27 W | — | Calculated |
| Part | Limit | Use on this board |
|---|---|---|
| Measured voltage | 30 V DC | 12 or 24 V circuits |
| Current | 15 A target | Fuse upstream |
| Isolation | Not certified | Low voltage only |
The output dividers and filter were simulated with ngspice.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Output at zero current | 1.61 V | 1.59 V to 1.62 V | Within |
| Output with VIOUT at 4.5 V (+20 A) | 2.89 V | 2.85 V to 2.93 V | Within |
| Divider gain | 643 mV/V | 640 mV/V to 646 mV/V | Within |
| 90 % step response of the output filter | 148 µs | at most 300 µs | Within |
| Highest output with VIOUT at the 5 V rail | 3.21 V | at most 3.3 V | Within |
Not simulated: the temperature rise of the current path, which sets the real current limit, and the sensor itself.
The first page of the sensor data sheet. Click the page to open the PDF.
See all boards on the extension boards page.