Extension board · Outputs and power
Two infrared LEDs for sending remote-control signals to a camera, fan or lamp. One controller pin switches both. The firmware can produce a 38 kHz carrier on that pin, but it cannot yet send coded remote commands: that needs your own driver.
| Purpose | Sending infrared signals to appliances. Not an optical data link or safety device |
| LEDs | Two Vishay TSAL6200, 940 nm, each with its own 47 Ω 1 W resistor |
| Control | 3.3 V PWM on contact 7 through 100 Ω; 100 kΩ pull-down keeps the LEDs off |
| Supply | 5 V from the socket |
| Indicator | Red LED shows activity |
| Sockets | Two 10-contact Gadgeteer type P sockets (Samtec SHF-105, 1.27 mm): input and chain |
| Size | 50 × 50 mm, four M3 holes on a 40 × 40 mm pattern |
| Works with | Smoothieboard V2 Prime header GD (PWM1_2) |
| 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) — PWM on contact 7, 5 V on contact 2.
2Chain socket CHAIN (J2) — Passes the unused contacts on.
3Infrared LEDs (D1, D2) — Upright as drawn; the leads may be bent to aim them.
4LED resistors (R1, R2) — Large 47 Ω parts rated to carry the current continuously. They get warm.
5Switch transistor (Q1) — AO3400A MOSFET switching both LEDs.
6Gate resistors (R3, R4) — Series resistor and pull-down.
7Supply capacitor (C1) — 10 µF on 5 V.
8Indicator (D3, R5) — Red LED, lit with the infrared LEDs.
9LED link (JP20) — Closed as delivered; open it to switch the indicator off.
10Chain link (JP7) — Open as delivered, keeping the PWM signal off the chain.
11Mounting 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 only | 3.3 V |
| 2 | 5 V | LED supply | 5 V |
| 3 to 6 | Passed through | Not used | PE7, PD8, PB11, PE9 |
| 7 | PWM | High = LEDs on | PE11 (PWM1_2) |
| 8, 9 | Passed through | Not used | PE13, PE14 |
| 10 | GND | Ground | GND |
Aim the LEDs at the appliance’s receiver.
Plug J1 into header GD.
Use the entry below and restart.
By design the LEDs stay off at start.
Send M812 and look through a phone camera, then send M813.
The red LED should light while the carrier is on, and go out afterwards. This sends a bare carrier, not a command the appliance understands.
| You want | Module | Example |
|---|---|---|
| Produce a 38 kHz carrier for testing | Switch with hardware PWM | The entry below |
| Send remote-control codes | None | No SmoothieV2 module encodes infrared commands |
Add this to config.ini:
[pwm1]
frequency = 38000
[switch]
irsend.enable = true
irsend.output_pin = PWM1_2
irsend.output_type = hwpwm
irsend.startup_value = 0
irsend.default_on_value = 33
irsend.input_on_command = M812
irsend.input_off_command = M813
The frequency applies to every output on PWM timer 1, so do not share that timer with fans or heaters that need another frequency; if your file already has a [pwm1] section, check what uses it first. default_on_value is the duty cycle in percent. Choose other command numbers if these are in use. See the switch module.
A remote-control signal is a series of bursts of a carrier, usually 36 to 40 kHz. The pin switches both LEDs at that rate. At one-third duty the simulated average is about 25 mA per LED with peaks near 76 mA. The resistors are sized so that an output stuck on stays within the LED continuous rating.
Leave JP7 open while the emitter is in use. Open JP20 if the indicator is unwanted.
| Link | What it does | As delivered |
|---|---|---|
| JP7 | Joins contact 7 to the chain socket | Open |
| JP20 | Powers the indicator LED | Closed |
A further board on CHAIN can use contacts 3 to 6, 8 and 9. Allow for this board’s share of the 5 V budget.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3 to 6 | Free | Passed on |
| 7 | PWM | Stopped by open JP7 |
| 8, 9 | Free | Passed on |
| Symptom | Likely cause | What to check |
|---|---|---|
| Nothing lights | No 5 V, wrong pin, or configuration not loaded | Test point 5 V; check the startup messages for PWM errors |
| Red LED lights but camera shows nothing | Camera filters infrared | Try another camera, often the front one |
| Appliance ignores the board | A bare carrier carries no command | Use a driver that sends the appliance’s code |
| Short range | LEDs aimed away | Bend the leads towards the receiver |
| Light | Meaning |
|---|---|
| Red (D3) | Infrared LEDs being driven |
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 | J1 contact 2 | — | 5 V | — | Design |
| Peak current per LED | D1, D2 | — | 76 mA | — | Simulated |
| Average current per LED, one-third duty | D1, D2 | — | 25 mA | — | Simulated |
| Total current, both on | 5 V | — | 155 mA | — | Simulated |
| Indicator current | D3 | — | 1.5 mA | — | Calculated |
| Wavelength | D1, D2 | — | 940 nm | — | Vishay data sheet |
| Half angle | D1, D2 | — | 17° | — | Vishay data sheet |
| Resistor power if held on | R1, R2 | — | 0.27 W | — | Simulated |
| Part | Limit | Use on this board |
|---|---|---|
| LED forward current | 100 mA continuous | About 76 mA if held on |
| LED resistors | 1 W | 0.27 W |
| Capacitor | 10 V | 5 V |
The LED drive was simulated with ngspice at 38 kHz and one-third duty with a hand-fitted diode model.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Peak LED current | 75.8 mA | 60 mA to 95 mA | Within |
| Average LED current at one third duty | 25.2 mA | 15 mA to 35 mA | Within |
| Resistor power if held on | 270 mW | at most 500 mW | Within |
Not simulated: optical range, beam pattern, eye safety 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.