Skip to main content
SensorBack to 37-in-1 kit

Infrared transmitter

By Fix It Today, 07/07/2026 · 4 min read

Infrared transmitter guide for the 37-in-1 Arduino Sensors Kit.

37-in-1 kit, module 05

KY-005: Infrared transmitter

An infrared LED you can flash, invisible to the eye but visible to a phone camera. Plug it in, upload the sketch, then change the thing it senses and watch the reading.

KY-005, Infrared transmitter
Module photo from the Joy-IT SensorKit documentation. The boards in the kit may not carry the Joy-IT print but are the same modules.

KY-005, Infrared transmitter

An infrared LED you can flash, invisible to the eye but visible to a phone camera.

How it works

Infrared transmitter

What is going on

The clear LED emits at about 940 nm, just past what the eye can see. A remote control is the same part driven with a 38 kHz pattern. Point a phone camera at it while the sketch runs and you will see it glow faintly purple; the camera sensor picks up what you cannot. Pair it with the KY-022 receiver to send codes across the bench.

Connections

Wiring to the Arduino Nano on its expansion shield

The pins below match the sketch further down this page; change one and change the other.

Power off first

Unplug the USB cable before you plug in, move or remove any module.

A lead plugged in live can touch the wrong pin for a moment, and 5 V on a signal pin is how a module dies. Unplug, wire, check the letters, then plug the cable back in.

Module pinGoes to
Module SignalS row of the column marked 3, digital bank
Module GNDG row, ground
Where it plugs in on the shield
The Nano I/O expansion shield supplied in the kit, photographed from above for the Voltaat product listing. Column positions measured from the photo; labels added by Fix It Today.

Where it plugs in on the shield

The ringed column is the one this module uses. G on top for ground, V in the middle for 5 V, S at the bottom for the signal. A module with more than one signal wire uses one column per wire.

Read the letters on the shield

Both banks on this shield read G, V, S from the top. The letters are printed at the ends of the rows.
The module's minus or GND pin goes to G, its plus or VCC pin to V, and each signal to the S row of the numbered column.
A module in backwards puts 5 V on the signal pin. Some survive it, plenty do not.

Starter sketch

Code you can copy and upload

Every sketch on these pages is compiled for the Arduino Nano before it is published. The pin numbers at the top match the connection table above.

ky005.inoArduino C++
1#include <IRremote.hpp>
2
3// The IRremote library sends from D3 on the Nano.
4// Module S -> D3, module - -> G. Middle pin not used.
5
6void setup() {
7 Serial.begin(9600);
8 IrSender.begin(3);
9}
10
11void loop() {
12 IrSender.sendNEC(0x00, 0x0B, 0); // address 0, command 0x0B, no repeats
13 Serial.println("sent NEC 0x0B");
14 delay(1000);
15}

Install IRremote by Armin Joachimsmeyer (version 4 or later).

Try first

Look at the LED through a phone camera while it runs.

The quickest way to see it respond.

1

Unplug the USB cable. Plug the module into the column shown above, minus to G, plus to V, signal to S.

2

Plug the USB cable back in. Copy the sketch, upload it, and open Tools > Serial Monitor at 9600 baud.

3

Do the thing the module senses and watch the reading, the L LED, or the sound respond.

Reference

More on this module

The Joy-IT page has the datasheet figures and examples for other boards; the repository has the original vendor files.

Survey and feedback

Help improve MakerAccess

Have an idea for what MakerAccess should stock, improve, or explain next? Share it in the survey. If you bought or used a product and want to comment on the item itself, use the product feedback form.

Do the surveyProduct feedback form