IR Remote Decoding

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to decode and interface IR remote (shown in attachment) with Atmega8,16,32. i can not decoding the IR data. is there any header file to decode IR data? Please share with me if there is available or else help me to achieve the task.

Thank you.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, excuse me for nit picking, but header files do not decode anything:to oversimplify,  they just inform "main" /caller of the specificities of needed functions.

did you try to test your magical buttons with an arduino

advantages are three fold

 

a) arduino is prewired (one does not have to debug hardware)

 

b) it is likely to be cheaper than homemade cards

 

c) with the help of (d) , one can quickly know whether hardware is working (in your case, magical box, full of buttons,  and decoder IC)

 

d) as it is very popular and simple, hardware manufacturers often make/recommend tested libraries

This fourth  (d) point needs to be more deeply discussed :

adafruit -well known manufacturer - recommands IRlib2 for decoding IR (I was very satisfyied with its ancestor 2 years ago .... for my HW -this is limited experience- )

A part of its examples/demos  is a multistandard scanner https://github.com/cyborg5/IRLib...

 

(as you do not tell which standard your HW uses, and as it cannot be deduced from pictures, I supposethis example  might be somewhat useful ... was for me)

 

Then, if your religion leads you to port to another card, this very forum has an interesting  thread https://www.avrfreaks.net/forum/... which discusses a way to port from arduino to -some versions of - avr studio )

I am aware your problem is more complicated than the link I give, but you should begin with easy things, and cope slowly with increasing complexity.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Over the years I have read tons of posts here and also other internet projects to do with IR decoding using AVR. Some even do "multi-protocol" so could be used as the basis of a "universal remote" so I'm kind of guessing you may not have looked very far before posting?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Perhaps the burden of reading and filtering  tons of posts was/is too heavy... (and does OP need a multiprotocol analyser : a link to his HW manufacturer might be a way to find out the protocol ? If this link is missing, the only solution I can see is a recommanded by Lady Ada multiprotocol scanner).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did a Google search for "Keyes IR remote Arduino" and reached this website: http://henrysbench.capnfatz.com/...

It appears to have the information that you need or links to other sites that have more information on this device. 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First of all what kind of IR receiver are you using ?

38 KHz 40KHz or just a IR photo diode ?

 

How does the input signal look like ? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
I'm kind of guessing you may not have looked very far before posting?

Indeed.

 

frown

 

Before going anywhere else on the internet, start at the Product Page for the microcontroller; eg,

 

https://www.microchip.com/wwwproducts/en/ATmega8

 

Look on the 'Documents' Tab.

 

I can see two Application Notes  about "IR Remote Control" ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Mon. Jul 16, 2018 - 07:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ken Shiriff has a setup that works -- I actually implemented it on an arduino uno. (This may be another version -- I just googled it, but he seems to have IR figured out)

https://www.pjrc.com/teensy/td_libs_IRremote.html

 

If you search, you can find documentation for most common IR codes -- NEC seemed to be the favorite when I was looking.  To see what you're dealing with, you can do it the painful way that I did it -- Fire your existing remote at an IR reciever and capture with a digital scope, download to a file and try to figure out what I had -- there are easier ways.

- Some use a decoder and try various options until something makes sense

- Some are clever enough to have an arduino report what the pulse train is like.

 

For some reason manufacturers don't seem to like to tell anybody the protocol that they use. 'Universal' remotes also make the whole thing a big mystery. Part of that might be that some manufacturers modify a standard format like NEC. 

 

Have fun,

hj