bschwind / ir-slinger

A small C library for sending infrared packets on the Raspberry Pi
The Unlicense
99 stars 30 forks source link

Parameters for air conditioner #1

Closed bschwind closed 8 years ago

bschwind commented 8 years ago
uint32_t outPin = 23;
int frequency = 38000;
double dutyCycle = 0.5;
int leadingPulseDuration = 3500;
int leadingGapDuration = 1600;
int onePulse = 400;
int zeroPulse = 400;
int oneGap = 1300;
int zeroGap = 450;
int sendTrailingPulse = 1;
lesinigo commented 6 years ago

In case anyone ends up here just like I did, these parameters also work for the Python version from pyslinger.py. In can successfully transmit to my Mitsubishi A/C with:

    protocol = "NEC"
    protocol_config = dict( frequency = 38000,
                            duty_cycle = 0.5,
                            leading_pulse_duration = 3500,
                            leading_gap_duration = 1600,
                            one_pulse_duration = 400,
                            one_gap_duration = 1300,
                            zero_pulse_duration = 400,
                            zero_gap_duration = 450,
                            trailing_pulse = 1 )
    ir = IR(gpio_pin, protocol, protocol_config)
bschwind commented 6 years ago

Heh, this was a bit sloppy of me but I just wanted somewhere to write down the parameters that work for my Hitachi A/C. Good to know it works for Mitsubishi as well!