Skip to content

codingcat0405/home_ac_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Air Conditional controller via esp32

  • Opps I lost my ac remote :D it's ok let's create one with esp32

How it works

  • A lot of household things (TV, AC, Speaker) is controlled by IR signal -> we can use esp32 with an IR transmitter module to control them

I use

  • esp32 dev kit v1 (30 pins)
  • KY-005 IR transmitter module which can emit ir light in range of 10m image

Code

#include <midea_ir.h>

const uint8_t MIDEA_RMT_CHANNEL = 1;
const uint8_t MIDEA_TX_PIN = 4;

void setup()
{
  Serial.begin(9600);
  // init library
  midea_ir_init(&ir, MIDEA_RMT_CHANNEL, MIDEA_TX_PIN);
}
  • for example to turn on AC with 23 degree celcilius with mode cool and fan level is 3
    ir.enabled = true;
    ir.mode = MODE_COOL;
    ir.fan_level = 3;
    ir.temperature = 23;
    midea_ir_send(&ir);
  • easy right ?

toodo

  • Complete logic code by implement functions to control the AC
  • Remote interfaces: bluetooth, web app, telegram bot
  • Some extra feature like: auto turn off when outside temperature is cool (so my roomate dont abuse my ac which increase my electricity's budget)
  • Auto balance the ac temperature and outside temperature via and DHT22 sensor
  • More base on my imaginations....

About

Lilhuy's home media air conditional remote controller via esp32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages