Post Top Ad

Friday, May 26, 2023

on video Recycle the infrared SENSOR of a TV to control any


 Relay control with IR remote control: Home automation (3)

In this example we test the ignition system of lamps and electrical equipment connected to the mains voltage managed by a standard remote control (IR = Infrared). We will command them with chosen keys of the remote control, which we will first identify with a simple Arduino program.


If you want to read more about infrared remote control from Arduino, we recommend the article KY-005 Infrared Transmitter Module (Keyes 5 Sensor Kit) on our page.


To control appliances with mains voltage, we will use the normally open outputs of a relay module. If you are new to the relay modules that are standard in the Arduino line, we recommend reading the article that started this series Relay Modules and Arduino: Home Automation (1).


We used the same armed circuit in the previous article: Control with relays by serial interface: Domotics(2). We only add the infrared receiving sensor, a VS1838B sensor from China, very common in Arduino kits and in the market.


You can use any remote control receiver, even one obtained from disarmament, if you have identified its connection pins.

The sensor is not just a phototransistor, it has an internal integrated circuit that filters the 38 KHz signal that modulates the infrared beam, and is the one that contains the control commands. The signal output delivers a square wave of TTL levels between 0 and 5V. There are models that deliver a signal at levels from 0 to 3.3V.


It is possible that you will find the kit in the image that follows on specialized sites, but it is not necessary. It is enough to connect the sensor to the Arduino and use any remote control that is in your house.

The following is the most basic way to connect it to the Arduino, and it is the circuit that we will start working with in the initial tests. The main one is to obtain the list of the data that arrives at the Arduino when pressing each key.

The following is the most basic way to connect it to the Arduino, and it is the circuit that we will start working with in the initial tests. The main one is to obtain the list of the data that arrives at the Arduino when pressing each key.


 Relay control with IR remote control: Home automation (3)

In this example we test the ignition system of lamps and electrical equipment connected to the mains voltage managed by a standard remote control (IR = Infrared). We will command them with chosen keys of the remote control, which we will first identify with a simple Arduino program.


If you want to read more about infrared remote control from Arduino, we recommend the article KY-005 Infrared Transmitter Module (Keyes 5 Sensor Kit) on our page.


To control appliances with mains voltage, we will use the normally open outputs of a relay module. If you are new to the relay modules that are standard in the Arduino line, we recommend reading the article that started this series Relay Modules and Arduino: Home Automation (1).


We used the same armed circuit in the previous article: Control with relays by serial interface: Domotics(2). We only add the infrared receiving sensor, a VS1838B sensor from China, very common in Arduino kits and in the market.


You can use any remote control receiver, even one obtained from disarmament, if you have identified its connection pins.

The sensor is not just a phototransistor, it has an internal integrated circuit that filters the 38 KHz signal that modulates the infrared beam, and is the one that contains the control commands. The signal output delivers a square wave of TTL levels between 0 and 5V. There are models that deliver a signal at levels from 0 to 3.3V.


It is possible that you will find the kit in the image that follows on specialized sites, but it is not necessary. It is enough to connect the sensor to the Arduino and use any remote control that is in your house.

The following is the most basic way to connect it to the Arduino, and it is the circuit that we will start working with in the initial tests. The main one is to obtain the list of the data that arrives at the Arduino when pressing each key.

The following is the most basic way to connect it to the Arduino, and it is the circuit that we will start working with in the initial tests. The main one is to obtain the list of the data that arrives at the Arduino when pressing each key.

No comments:

Post a Comment

Post Top Ad

Pages