Lesson 25 Infrared Receiver

Introduction

_images/lesson25.png

An infrared-receiver is a component which receives infrared signals and can independently receive infrared ray and output signals compatible with TTL level. It’s similar with a normal plastic-packaged transistor in size and is suitable for all kinds of infrared remote control and infrared transmission.

Components

  • 1 * SunFounder Uno board

  • 1 * USB data cable

  • 1 * Infrared-receiver module

  • 1 * Remote controller

  • 1 * 3-Pin anti-reverse cable

Principle

Control a certain key (for example, Power key) via a remote controller by programming. When you press the key, infrared rays will be emitted from the remote controller and received by the infrared receiver, and the LED on the SunFounder Uno board will light up. Add an LED to connect with pin 13 of the Uno board, so you can see remotely whether the Power or another key is pressed down.

_images/image147.png

Experimental Procedures

Step 1: Build the circuit

Infrared-Receiver_bb_看图王

Step 2: Open the code file

Step 3: Select correct Board and Port

Step 4: Upload the sketch to the SunFounder Uno board

Code

Now, press the Power key of a remote controller, and the LED attached to pin 13 on the SunFounder Uno board will light up. Then press any other key, and the LED will go out.

_images/image149.jpeg