Giter Site home page Giter Site logo

blynk_esp32_ir_remote_control's Introduction

Abstract

Implement an IoT infrared remote controller that can remotely control air conditioners and electric fans, while also recording the temperature and humidity.

Implementation

  1. Air Conditioner:

    1. Use an ESP32 to convert various remote infrared signals with a 2N2222 transistor and send them out via an IR LED. The infrared signals use a library that matches the communication protocol of the air conditioner brand. Use a DHT11 module to record the current environmental temperature and humidity. The IoT platform used is Blynk.

    2. Physical Components Used:

      1. 2N2222 * 1

        2N2222
      2. IR LED * 1

        IR_LED
      3. Resistor * 1

        Resistor
      4. DHT11 * 1

        DHT11
    3. Circuit Diagram:

      Circuit_Diagram_AC
    4. Blynk:

      Blynk_AC
  2. Electric Fan:

    1. First, use an Arduino UNO with a vs1838B module to receive the raw infrared signal, record the raw signal, then use an ESP32 to convert various remote infrared signals with a 2N2222 transistor and send them out via an IR LED. Use a DHT11 module to record the current environmental temperature and humidity. The IoT platform used is Blynk.

    2. Physical Components Used:

      1. vs1838B * 1

        vs1838B
      2. 2N2222 * 1

        2N2222
      3. IR LED * 1

        IR_LED
      4. Resistor * 1

        Resistor
      5. DHT11 * 1

        DHT11
    3. Circuit Diagram:

      Circuit_Diagram_fan
    4. Blynk:

      Blynk_fan
    5. Example of Raw Infrared Signal:

    • Electric Fan Power Switch:
    #define FAN_SWITCH_RAW_DATA_LEN 68
    uint16_t FAN_SWITCH_rawData[FAN_SWITCH_RAW_DATA_LEN] = {
    	9030, 4466, 594, 558, 574, 558, 578, 558,
    	574, 558, 578, 1662, 578, 1662, 578, 558,
    	574, 558, 574, 1666, 578, 1662, 578, 1666,
    	574, 1666, 574, 558, 578, 554, 578, 1662,
    	578, 1662, 582, 554, 578, 554, 578, 558,
    	578, 1662, 578, 554, 578, 554, 578, 558,
    	578, 1662, 578, 1662, 578, 1662, 578, 1662,
    	582, 554, 602, 1638, 578, 1662, 578, 1662,
    	578, 554, 582, 1000
    };

Issues and Solutions

  • In the implementation for the fan, the method of copying and storing the original infrared signal for transmission was not applicable to air conditioners. This might be due to air conditioners having a stricter communication protocol compared to fans. Fortunately, a library containing various brand communication protocols was eventually found.
  • Next to 5V is CMD, not GND!!!

Final Outcome

Due to Blynk's data stream limitations, the project was divided into two separate boards, and not all controller functions could be covered. However, all essential functions were implemented, as shown in detail in the videos.

  • ESP32 Fan IR remote control demo

https://youtu.be/68HZ8h9fc4A

blynk_esp32_ir_remote_control's People

Contributors

abner0214 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.