Show Posts
Pages: 1 2 [3] 4 5 ... 9
31  Using Arduino / Sensors / Re: Trying to control Mitsubishi Heat Pump Air Conditioning Unit on: April 09, 2013, 11:03:56 pm
2. When I use the timer buttons "sleep" "on" "off" the raw code jumps from 180 to 255.
Can you replicate this?

Hi

There are infact 276 bits returned.

You need to modify the IRREMOTE.H file to increase the buffer

#define RAWBUF 276

And this time you need to modify the structure in IRREMOTEINT.H

typedef struct {
  uint8_t recvpin;           // pin for IR data from detector
  uint8_t rcvstate;          // state machine
  uint8_t blinkflag;         // TRUE to enable blinking of pin 13 on IR processing
  unsigned int timer;     // state timer, counts 50uS ticks.
  unsigned int rawbuf[RAWBUF]; // raw data
  unsigned int rawlen;         // counter of entries in rawbuf

  //uint8_t rawlen;         // counter of entries in rawbuf
}
irparams_t;

Change the uint8_t rawlen to an unsigned int as shown above.

The uint8 is in fact an unsigned char = so its values are limited to 0 - 255.

This will now allow you to return the full 276 bits of binary data.

I have had a quick look but not yet decoded the additional 96 bits of data.

I will keep you posted.

Chris
32  Using Arduino / Sensors / Re: Trying to control Mitsubishi Heat Pump Air Conditioning Unit on: April 09, 2013, 11:52:31 am
Hi

Yes I have seen the extra data bits that when uou use the timer functions, on time, off the etc.

Since I was not interested I ignored it, I was more interested in the base data functions only.

I did not look into it but the start time and end time are encoded into those bits and the sleep settings as well.

In regards to your Q1

I know I can not set fan speeds with powerful and Eco but I am unsure in what context you mention this?

Chris
33  Using Arduino / Motors, Mechanics, and Power / Re: I am unsure where to start with Stepper Motors on: April 06, 2013, 10:27:15 pm
Thanks Jim
34  Using Arduino / Motors, Mechanics, and Power / I am unsure where to start with Stepper Motors on: April 06, 2013, 10:17:49 pm
I am unsure where to start with Stepper Motors.

Basically I have some ideas and I am unsure where to start and where to find good information for a new-be to learn by.

How do I determine what size stepper motor is needed? How do I determine what size driver is needed?  I know it depends on the purpose.

I guess I am looking for a motor 101 type of site on stepper motors and drivers.

I see lots of cheap stuff on EBAY and I buy most of my stuff from EBay as it is cheap - just takes 4+ weeks delivery to NZ.

Any links would be appreciated to good sites explaining this.

cheers

Chris
35  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 08:20:22 pm
Dd you get a chance to try a different remote?

Does the different remote also show strange patterns?

Chris
36  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 07:11:08 pm
I also came across this which may help you but not until we determine why you are getting strange values.

http://www.hifi-remote.com/sony/

chris
37  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 07:05:28 pm
Can you change it so it uses the actual value instead of 0 and 1

Search the script for

 if (1==0)

and change to

  if (1 == 1)

When you run it you will get raw values which may or may not help.


Also try the code with different remotes - if you are still getting garbage then

* What pin is your sensor connected to?
* Have you got another sensor to try?


Chris
38  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 03:49:21 pm
I just commented out my FixTimer function from the previous reply

and using the raw output of numbers I was getting this

Code:
47  12  11  12  12  12  12  12  11  12  12  12  12  11  12  12  23  12  12  12  12  12  11  13  11
 47  12  12  11  12  12  12  12  11  12  12  12  12  11  12  12  24  11  12  12  12  12  11  13  11
 48  12  11  12  12  12  12  11  12  12  12  12  11  12  12  12  23  12  12  12  12  11  12  12  12
 47  12  24  11  12  12  12  12  11  12  12  12  12  11  12  12  24  11  12  12  12  12  11  12  12
 47  12  24  11  12  12  12  12  11  12  12  12  12  12  11  12  24  11  12  12  12  12  12  11  12
 47  12  23  12  12  12  12  11  12  12  12  11  12  12  12  12  23  12  12  12  12  11  12  12  12

You can see then numbers 11 and 12 and 3 and 24 - so this slight difference may be something you are seeing?

Chris
39  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 03:36:41 pm
Using a Sony TV Remote I get results like this - quite repeatable

The following is pressing the buttons 1-6 (the repeat codes represent what is being sent out the IR transmitter - the longer you hold it down the more it repeats) In my case a quick press generated 3 repeats.

Code:
1000000000000000100000000
1000000000000000100000000
1000000000000000100000000

1010000000000000100000000
1010000000000000100000000
1010000000000000100000000

1000100000000000100000000
1000100000000000100000000
1000100000000000100000000

1010100000000000100000000
1010100000000000100000000
1010100000000000100000000

1000001000000000100000000
1000001000000000100000000
1000001000000000100000000

1010001000000000100000000
1010001000000000100000000
1010001000000000100000000

Here is my simple script

Code:
#include <Arduino.h>
#include <IRremote.h>

// Receive on Digital Pin 4
int RECV_PIN = 4;

decode_results results;
int incomingByte = 0;
IRrecv irrecv(RECV_PIN);

void setup()
{

/* add setup code here */
Serial.begin(57600);
Serial.println("Startimg....");

irrecv.enableIRIn(); // Start the receiver


}

void loop()
{
if (irrecv.decode(&results)) {
int count = results.rawlen;

// Skip the first byte - just a timing since last packet recevied.

for (int i = 1; i < count; i++) {

if (1==0)
{

if (results.rawbuf[i]< 10)
Serial.print("  ");
else if (results.rawbuf[i]< 100)
Serial.print(" ");
Serial.print(results.rawbuf[i]);
Serial.print(" ");
}
else {
if (results.rawbuf[i] == 8)
Serial.print("0");
else
Serial.print("1");
}
}
Serial.println("");
irrecv.resume(); // Receive the next value
}
}



In my code you will see it displays a binary 0 or 1 depending if the value is 8 or not. This could change depending on the device.

So to test that out change the code that says if (1==0) to if (1 == 1) in the script to use that section of the code which prints out the actual values read.


Special Note:

I have also modified the code in the IRRemote.cpp file in the IRRemote library to return values that do not change so much.

Basically when it saves values it calls this function to fix up the values to make them consistent.

Code:
unsigned int fixTimer(unsigned int t)
{
if (t <  20)
return 8;
else if (t < 31)
return 24;
else if (t < 33)
return 32;
else
               return t;
}


See http://wiki.crowe.co.nz/Mitsubishi%20Heat%20Pump.ashx to see what I changed.

This could explain why you are seeing different values - using the code on my wiki page I get consistent values of 8 and 24 on the Sony remote.

Chris
40  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 03:11:13 pm
I have a Sony tv remote, but not an audio remote. I do not know the brand Visio.

I have recently decoded my Mitsubishi heat pump remote. It sent 180 bits of data for every key press.

I will see what I get with a Sony tv and let you know how I get on.

Chris
41  Topics / Home Automation and Networked Objects / Re: iPhone controlled universal remote on: April 06, 2013, 02:27:45 pm
Which remote are you having problems with?

Chris
42  Using Arduino / Programming Questions / Re: Mitsubishi IR AC remote decoding Problem on: April 05, 2013, 03:31:20 am
Hi All

I have been also working with Mitsubishi heat pump and my article here may help you all.

http://wiki.crowe.co.nz/Mitsubishi%20Heat%20Pump.ashx

If you are using Ken Sherrifs library you need to increase the buffer size since the Mitsubishi (well my one) sends 180 bits of data which needs 180 bytes of data to store it.

But hopefully the article will help.

I have a c# application that can read a signal - decode it and then rebuild it.

I need to continue my article and maybe able to do this over the coming weekend but hopefully it helps someone here.

Chris
43  Topics / Home Automation and Networked Objects / Re: Looking for ideas on Heat Pump Controller - Power/WIFI on: March 30, 2013, 04:00:07 pm
Hi, I am trying to do the same, I've tried but I have not managed to crack the code on the remote IR, would you care to comment as you did please?
a greeting

Hi

I have just wrote some details on the Mistubishi IR remote bit patterns on my Wiki at http://wiki.crowe.co.nz/Mitsubishi%20Heat%20Pump.ashx

Hope it helps

Chris
44  Using Arduino / Sensors / Re: Trying to control Mitsubishi Heat Pump Air Conditioning Unit on: March 30, 2013, 03:53:22 pm
Thanks for posting this! I am thinking of trying to automate our Mitsubishi heat pump with an Arduino as well! Did you ever go through and try to decode the full IR protocol (e.g. what the individual codes are for each parameter)?

How are you using the Arduino?

Hi Nate

I have started to document what I have done in order to decode the bit pattern from the Heat Pump - still a work in progress but should be of value to you.

See http://wiki.crowe.co.nz/Mitsubishi%20Heat%20Pump.ashx

Chris
45  Topics / Home Automation and Networked Objects / Re: Looking for ideas on Heat Pump Controller - Power/WIFI on: December 17, 2012, 03:26:03 pm
I Paul

I am going to write up what I have done but it will probably take a little while to go this done. In the mean time feel free to PM me if you have any questions.

Chris
Pages: 1 2 [3] 4 5 ... 9