Go Down

Topic: Arduino IRRemote Library atmega8 (Read 4516 times) previous topic - next topic


  I've been trying to use the IRRemote library( http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html ) of arduino on an atmega8 but when i try to compile i get errors like this

error: ‘TCCR2A’ was not declared in this scope

I realize this is cause the library was built for atmega168 or 328. Is there a way i can tweak the library for it to work with atmega8.Or is there any other similar IR remote library i can use with arduino.Basically all i want to do is interface a TSOP1738 ( IR Receiver ) with an arduino and the library should give me different outputs for different buttons pressed on the remote so i can differentiate between the different buttons in the remote and accordingly perform certain actions.



I face the same problem too...
It is because that Atmega 8 has only 3 PWM pins..

And the IRremote.h file uses many other PWM pins of the Atmega328/128/88 as they have 6 PWM outputs..

Even I am looking for a way to make the IR remote work in the Atmega8 without using the IRremote library..
If you have found any solution to it, please guide me too..


take a look at this site http://www.ladyada.net/learn/sensors/ir.html , it helped me a lot..


Hi..! Prashant...

Thank you for replying to the post...:)

Can you plz pm me your gmail or yahoo id..??
I m seeking for some help...

Go Up