Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use ky-011: Examples, Pinouts, and Specs

Image of ky-011
Cirkit Designer LogoDesign with ky-011 in Cirkit Designer

Introduction

The KY-011 is a small infrared (IR) receiver module designed to receive IR signals from remote controls. It operates at a frequency of 38 kHz, which is the standard frequency for most IR remote control systems. This module is widely used in projects that require remote control functionality, such as home automation, robotics, and consumer electronics.

Explore Projects Built with ky-011

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino 101 and KY-023 Joystick Controlled Interface
Image of Joystick: A project utilizing ky-011 in a practical application
This circuit interfaces a KY-023 Dual Axis Joystick Module with an Arduino 101. The joystick's X and Y axis outputs are connected to the analog inputs A0 and A1 of the Arduino, allowing it to read the joystick's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing ky-011 in a practical application
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Security System with RFID and Laser Intrusion Detection
Image of CPE doorlock system upgrade: A project utilizing ky-011 in a practical application
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing ky-011 in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with ky-011

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Joystick: A project utilizing ky-011 in a practical application
Arduino 101 and KY-023 Joystick Controlled Interface
This circuit interfaces a KY-023 Dual Axis Joystick Module with an Arduino 101. The joystick's X and Y axis outputs are connected to the analog inputs A0 and A1 of the Arduino, allowing it to read the joystick's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of padelpro transmitter: A project utilizing ky-011 in a practical application
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CPE doorlock system upgrade: A project utilizing ky-011 in a practical application
ESP32-Based Security System with RFID and Laser Intrusion Detection
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Transmitter 11: A project utilizing ky-011 in a practical application
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Remote-controlled devices (e.g., TVs, fans, and lights)
  • Home automation systems
  • Robotics and IoT projects
  • IR communication systems
  • Learning and prototyping with microcontrollers like Arduino

Technical Specifications

Below are the key technical details of the KY-011 IR receiver module:

Parameter Value
Operating Voltage 3.3V to 5V
Operating Current ≤ 5mA
Carrier Frequency 38 kHz
Reception Distance Up to 10 meters (line of sight)
Output Signal Digital (active low)
Dimensions Approx. 18mm x 10mm x 8mm

Pin Configuration

The KY-011 module has three pins, as described in the table below:

Pin Name Description
1 Signal (S) Digital output pin that transmits the received IR signal.
2 VCC Power supply pin (3.3V to 5V).
3 GND Ground connection.

Usage Instructions

How to Use the KY-011 in a Circuit

  1. Connect the Pins:

    • Connect the VCC pin to a 3.3V or 5V power source.
    • Connect the GND pin to the ground of your circuit.
    • Connect the Signal pin to a digital input pin on your microcontroller (e.g., Arduino).
  2. Positioning:

    • Ensure the IR receiver is positioned to face the IR transmitter (e.g., a remote control) for optimal signal reception.
    • Avoid obstructions between the transmitter and receiver.
  3. Circuit Example: Below is a simple connection diagram for using the KY-011 with an Arduino UNO:

    • VCC → Arduino 5V
    • GND → Arduino GND
    • Signal → Arduino digital pin (e.g., D2)

Arduino Code Example

The following Arduino sketch demonstrates how to use the KY-011 to receive IR signals and display the decoded data in the Serial Monitor. This example uses the IRremote library.

#include <IRremote.h> // Include the IRremote library

const int RECV_PIN = 2; // KY-011 Signal pin connected to Arduino pin D2
IRrecv irrecv(RECV_PIN); // Create an IR receiver object
decode_results results;  // Variable to store decoded IR data

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor at 9600 baud
  irrecv.enableIRIn(); // Start the IR receiver
  Serial.println("KY-011 IR Receiver Ready");
}

void loop() {
  // Check if an IR signal has been received
  if (irrecv.decode(&results)) {
    Serial.print("IR Code Received: ");
    Serial.println(results.value, HEX); // Print the received code in HEX format
    irrecv.resume(); // Prepare to receive the next signal
  }
}

Important Considerations

  • Power Supply: Ensure the module is powered within its operating voltage range (3.3V to 5V). Exceeding this range may damage the module.
  • Ambient Light: Avoid using the KY-011 in environments with excessive ambient IR light (e.g., direct sunlight), as this can interfere with signal reception.
  • Line of Sight: The module works best when there is a clear line of sight between the IR transmitter and receiver.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Signal Detected:

    • Ensure the IR transmitter (e.g., remote control) is functional and emitting signals.
    • Verify the wiring connections, especially the Signal pin.
    • Check that the module is powered correctly (3.3V to 5V).
  2. Interference or Erratic Behavior:

    • Minimize ambient IR light sources, such as sunlight or fluorescent lights.
    • Ensure the module is not too close to other electronic devices that may emit IR signals.
  3. Short Reception Range:

    • Check the alignment between the IR transmitter and receiver.
    • Replace the batteries in the remote control if the signal strength is weak.

FAQs

Q1: Can the KY-011 receive signals from any remote control?
A1: The KY-011 is compatible with most remote controls that operate at a carrier frequency of 38 kHz, which is the standard for consumer electronics.

Q2: Can I use the KY-011 with a Raspberry Pi?
A2: Yes, the KY-011 can be used with a Raspberry Pi. Connect the Signal pin to a GPIO pin and use an appropriate IR library (e.g., lirc) to decode the signals.

Q3: What is the maximum range of the KY-011?
A3: The KY-011 can receive IR signals from up to 10 meters away, provided there is a clear line of sight and minimal interference.

Q4: Can the KY-011 transmit IR signals?
A4: No, the KY-011 is an IR receiver module and cannot transmit IR signals. For transmission, you would need an IR LED or a dedicated IR transmitter module.

By following this documentation, you can effectively integrate the KY-011 IR receiver module into your projects and troubleshoot common issues.