Hello, I'm relatively new to Arduino and I'm trying to control an AC (Gree) with Arduino. I have the Raw data I need, but I'm having trouble converting it to HEX or finding a way to compress it. The raw its a bit different from what I got with other AC's. It has some large spaces in between commands. I'll copy it here.
I used this sketch to get my arrays
Air Conditioner Record long Infrared Remote control signals - Arduino
Example:
TURN OFF Raw: (419) 9068, -4452, 708, -1600, 684, -524, 704, -500, 684, -520, 684, -1624, 680, -524, 684, -1624, 680, -524, 708, -1600, 680, -524, 684, -524, 680, -524, 680, -524, 688, -520, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -1624, 680, -524, 684, -524, 680, -524, 708, -500, 680, -524, 684, -524, 680, -1624, 708, -500, 680, -1624, 684, -524, 680, -524, 708, -1600, 680, -524, 680, -19920, 732, -1600, 684, -524, 680, -524, 684, -520, 684, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 708, -496, 684, -524, 680, -524, 680, -1628, 680, -1624, 708, -500, 680, -524, 684, -524, 680, -524, 680, -528, 680, -524, 680, -524, 684, -524, 680, -524, 684, -524, 680, -524, 684, -524, 680, -524, 708, -500, 680, -524, 680, -1624, 684, -39916, 9040, -4456, 656, -1652, 704, -500, 680, -528, 680, -524, 704, -1600, 684, -524, 704, -1600, 684, -524, 680, -1624, 684, -520, 684, -524, 680, -524, 684, -524, 680, -524, 684, -524, 680, -524, 680, -528, 680, -524, 680, -524, 684, -524, 680, -524, 680, -1624, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 684, -524, 680, -1624, 684, -1624, 704, -1600, 684, -524, 680, -524, 684, -1624, 680, -524, 680, -19924, 704, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 684, -524, 704, -500, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 708, -500, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -1624, 684, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -1628, 680, -524, 684, -1624, 680, -1624, 684, -39940, 9020, -4452, 684, -524, 680, -528, 704, -500, 680, -524, 708, -500, 680, -524, 680, -524, 684, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 684, -524, 704, -500, 684, -520, 684, -524, 680, -524, 708, -500, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -528, 680, -524, 680, -524, 708, -500, 680, -1624, 708, -500, 704, -1600, 680, -524, 684, -1624, 704, -500, 684, -19920, 704, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -524, 680, -528, 680, -524, 680, -524, 684, -524, 680, -524, 680, -524, 684, -524, 680, -528, 680, -524, 708, -500, 680, -524, 680, -524, 684, -524, 680, -1624, 684, -524, 680, -1624, 684,
This pattern of headers and space repeats with all the other raw arrays. I tried to send just a part of the array or the array without the large spaces, but it didn't work. It just worked when I send the whole array. But I can just store one at a time. And it's not an option to get a SD module for the Arduino.
I've been looking online but so far I didn't see any AC array like the above, so I'm not sure how I can handle the spaces. I need to find a way to compress the raw commands in order to send it to the Arduino through BLE using a HM10 module and then proceed decompress it.
The other option would be trying to get the HEX values from the remote (instead of the raw) and send it straight to the AC. But I'm not sure that will work.
I was told that someone already tried to find the protocol of the AC and it was unknown and I'll try the IRrecvDump this week... Also the remote is YAY1F1.
If you have any suggestions on how to handle that array or anything else, I'll be happy to read. Thanks already ^