Go Down

Topic: IR Library and PWM (Read 1 time) previous topic - next topic

Nold

Jan 31, 2011, 08:35 am Last Edit: Jan 31, 2011, 10:20 am by Nold Reason: 1
Hello,

I hope this is the right forum and my English isn't too bad ^^...

In the last days I was trying to build a RGB Light (with one RGB led) with IR remote...
On the first change of PWM-signal it worked, the IR (RC6) code was properly decoded but then he only get zeros...
I figured out that this happens if i set a PWM Pin to some value, with one it's ok but with > 2 he doesn't decode anymore...

Is there any possibility to fix this? I think it's because of the interrupts but i'm no expert...
Because an RGB Light with just one color kind a sucks Oo

//EDIT1: I'm using an Arduino with an Atmega168...

Thanks anyway!

Bye Nold
Bye Nold
------------------------------
"This is our world now... the world of the electron and the switch, the
beauty of the baud." The Men

fliggygeek

I can suggest you use a BlinkM, http://www.sparkfun.com/products/8579 . It uses a simple serial interface to make it work, and will stop any interrupt issues you have. Also you can have a number of these devices on the same serial port and you can address them individually.
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent di

Nold

hm... that's not realy an alternativ for me... a non-interrupt based (blocking) IR Library would be great..
damn it..
Bye Nold
------------------------------
"This is our world now... the world of the electron and the switch, the
beauty of the baud." The Men

fliggygeek

http://www.sparkfun.com/products/9217

Try using the more powerful chip?
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent di

Nold

Think this is an idea but the 168 and the 328have the same number of interrupts... The only thing that has changed is the Flash (16->32kb) and the EEPROM (512->1024bytes)...

think i just quit this project and try something different that i have in mind, which is even much geekier xD

Thanks to all anyway!
Bye Nold
------------------------------
"This is our world now... the world of the electron and the switch, the
beauty of the baud." The Men

Targettio

http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

I am not sure if this is any help but the above library will decode RC6 codes. You can then use the codes to control the RGB led.

Go Up