Skip to content

brianLiu0405/AC_TV_switch_rainmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AC_TV_switch_rainmaker

Board : ESP32-S3 using rainmaker to control the AC and TV power, make original device can remote control

IR Remote

  • install library

    • IRremote
  • setup sensor

    • ir led
    • ir receiver
    • npn transistor
  • using example code uncomment define and read your remotor

    • it will print the code that add in your ir_send 1.png 2.png

:::danger :warning: these two function just set pin number

  • IrReceiver.begin(irReceiverPin);
  • IrSender.begin(irSendPin); :::
Protocol=NEC Address=0xAC03 Command=0x5F Raw-Data=0xA05FAC03 32 bits LSB first
Send with: IrSender.sendNEC(0xAC03, 0x5F, <numberOfRepeats>);

Protocol=PulseDistance Raw-Data=0x1200000000 104 bits LSB first
Send on a 32 bit platform with: 
    uint64_t tRawData[]={0x29160F8AB2754D, 0x1200000000};
    IrSender.sendPulseDistanceWidthFromArray(38, 3400, 3450, 350, 1300, 350, 450, &tRawData[0], 104, PROTOCOL_IS_LSB_FIRST, <RepeatPeriodMillis>, <numberOfRepeats>);

Protocol=PulseDistance Raw-Data=0x1000000000 104 bits LSB first
Send on a 32 bit platform with: 
    uint64_t tRawData[]={0x27160F8AB2754D, 0x1000000000};
    IrSender.sendPulseDistanceWidthFromArray(38, 3400, 3450, 400, 1300, 400, 450, &tRawData[0], 104, PROTOCOL_IS_LSB_FIRST, <RepeatPeriodMillis>, <numberOfRepeats>);

3.png

result

  • the result on esp rainmaker app screen

  • connect google home and esp rainmaker

  • choose device to add into google home

  • final result, using google home control the ir sender to turn TV/AC on is working

About

using rainmaker to control the AC and TV power, make original device can remote control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages