science tinker

IR remote

A handheld remote: each button sends a different infrared code to the IR receiver.

Switches and controls · Elements inside: GaAsSiCLiMn

Function: what an IR remote does in a circuit

A handheld remote: each button sends a different infrared code to the IR receiver.

  • Sends a coded infrared signal for each button
  • Controls a project without wires
  • Pairs with an IR receiver on the board

IR remote key facts

ProtocolNEC, on a 38 kHz carrier
Buttons21
Lightinfrared, about 940 nm
BatteryCR2025 coin cell
Rangeabout 8 m

How it works

Pressing a button makes the remote's chip flash its infrared LED in a pattern (NEC code) at 38 kHz. In the simulator, click its buttons while the simulation runs: the receiver gets the code, for example button 3 = command 0x5E (old IRremote value 0xFF7A85).

What it is made of

  • IR LED: Gallium arsenide GaAs
  • Buttons: Silicone rubber with carbon pads SiC
  • Battery: CR2025 lithium coin cell LiMn

Where the materials come from: Gallium from bauxite processing; arsenic as a by-product of copper and gold smelting.

The chemistry

Gallium arsenide has a band gap of 1.4 eV, so its LED gives infrared light at about 940 nm, invisible to us.

Biology connection

Infrared is heat radiation: warm skin gives it off too, which is how PIR sensors and thermal cameras see people. How the eye sees →

Safety and the environment

Keep the coin cell away from small children.

Did you know? Point a remote at a phone camera and press a button: you will see the "invisible" IR LED flash.

Try it in the simulator

Add it in Free build with an IR receiver, run your code and click the remote's buttons.

Questions students ask

What does an IR remote do?

A handheld remote: each button sends a different infrared code to the IR receiver. Main functions: sends a coded infrared signal for each button; controls a project without wires; pairs with an IR receiver on the board.

What codes does the 21-key IR remote send?

Each button sends an NEC command byte: POWER is 0x45, the digits 0 to 9 are 0x16, 0x0C, 0x18, 0x5E, 0x08, 0x1C, 0x5A, 0x42, 0x52 and 0x4A. Print IrReceiver.decodedIRData.command in HEX to see the code of any button.

How does an IR remote work?

Pressing a button makes the remote's chip flash its infrared LED in a pattern (NEC code) at 38 kHz. In the simulator, click its buttons while the simulation runs: the receiver gets the code, for example button 3 = command 0x5E (old IRremote value 0xFF7A85).

What is an IR remote made of?

IR LED: Gallium arsenide. Buttons: Silicone rubber with carbon pads. Battery: CR2025 lithium coin cell.

Is an IR remote safe? How should it be recycled?

Keep the coin cell away from small children.

More switches and controls

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.