Decode aircon IR with moteino?

Post Reply
Dave
Posts: 3
Joined: Wed Sep 02, 2015 10:42 am

Decode aircon IR with moteino?

Post by Dave »

I have some moteino ( http://lowpowerlab.com/moteino/ ) units which have the following specs:
Flash Memory 32 KB of which 1 KB used by DualOptiboot bootloader *
SRAM 2 KB
EEPROM 1 KB
I have been using them successfully for home automation monitoring but would now like to use them for changing my air conditioner - turning temperature up in the middle of the night then turning it off at 7am.
I have an IR receiver and was playing with the http://www.righto.com/2009/08/multi-pro ... brary.html library and can see data:

4650 -2400 400 -350 400 -900 400 -900 400 -300 450 -850 450 -300 400 -300 450 -300 400 -300 450 -900 400 -300 400 -350 400 -900 400 -300 400 -350 400 -300 450 -850 450 -850 450 -300 400 -300 450 -300 400 -350 400 -850 450 -300 400 -350 400 -300 400 -350 400 -300 450 -300 400 -900 400 -300 450 -300 400 -350 400 -300 400 -350 400 -300 400 -900 400 -350 400 -300 450 -300 400 -900 400 -900 400 -900 400 -300 450 -850 450 -300 400 -350 400 -300 400 -350

However, it was pretty complicated to figure out what was happening so I bought AnalysIR. However, I can't get any data to be shown on my serial monitor when I use it with the same hardware setup as works with the above library. What I see on the serial port is:

!AnalysIR!
!Free RAM: 131!

So, my question is - does the Moteino have enough RAM to show airconditioner IR? The length of their messages is pretty long - over 100 bytes. Is this free RAM message a warning saying that it isn't going to work? Or just for informational purposes? I have a proper Arduino in the mail but thought I would try to learn more while it is on the way.
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Decode aircon IR with moteino?

Post by AnalysIR »

It looks like the motion is a standard atmega328P @16Mhz.

Therefore it should run our AnalysIR firmware OK, provided the sketch is compiled with the Arduino IDE.

Just make sure to define Arduino as true near the top of the sketch. (and all other platforms as false)

The messages at startup are standard and in plain text.

However, when you press a button on your remote you should see what looks like noise "noise" with '+'s and '-'s on the serial. This is in fact the binary encoded data that AnalysIR reads.

Make sure your IR receiver is connected to D2 (and the optional IR learner to D3, if available)

Let me know if that doesn't work out as expected.
Post Reply