Extension board · Sensors and inputs

Infrared remote receiver

A receiver for ordinary 38 kHz infrared remote controls. It removes the carrier and gives a clean digital signal that is low while a burst is arriving. Turning that signal into key presses needs a decoder, which the firmware does not have.

Top view of the infrared receiver board: a ten-contact socket on the left and right edges and the receiver module below the middle.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
38 kHzVishay TSOP38238 receiver
Idle highoutput low during a burst
0.45 mAreceiver maximum at 3.3 V
1 LEDshows reception
2 socketstype X input and chain
50 × 45millimetres, four M3 holes

Tech specs

PurposeReceiving a hand remote for menus or macros with your own decoder. Never for emergency stop or any safety function
ReceiverVishay TSOP38238, 38 kHz carrier
OutputDemodulated digital signal through 100 Ω, active low, internal 30 kΩ pull-up
Supply3.3 V from the socket through a 100 Ω and 4.7 µF filter
IndicatorGreen LED lit during reception
SocketsTwo 10-contact Gadgeteer type X sockets (Samtec SHF-105, 1.27 mm): input and chain
Size50 × 45 mm, four M3 holes on a 40 × 30 mm pattern
Works withSmoothieboard V2 Prime header GF electrically; no firmware decoder
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 X IN (J1) — The type X socket to the controller; the signal is on contact 3.
  2. 2
    Chain socket CHAIN (J2) — Passes the unused contacts on.
  3. 3
    Receiver module (U1) — Point its dome towards the remote.
  4. 4
    Supply filter (R1, C1, C2) — Keeps supply noise away from the sensitive receiver.
  5. 5
    Output resistor (R2) — 100 Ω in series with contact 3.
  6. 6
    Indicator (D1, R3) — Lights while the output is low, that is while a signal arrives.
  7. 7
    LED link (JP20) — Closed as delivered; open it to switch the LED off.
  8. 8
    Chain link (JP3) — Open as delivered, keeping the signal off the chain.
  9. 9
    Mounting hole — One of four M3 holes.
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 (X IN)

ContactSignalUsePrime header GF
13.3 VReceiver supply3.3 V
25 VPassed to the chain only5 V
3IR_OUTLow during a burstPB1
4 to 9Passed throughNot usedPJ4, PA4, PG0, PJ3, PG1, PJ2
10GNDGroundGND

What you need

A controller socketAn interrupt-capable input, such as contact 3 of Prime header GF.
A ten-way cable1.27 mm Gadgeteer ribbon cable.
A 38 kHz remoteOther carrier frequencies work poorly or not at all.
Your own decoderNone is supplied.

Get started

Minimum wiring: contact 1 to contact 1, 3.3 V; PB1, contact 3 to contact 3, received signal; contact 10 to contact 10, ground. Prime header GF (J37) IR receiver J1 contact 1contact 13.3 V PB1, contact 3contact 3received signal contact 10contact 10ground
Three connections.
  1. Mount the board

    Give the receiver dome a clear view of where the remote will be used, away from strong lamps.

  2. Connect with the power off

    Plug J1 into header GF.

  3. Press a remote button

    Power up and aim the remote at the dome.

    By design the green LED flickers while the button is held.

Configuration

You wantModuleExample
Decode remote keysNoneNo SmoothieV2 infrared decoder exists
Check that signals arriveNoneWatch the LED or test point OUT

There is nothing to add to config.ini. Polled input modules are too slow to decode remote codes, whose pulses last well under a millisecond.

How it works

Infrared bursts are demodulated by the receiver and passed to the controller. Remote38 kHz bursts U1 TSOP38238filter, demodulate R2 100 ohmprotection J1 contact 3low = burst
One signal path.

The module contains the photodiode, amplifier, 38 kHz filter and demodulator. Its output rests high and pulls low for the length of each received burst, so the timing of the pulses carries the remote’s code. The supply passes through a resistor and capacitors as the data sheet advises for noisy rails.

Solder links

Leave JP3 open while the receiver is in use. Open JP20 if the light is unwanted.

Solder links as delivered: JP3 open; JP20 closed. JP3 · openchain contact 3 JP20 · closedindicator LED
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
JP20Powers the indicator LEDClosed

Chaining

A further board on CHAIN can use contacts 4 to 9.

The controller's ribbon cable goes to the connector X IN of the infrared receiver 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 infrared receiver board X IN CHAIN pin 3, IR signal 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 X 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. Pin 3 stops here; pins 4 and 5 are wired straight through.
ContactSignalOn CHAIN
1, 2, 10Power and groundPassed on
3IR signalStopped by open JP3
4 to 9FreePassed on

Troubleshooting

SymptomLikely causeWhat to check
LED never flickersWrong carrier, flat remote battery, no power or JP20 openTry another remote; check test points 3.3 V and OUT
Short rangeSunlight or strong lamps, dome off axisShade the receiver and aim it
LED flickers with no remoteInterfering light sourceMove away from lamps
Controller sees nothingWrong pin, or no decoder runningConfirm PB1 and your decoder
Light Meaning
Green (D1) Infrared signal being received

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
3D view, angled (PNG)Rendered from the design files

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 infrared receiver board, component side: outline 50 by 45 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 50 45 0, 0 X Y 1 5.00, 5.00 2 45.00, 5.00 3 5.00, 35.00 4 45.00, 35.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 50 × 45 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
245.005.003.2 mm, not platedMounting, M3 screw
35.0035.003.2 mm, not platedMounting, M3 screw
445.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; receiver accepts 2.0 to 5.5 V
Receiver currentU10.25 mA—0.45 mAVishay data sheet
LED current while receivingD1—0.3 mA—Calculated
Carrier frequencyU1—38 kHz—Vishay data sheet
Internal pull-upOutput—30 kΩ—Vishay data sheet
Supply filter dropR1—45 mV—Simulated
Ripple at receiver, 200 mV peak to peak inU1 supply—0.66 mV—Simulated at 100 kHz

Component stress limits

PartLimitUse on this board
Receiver supply2.0 to 5.5 V operating3.3 V
Capacitors10 V and 16 V3.3 V

Appendix: simulation

The supply filter was simulated with ngspice with 100 kHz ripple.

Each simulated value (yellow mark) against its allowed range (green band). Ripple at the receiver from 200 mV peak to peak663 µV Resistor voltage drop45 mV
Simulated value (yellow) against the limit used for it (green). Each bar has its own scale.
ResultSimulated valueLimitOutcome
Ripple at the receiver from 200 mV peak to peak663 µVat most 5 mVWithin
Resistor voltage drop45 mVat most 100 mVWithin

Not simulated: optical reception, range, ambient light rejection and output timing, because no model is available.

Appendix: datasheet

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

First page of the TSOP382 infrared receiver modules datasheet
TSOP382 infrared receiver modules — Vishay, 8 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.