ToniA / arduino-heatpumpir

An Arduino library to control split-unit heatpumps over Infrared
GNU General Public License v2.0
389 stars 141 forks source link

How do add new model to FujitsuIR Protocol #3

Closed teaching-innovation closed 8 years ago

teaching-innovation commented 9 years ago

Hi ToniA, Thanks for the effort you have gone to writing this library. I am trying to use your code to emulate a Fujitsu AR-RY3 split system remote and feel like I am close to a solution but my lack of experience with arduino is causing me some grief. I have spent a few hours trying to debug and can't quiet work it out.

Using another arduino sketch similar to ladyada's work I have been able to pull the signal from my remote and analyse it in excel and was able to see a 16 word string of data. I was also able to modify your code so that it was sending default values at 24 C. The problem I am having is that no matter what I change I made on line 90 and 93 of FujitsuHeatpumpIR.cpp I could not change the result model address in the 16 word string. I have analysed the output from the arduino and still get 0x14 0x63.... rather than 0x26 0x6C...

The two lines bellow are the data string I collected. The first is from the actual remote, the second is from the arduino. image

Thanks in advance, Joel

teaching-innovation commented 9 years ago

Turns out i was over analyzing the data and made changes before it was necessary. It seems each of the words should be inverted so i was reading 00101000 = 0x28 rather than 00010100 = 0x14.

ToniA commented 9 years ago

Yes, I fell into that trap a few times myself. Also the IR receivers you find in the net don't usually work with very long IR codes, this is why I created this:

https://github.com/ToniA/Raw-IR-decoder-for-Arduino

I have decoded protocols by going through one setting at a time (like, step through all temperatures), and then compared the data in Excel. In all cases the procol has been pretty simple, so that it's easy to see which bits affect what. And then there's the checksum calculation, but that's usually also very simple.

During development it's very useful to have two Arduinos, so that the other one receives and the other one transmits, and then you can compare the transmit results agaist a real IR remote.

Toni

Date: Sun, 16 Nov 2014 06:11:18 -0800 From: notifications@github.com To: arduino-heatpumpir@noreply.github.com Subject: Re: [arduino-heatpumpir] How do add new model to FujitsuIR Protocol (#3)

Turns out i was over analyzing the data and made changes before it was necessary. It seems each of the words should be inverted so i was reading 00101000 = 0x28 rather than 00010100 = 0x14.

— Reply to this email directly or view it on GitHub.

                  =