IRremoteESP8266 icon indicating copy to clipboard operation
IRremoteESP8266 copied to clipboard

HITACHI AC344 SwingV problem

Open Lan-Jay opened this issue 11 months ago • 1 comments

Version/revision of the library used

V2.8.6

Describe the bug

I'm using ARDUINO IDE to test out dmy new AC remote control. The other function works fine but the SwingV function is not working at all.

To Reproduce

when i reverse egineer from factory remote controller with IRrecvDump_V3, the SwingV button can be read correctly. I've tried ac.setSwingV(1), ac.setSwingVToggle(1), ac.setButton(kHitachiAc344ButtonSwingV). No luck.

Example code used

#include <Arduino.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#include "ir_Hitachi.h"

const uint16_t kIrLed = 4;  // GPIO pin to control the IR LED.
IRHitachiAc344 ac(kIrLed);    // Create a Hitachi A/C object.

void setup() {
  Serial.begin(115200);
  delay(200);
  ac.begin();               // Initialize the Hitachi AC object.
  ac.setPower(1);           // 1 to turn on, 0 to turn off. or ac.on()/ac.off
  ac.setTemp(29);           // Set temperature to 25°C.
  ac.setMode(kHitachiAc344Heat); // Set mode to cool.  kHitachiAc424Cool,kHitachiAc424Heat,kHitachiAc424Dry,kHitachiAc424Fan  cool,heat,dry,fan
  ac.setFan(kHitachiAc344FanMax); // Set fan speed to medium. kHitachiAc424FanMin;kHitachiAc424FanLow;kHitachiAc424FanMedium;kHitachiAc424FanHigh;kHitachiAc424FanMax;kHitachiAc424FanAuto; min,low,medium,high,max,auto
  ac.setSwingV(1);        //ON OFF  //ac.setButton(kHitachiAc344ButtonSwingV);
  ac.setSwingH(kHitachiAc344SwingHRight);      //kHitachiAc344SwingHAuto, kHitachiAc344SwingHLeftMax, kHitachiAc344SwingHLeft, kHitachiAc344SwingHRight, kHitachiAc344SwingHRightMax, kHitachiAc344SwingHMiddle
  ac.send();                // Send the IR signal.
}

Expected behaviour

The AC response to ac.setSwingV(1); or ac.setSwingV(0);

Output of raw data from [IRrecvDumpV2.ino]

Protocol  : HITACHI_AC344
Code      : 0x01100040BFFF00CC33926D817E50AF00FF00FF00FF00FF00FF53ACF10E01FE01FE807F01FE00FF00FF00FF (344 Bits)
Mesg Desc.: Power: On, Mode: 3 (Cool), Temp: 20C, Fan: 5 (Auto), Button: 129 (Swing(V)), Swing(V): Off, Swing(H): 1 (Right Max)
uint16_t rawData[691] = {3422, 1608,  468, 1218,  468, 430,  464, 406,  462, 432,  462, 430,  438, 432,  462, 434,  434, 434,  462, 432,  462, 430,  440, 432,  462, 432,  436, 1222,  462, 456,  438, 430,  440, 456,  438, 458,  412, 456,  438, 432,  462, 430,  438, 456,  438, 430,  438, 456,  438, 458,  438, 430,  438, 458,  438, 430,  438, 456,  438, 456,  412, 458,  438, 1224,  462, 456,  412, 1224,  462, 1224,  460, 1224,  436, 1222,  462, 1248,  438, 1224,  434, 458,  438, 1224,  462, 1224,  436, 1248,  438, 1222,  462, 1248,  438, 1198,  462, 1222,  462, 1248,  438, 1248,  412, 458,  438, 456,  412, 458,  438, 458,  438, 432,  436, 458,  438, 458,  412, 458,  438, 458,  438, 430,  438, 1248,  438, 1248,  438, 430,  438, 456,  438, 1222,  438, 1248,  438, 1248,  438, 1248,  410, 458,  438, 458,  438, 1222,  436, 1248,  436, 458,  436, 432,  438, 458,  438, 1248,  410, 458,  438, 458,  438, 1222,  438, 458,  438, 458,  412, 1248,  438, 1248,  436, 458,  410, 1248,  438, 1248,  436, 458,  410, 1248,  438, 1248,  438, 458,  410, 1248,  438, 458,  436, 432,  438, 456,  438, 458,  410, 458,  438, 458,  436, 1250,  410, 458,  438, 1248,  438, 1222,  438, 1248,  438, 1248,  436, 1248,  410, 1248,  438, 458,  436, 432,  438, 456,  438, 458,  410, 458,  438, 1248,  436, 432,  436, 1250,  436, 458,  436, 1222,  436, 1248,  438, 1248,  438, 1222,  438, 458,  438, 1248,  436, 432,  436, 1250,  436, 458,  436, 432,  438, 458,  436, 432,  436, 458,  436, 458,  410, 458,  436, 458,  436, 1222,  436, 1250,  436, 1250,  436, 1248,  410, 1250,  436, 1248,  436, 1250,  410, 1248,  436, 458,  436, 432,  436, 458,  436, 458,  410, 458,  436, 460,  436, 432,  436, 458,  436, 1250,  436, 1224,  436, 1248,  436, 1248,  438, 1222,  436, 1250,  436, 1248,  436, 1250,  410, 458,  436, 458,  436, 432,  436, 458,  436, 434,  436, 458,  436, 458,  408, 460,  436, 1248,  436, 1248,  410, 1248,  436, 1250,  436, 1248,  436, 1222,  436, 1250,  436, 1250,  436, 432,  436, 458,  436, 458,  410, 458,  436, 460,  436, 432,  436, 460,  436, 432,  436, 1248,  436, 1250,  436, 1250,  408, 1250,  436, 1250,  438, 1248,  410, 1248,  438, 1248,  436, 460,  410, 458,  436, 458,  436, 432,  436, 460,  436, 432,  436, 458,  436, 460,  436, 1224,  434, 1250,  436, 1248,  436, 1224,  436, 1250,  436, 1250,  436, 1222,  436, 1250,  436, 1250,  436, 1250,  410, 458,  436, 458,  436, 1224,  436, 460,  436, 1250,  436, 434,  436, 458,  436, 434,  412, 1274,  412, 1274,  436, 432,  412, 1274,  412, 482,  412, 1248,  412, 1274,  412, 482,  412, 458,  412, 484,  412, 1274,  384, 1274,  412, 1274,  412, 1274,  412, 456,  412, 1274,  412, 1274,  384, 1274,  412, 482,  412, 458,  412, 484,  412, 484,  412, 1248,  412, 484,  412, 456,  412, 484,  412, 482,  412, 458,  412, 484,  412, 458,  412, 482,  412, 1274,  412, 1248,  412, 1274,  412, 1272,  412, 1246,  412, 1274,  412, 1274,  412, 1274,  384, 484,  412, 484,  412, 458,  410, 484,  412, 458,  412, 484,  410, 484,  384, 484,  412, 1274,  410, 1276,  384, 1274,  412, 1274,  410, 1276,  410, 1248,  410, 1274,  412, 484,  384, 484,  412, 484,  410, 458,  410, 484,  410, 484,  384, 484,  410, 1276,  410, 1274,  384, 1276,  410, 1274,  412, 1274,  386, 1274,  412, 1276,  410, 1274,  412, 482,  386, 1274,  410, 486,  384, 510,  386, 484,  410, 482,  386, 484,  410, 484,  386, 510,  384, 510,  358, 1300,  386, 1300,  386, 1300,  384, 1274,  386, 1300,  386, 1300,  386, 1300,  358, 510,  386, 510,  386, 484,  386, 510,  384, 484,  386, 510,  386, 510,  360, 510,  384, 1300,  386, 1300,  360, 1300,  386, 1300,  386, 1300,  358, 1302,  384, 1300,  386, 1300,  384, 484,  384, 510,  386, 484,  384, 510,  386, 510,  358, 510,  384, 510,  386, 482,  386, 1300,  386, 1300,  386, 1274,  386, 1300,  384, 1300,  384, 1300,  360, 1300,  386, 1300,  386, 484,  384, 510,  384, 510,  384, 484,  386, 510,  386, 484,  386, 510,  386, 510,  360, 1300,  386, 1300,  384, 1302,  384, 1274,  384, 1300,  386, 1300,  384, 1274,  384, 1300,  384};  // HITACHI_AC344
uint8_t state[43] = {0x01, 0x10, 0x00, 0x40, 0xBF, 0xFF, 0x00, 0xCC, 0x33, 0x92, 0x6D, 0x81, 0x7E, 0x50, 0xAF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x53, 0xAC, 0xF1, 0x0E, 0x01, 0xFE, 0x01, 0xFE, 0x80, 0x7F, 0x01, 0xFE, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF};

Timestamp : 000047.299
Library   : v2.8.6

What brand/model IR demodulator are you using?

HITACHI AC, The remote control model RS13T1

Circuit diagram and hardware used (if applicable)

ESP8285 ESP-01M IR Transceiver https://www.aliexpress.com/item/4000361449673.html

I have followed the steps in the [Troubleshooting Guide]

Yes

Has this library/code previously worked as expected for you?

No

Lan-Jay avatar Mar 20 '25 03:03 Lan-Jay

Try putting:

ac.setSwingV(true);

just before the ac.send(); Unfortunately, both setSwingV() & setSwingH() both set a button value. One is probably overwriting the other.

crankyoldgit avatar Mar 23 '25 08:03 crankyoldgit