This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Write PWM code for raw IR signal of AC remote

Hi,

I have written Hitachi AC IR transmitter using Smart remote 3 library.

Smart remote 3 library support 2 AC protocols, i.e., SIRC and NEC.

Kindly guide me how to write simple PWM code to transmit raw AC IR signal using PWM.

Raw signal could be of any protocol such as NEC, Mitsubishi, SONY etc.

Format of raw signal is as follow:

static uint16_t ir_message[] = { 9000, 4500, 560, 560, 560, 560, 560, 1690, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
                                  1690, 560, 1690, 560, 560, 560, 1690, 560, 1690, 560, 1690, 560, 1690, 560, 1690, 560, 560, 560, 560, 560, 560, 560,
                                  1690, 560, 560, 560, 560, 560, 560, 560, 560, 560, 1690, 560, 1690, 560, 1690, 560, 560, 560, 1690, 560, 1690, 560,
                                  1690, 560, 1690, 560 }; // Using exact NEC timing

Related