msp430 Infrared decoder

Thread Starter

orlysang

Joined May 6, 2011
2
Hi,

I am trying to create an infrared decoder using a 38.5KHz receiver which output is the demodulated signal,this output goes into an msp430. I am sampling each 54us, storing each 1 and 0 (high or low voltage) into an array.
To recreate the modulation i am doing 2 times a carrier frequency of about (36.5KHz) which is the one i am testing from a remote controller, this each time i see a 1 in the array. Is this a good aproach to sample and send back the same signal? is there another way to recreate an infrared signal ? Any advice would be of great help since the deadline for the project is n about 4 days and we are trying everything to make this work.

Thanks
 

Markd77

Joined Sep 7, 2009
2,806
Another way is to store a time for each on/off transition. You might be able to get better resolution for the same memory requirement.
 

Thread Starter

orlysang

Joined May 6, 2011
2
Hi,

Just to end the thread my error was the sampling time, i was sampling for about 30ms and there are a lot of signals that the time duration is more than that.

Thanks
 
Top