Header Ads Widget

ATtiny85 based infrared remote decoder

 Let us make ATtiny85 chip based infrared remote decoder project that can be connected to any micro-controller that can read from its own serial pin (Rx). Though we have IR library for Arduino platform but I was working with OLED in my previous project (Arduino Based Sound Processor) and found that IR remote library was conflicting with OLED library which was not allowing me to use OLED at its full resolution. Although I read many articles where some solution was given to change the timer in library file, but somehow it didn't worked for me and hence I wanted some solution through which I could add remote functionality to my audio processor, hence I designed this small module which can read any type of remote. 

Attiny85 Remote Decoder

We just have to capture the codes we are getting from remote buttons and add the functionality to any Ardunio based project where we need to add IR remote functionality. Circuit is very simple and code is also very short and simple which help beginners to build it easily.

Watch out this video to see how it operates.


Those who are new to Attiny programming with Arduino, may refer below link or click here to go to below link.

https://create.arduino.cc/projecthub/arjun/programming-attiny85-with-arduino-uno-afb829

Below is the simple circuit diagram of IR decoder. Since it captures and transmits raw data coming from IR remote, it is open to accept data from any format of remotes available in market.

Attiny85 remote decoder circuit

Here is the Arduino code for Attiny85 remote decoder module.

As mentioned in remarks, PB2 (pin-7) reads the signal received from sensor TSOP1738 which is read by Attiny85 and written to the software serial PB4 (pin-3) which act as Tx pin for software defined serial port and PB3 (pin-2) act as Rx pin for software serial port.



Once the above code is loaded to Attiny85 assemble it on the PCB suggested here.
Download Eagle cad board file, Arduino code for decoder and test circuit from google drive.

Below code is only for testing and collecting code of remote you want to interface with your project. 
It gives button wise code in serial window of Arduino IDE.
Just connect the Tx (pin-3) of Attiny85 to Rx pin of Arduino board on which below code is burnt.


Connect that Arduino module to PC and open Arduino serial port.
Now press the IR remote button in from of sensor mounted on Attiny85 board.
The LED on board should blink indicating IR sensor is reading data.
And since Tx of Attiny board is connected to Arduino board, the received data will be sent to Arduino board which will in turn will be sent to serial console of Arduino IDE.

Here is the small list of components used:

1- Attiny85 IC        - 01no.
2- R1                     - 100 â„¦ 1/4 Watt
3- R2                     - 220 â„¦ 1/4 Watt
4- C1                     - 1uf 10V
5- LED1                - Any color 
6- IR Sensor         - TSOP1738
7- Wire Jumper     - 01no.
8- Wires to connect

 
Return to List of content                                                Goto to DIY Project List

Post a Comment

0 Comments