D-Castillo
ENGLISH:
DESCRIPTION OF THIS PROJECT:
This is the first of a set or series of prototypes to automate any light point in "AC" Alternating current (110/230v), controlling this using Arduino (UNO Rev. 3) and different types of sensors and electronic components.
In This particular prototype or project, we control the ignition and shutdown of a light point in AC (lamp), using Arduino, a relay, a IR sensor/receiver and a IR/remote control transmitter.
In Summary with this prototype you will be able to turn on any light point with a remote control without having to get up from your site or move to activate the switch
--------------------------------------------------------------------------------------
SPANISH:
DESCRIPCIÓN DEL PROYECTO:
Este es el primero de un conjunto o serie de prototipos para automatizar cualquier punto de luz en "AC" corriente alterna (110/230v), controlando esto mediante Arduino (UNO Rev.3) y diferentes tipos de sensores y componentes electrónicos.
En este prototipo o proyecto en particular, controlamos el encendido y el apagado de un punto de luz en AC (lámpara), usando Arduino, un relé , un sensor/recibidor IR y un emisor IR/control remoto.
En resumen con este prototipo podrás encender cualquier punto de luz con un control remoto sin tener que levantarte de tu sitio o desplazarte para accionar el interruptor
--------------------------------------------------------------------------------------


Over-The-Air Grid Execution: IR Relay Light
A bare Arduino blinking a 5V LED is harmless. Taking an Uno and commanding it to physically intercept and switch 120 Volts / 10 Amps of terrifying AC Wall Power via a standard TV Remote elevates engineering into extremely dangerous commercial territory. The AC Light with Relay & IR Remote Control decodes invisible light pulses into Hexadecimal logic blocks, throwing a physical mechanical arm exactly designed to safely pass deadly wall current!
The High Voltage Relay Structure (Electromechanical Split)
You cannot plug an AC light directly into the Uno!
- The 5V Relay Module completely physically isolates the Arduino from the death-voltage.
- It uses an internal Optoisolator.
Pin 7sends a 5VHIGHsignal into a tiny LED inside a sealed plastic chip. A photo-transistor senses the light and triggers a high-current Transistor. - The Transistor violently pulls a massive magnetic coil
ON! - The Click: A heavy piece of Copper Armature violently swings, connecting
Common (COM)toNormally Open (NO). - The 120V AC "Live" wire is spliced perfectly through the
COM-NOblock. Exactly as you hit the remote, the copper slaps shut, and the 60W living room lamp turns on instantly!
Decoding the Infrared Beam (IRremote)
The Arduino relies on the <IRremote.h> software architecture.
- You wire an IR Receiver (e.g., TSOP38238) to
Pin 2. - When you press
Poweron a generic Television remote, an invisible LED flashes violently at 38kHz. - The TSOP receiver decodes this flicker into pure Hexadecimal:
FF629D. - The Evaluation Logic:
if (irrecv.decode(&results)) { // We caught a terrifyingly fast blast of light!
if (results.value == 0xFF629D) { // The 'ON' Button Code!
digitalWrite(RelayPin, !digitalRead(RelayPin)); // Violently toggle the opposite state!
}
irrecv.resume(); // Flush the memory buffer to anticipate the next button!
}
Legacy Wireless Automation Build
- Arduino Uno/Nano (Standard execution speeds are perfectly sufficient).
- 5V Optically Isolated Relay Module (10-Amp / 250V AC Rated Minimum!).
- Infrared TSOP Receiver Array + Any standard TV Remote.
- (DANGER: This project directly manipulates lethal 120V/240V Mains Power. Any loose wire or poorly insulated trace touching the 5V logic side will literally explode the Uno chip and catch the wall on fire! DO NOT attempt without advanced high-voltage theory capability).