Extension board · Controls and displays
Four bright RGB LEDs that all show the same colour, mixed from three controller PWM pins. Use it as a coloured machine status light or workspace accent.
| Purpose | A coloured status or accent light. Not a safety indicator |
| LEDs | Four Inolux IN-P55TATRGB, one resistor per colour per LED |
| Control | 3.3 V PWM, high is on; 100 kΩ pull-downs keep the lights off |
| Supply | 5 V from the socket; JP20 cuts LED power |
| Sockets | Two 10-contact Gadgeteer type P sockets (Samtec SHF-105, 1.27 mm): input and chain |
| Size | 80 × 80 mm, four M3 holes on a 70 × 70 mm pattern |
| Works with | Smoothieboard V2 Prime header GD (PWM1_2, PWM1_3, PWM1_4) |
| 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 P IN (J1) — Red on contact 7, green on 8, blue on 9; 5 V on 2.
2Chain socket CHAIN (J2) — Next board.
3RGB LEDs (D1 to D4) — All four are driven together.
4Colour switches (Q1 to Q3) — One MOSFET per colour.
5Gate resistors (R1 to R6) — Series resistors and pull-downs.
6LED resistors (R10 to R21) — 180 Ω for red, 120 Ω for green and blue.
7Supply capacitor (C1) — 10 µF on the LED supply.
8LED power link (JP20) — Closed as delivered; open it to cut power to the LEDs.
9Chain links (JP7 to JP9) — Open as delivered.
10Mounting hole — One of four M3 holes.
Check contact numbering with the power removed before wiring by hand.
| Contact | Signal | Use | Prime header GD |
|---|---|---|---|
| 1 | 3.3 V | Passed to the chain | 3.3 V |
| 2 | 5 V | LED supply | 5 V |
| 3 to 6 | Passed through | Not used | PE7, PD8, PB11, PE9 |
| 7 | RED | High = red on | PE11 (PWM1_2) |
| 8 | GREEN | High = green on | PE13 (PWM1_3) |
| 9 | BLUE | High = blue on | PE14 (PWM1_4) |
| 10 | GND | Ground | GND |
Face the LEDs where the colour should be seen.
Plug J1 into header GD.
Use the entry below and restart.
By design the LEDs stay off at start.
Send M824 S50, then M826 S20, then M825.
Red should light at half, green should add a little, then red should go out.
| You want | Module | Example |
|---|---|---|
| Set each colour by command | Switch with hardware PWM | The entry below |
| Change colour with machine state | None | Send the commands from your own macros |
Add this to config.ini:
[pwm1]
frequency = 1000
[switch]
red.enable = true
red.output_pin = PWM1_2
red.output_type = hwpwm
red.default_on_value = 100
red.input_on_command = M824
red.input_off_command = M825
green.enable = true
green.output_pin = PWM1_3
green.output_type = hwpwm
green.default_on_value = 100
green.input_on_command = M826
green.input_off_command = M827
blue.enable = true
blue.output_pin = PWM1_4
blue.output_type = hwpwm
blue.default_on_value = 100
blue.input_on_command = M828
blue.input_off_command = M829
The S value is the duty cycle in percent. The frequency applies to every output on PWM timer 1; if your file already has a [pwm1] section, keep a frequency that suits all its users. Choose other command numbers if these are in use. See the switch module.
Each LED holds a red, a green and a blue die. A separate resistor for every die gives even brightness. Varying the duty cycle of the three signals mixes the colour. The pins only drive transistor gates, so they carry almost no current.
Closing JP7 to JP9 lets a second board of the same kind follow the same colour; check that the 5 V supply can feed both.
| Link | What it does | As delivered |
|---|---|---|
| JP7 | Joins contact 7 to the chain socket | Open |
| JP8 | Joins contact 8 to the chain socket | Open |
| JP9 | Joins contact 9 to the chain socket | Open |
| JP20 | Supplies the LEDs from 5 V | Closed |
Contacts 3 to 6 are free for a further board.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3 to 6 | Free | Passed on |
| 7 to 9 | Colours | Stopped by open links |
| Symptom | Likely cause | What to check |
|---|---|---|
| Nothing lights | No 5 V, JP20 open, or configuration not loaded | Test point 5 V, JP20, startup messages |
| One colour missing | Wrong pin or PWM name | Measure test points SW_R, SW_G, SW_B (low when on) |
| Colours exchanged | Pins crossed in the configuration | Red PWM1_2, green PWM1_3, blue PWM1_4 |
| Visible flicker | PWM frequency too low | Raise the [pwm1] frequency |
| Light | Meaning |
|---|---|
| D1 to D4 | Colour requested on contacts 7 to 9 |
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; the LED bodies are approximate models |
| 3D view, angled (PNG) | Rendered from the design files; the LED bodies are approximate models |
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 | 75.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 75.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 75.00 | 75.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 | 5 V | — | 5 V | — | Design |
| Red current per LED | Each die | 10 mA | 16.1 mA | 22 mA | Simulated; limits used for the check |
| Green or blue current per LED | Each die | 10 mA | 16.4 mA | 22 mA | Simulated; limits used for the check |
| Total, all channels on | 5 V | — | 0.196 A | 0.25 A | Simulated |
| Part | Limit | Use on this board |
|---|---|---|
| 5 V supply | Shared host regulator | Up to 0.25 A for this board |
| Capacitor | 10 V | 5 V |
The LED currents were simulated with ngspice with all channels fully on.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Red current per LED | 16.1 mA | 10 mA to 22 mA | Within |
| Green or blue current per LED | 16.4 mA | 10 mA to 22 mA | Within |
| All channels fully on | 196 mA | at most 250 mA | Within |
Not simulated: brightness, colour and temperature rise.
The first page of each manufacturer data sheet. Click a page to open the PDF.
See all boards on the extension boards page.