Home Air Conditional controller via esp32
Opps I lost my ac remote :D it's ok let's create one with esp32
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
esp32 dev kit v1 (30 pins)
KY-005 IR transmitter module which can emit ir light in range of 10m
#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);
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....