Skip to main content

Posts

Showing posts from September, 2018

A deep look at the internals of arduino IR library; how it works and how to implement one by yourself

Introduction Last few days, I have been interested in IR remotes and how they work and whether I can write a code that sends a command to my crappy Chinese receiver. I had no idea about IR remotes or how the protocol works so I had to learn a few things about it first then learn what is the exact protocol used by my receiver. This isn't an IR tutorial, there are many good tutorials that explains the concept very well out there, So I will just go quickly through it, then try to understand how some existing codes work. How does IR remote works? When you press a button on your remote control, it emits an infrared light with a specific pattern that contain information to tell your commanded device what to do. When I say pattern, I mean "Protocol", the protocol tells us how to send a specific information to a specific device.These information usually are the command (volume up,down,OK...) and the address or the device these information are sent to. There are many IR protoc