กลับไปหน้ารวมไฟล์
digital-dimmer-with-ir-control-352afb-en.md

This digital dimmer can be controlled by IR control

To do this project a zero crossing detector is necessary, there are many ways to do it, I use a 120v-12v transformer, a diode rectification bridge and a moc4n35 to create a zero crossing detector

How do we know when the AC wave crosses 0, we use this to send a high pulse to 3011 (MOC) and depending on how much power we want the delay time of this pulse will be

AC = 220@60Hz

1/60 = 1.6x10^-3 seconds //For a complete wave

1.6x10^-3 s/2 = 8.3x10^-3 seconds // This is the time for a half cycle wave

0 seconds delay = 100% power

8.3x10^-3 seconds delay = 0% power

long dimerTime = int(map(val,0,100,8000,150));
Timer1.attachInterrupt(gate,dimerTime);
Timer1.start();

Material list:

1x Arduino pro mini, nano, etc

1x Moc 4n35

1x Moc 3011

1x Bt138

1x Diode bridge

1x Transformer 220v/110v to 12v - 5v

1x IR receiver

2x 220 ohms resistor

1x 330 ohms resistor

1x Led

Diagram:

https://easyeda.com/Death27/light_controller

EXPANDED TECHNICAL DETAILS

Remote Spectral Illumination Control

This project provides a professional-grade AC dimming solution that can be adjusted using any standard infrared (IR) remote.

  • Zero-Cross Detection Interface: The Arduino monitors the AC mains' sine wave using an opto-isolated zero-cross circuit. This ensures the firmware can time the TRIAC firing pulses perfectly with the 50Hz/60Hz frequency, preventing flicker.
  • IR Protocol Decoding: Captures IR signals via a TSOP38238 receiver. The Arduino decodes the HEX codes for "Volume Up" (Brighten) and "Volume Down" (Dim) and translates them into precise microsecond delays for the TRIAC trigger.

Safety

  • Galvanic AC Isolation: Uses an opto-TRIAC (e.g., MOC3021) to provide a 5,000V electrical barrier between the Arduino logic and the high-voltage AC load, ensuring user safety.

ข้อมูล Frontmatter ดั้งเดิม

title: "Digital Dimmer with IR control"
description: "Dimmer controlled by an infrared control"
author: "scardeath0101"
category: ""
tags:
  - "lights"
  - "home automation"
  - "remote control"
views: 1964
likes: 1
price: 2450
difficulty: "Easy"
components:
  - "1x Arduino Pro Mini 328 - 5V/16MHz"
  - "1x IR receiver (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/acbb2fe2-e222-439c-b566-b3378cca2b9f.zip"
  - "https://projects.arduinocontent.cc/f171f179-d855-4ec8-adb6-6be54db38671.zip"
  - "https://projects.arduinocontent.cc/acbb2fe2-e222-439c-b566-b3378cca2b9f.zip"
documentationLinks: []
passwordHash: "569ee2877c63943dbba5d536506a9518039f619cbb3423d3a7cbc4ac3769c1eb"
encryptedPayload: "U2FsdGVkX1/ELLjbAyhc0Wkj2tuAaediI36hXC/lyekWz8U8b+Zk5Fhg+YLUuLhj/sM6mYvVES4bX1zpmStsMQVHlxjYy10VAotfYe7lWkc="
seoDescription: "Build a Digital Dimmer with IR control using Arduino. Regulate light brightness easily via an Infrared remote."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/digital-dimmer-with-ir-control-352afb_cover.jpg"
lang: "en"