กลับไปหน้ารวมไฟล์
working-with-rgb-led-a1e55d-en.md

This project demonstrates the working RGB LED using Arduino.

Objective:

Red color glows for the first second and then the Green color glows for the next second followed by the Blue color and this repeats.

Working with RGB

EXPANDED TECHNICAL DETAILS

PWM Color Synthesis

This project explores the foundations of additive color mixing (Red, Green, Blue) to create any color in the visible spectrum.

  • Triple PWM Output: Uses three digital pins with PWM capability. By adjusting the duty cycle (0-255) of each pin, the Arduino controls the brightness of each core LED.
  • Color Logic: For example, setting Red to 255 and Green to 128 results in an Orange hue.

Hardware Architecture

  • Common Anode vs. Common Cathode: Explains how to wire both types and how the code logic flips (HIGH vs LOW) for each variation.
  • Transitions: The sketch includes a "Rainbow" loop using the fader function, demonstrating smooth transitions between colors for ambient mood lighting.

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

title: "Working with RGB LED"
description: "This project demonstrates the working an RGB LED with Arduino."
author: "SBR"
category: ""
tags:
  - "rgb"
views: 4363
likes: 2
price: 699
difficulty: "Easy"
components:
  - "1x Solderless Breadboard Half Size"
  - "4x Male/Male Jumper Wires"
  - "3x Resistor 1k ohm"
  - "1x RGB Diffused Common Cathode"
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "1758aea201c6ae7f3bd7c7720e5ced860ac25ca8a1e6ef8468d25cb8f3f560ba"
encryptedPayload: "U2FsdGVkX1+kcISjch84qeQmnWKQ61vm38QHpq+xRhHam4OAhVpZj25Rs3ZoW8oqKxsByZSGFLNiwBQLdQlFH9mwC4dob0V8vjgiNIVdyls="
seoDescription: "Learn how to control an RGB LED using Arduino in this project, perfect for electronics beginners."
videoLinks:
  - "https://www.youtube.com/embed/9V6KC9z9RZs"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/working-with-rgb-led-a1e55d_cover.jpg"
lang: "en"