Pages: [1]   Go Down
Author Topic: IR Library and PWM  (Read 987 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: January 31, 2011, 04:20:31 am by Nold » Logged

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

Australia
Offline Offline
Full Member
***
Karma: 8
Posts: 161
You dont have to touch powerlines for them to kill you, even looking at them for too long will make them angry.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hm... that's not realy an alternativ for me... a non-interrupt based (blocking) IR Library would be great..
damn it..
Logged

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

Australia
Offline Offline
Full Member
***
Karma: 8
Posts: 161
You dont have to touch powerlines for them to kill you, even looking at them for too long will make them angry.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Try using the more powerful chip?
Logged

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

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

Offline Offline
Jr. Member
**
Karma: 1
Posts: 95
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: