Post Top Ad

Thursday, March 23, 2023

on video Basic Home Automation - TV Infrared Switch


 In this tutorial we will use an infrared sensor module to receive the signal from IR remote controls used by many household equipment such as TVs, sound systems, etc. Through these we will control the outputs of our Arduino.


This sensor has an internal filter to detect only infrared frequencies close to 38KHz, which makes it compatible with most infrared controls, it has 3 connection pins GND, VCC and DATA, which allows us to connect directly to a digital pin of our Arduino or any microcontroller that we want to use.


The particular thing about this protocol is that it sends both the address and the command twice, normally and denied, with this the data can be validated later.


The address is associated with a device, such as a TV, stereo, VCR, etc. And the command is associated with the action or function of the button. For example, increase the volume, turn off, the number 1 or 2, etc.

For this tutorial we are going to work as if it were a single 32-bit block of data.

IR remote library for Arduino

IRremote is one of the most used and complete libraries to work with infrared control protocols, it has implemented several protocols from the best-known brands such as Sony, LG, Samsung, Sanyo, etc.

Connections between Arduino and IR receiver module

The connections are simple, the sensor has a VCC pin which is fed with 5V, a GND pin and a DATA pin, which is a digital output which we will connect to pin 11 of the Arduino.


 In this tutorial we will use an infrared sensor module to receive the signal from IR remote controls used by many household equipment such as TVs, sound systems, etc. Through these we will control the outputs of our Arduino.


This sensor has an internal filter to detect only infrared frequencies close to 38KHz, which makes it compatible with most infrared controls, it has 3 connection pins GND, VCC and DATA, which allows us to connect directly to a digital pin of our Arduino or any microcontroller that we want to use.


The particular thing about this protocol is that it sends both the address and the command twice, normally and denied, with this the data can be validated later.


The address is associated with a device, such as a TV, stereo, VCR, etc. And the command is associated with the action or function of the button. For example, increase the volume, turn off, the number 1 or 2, etc.

For this tutorial we are going to work as if it were a single 32-bit block of data.

IR remote library for Arduino

IRremote is one of the most used and complete libraries to work with infrared control protocols, it has implemented several protocols from the best-known brands such as Sony, LG, Samsung, Sanyo, etc.

Connections between Arduino and IR receiver module

The connections are simple, the sensor has a VCC pin which is fed with 5V, a GND pin and a DATA pin, which is a digital output which we will connect to pin 11 of the Arduino.

No comments:

Post a Comment

Post Top Ad

Pages