7 color flash
int S = 2;
void setup()
{
Serial.begin(9600);
pinMode(2, OUTPUT);
digitalWrite(2, LOW);
}
void loop()
{
digitalWrite(2, HIGH); // เปิดเป็นเวลา 5 วินาที
delay(5000);
}
รายละเอียดทางเทคนิคเพิ่มเติม
Multi-Spectral Light Synthesis
โปรเจกต์พื้นฐานที่สำรวจ LED modules แบบพิเศษที่สามารถทำ high-speed color cycling และ PWM modulation ได้
- Sequential Chromatic Cycling: Arduino จะควบคุม 7-color flash LED แบบพิเศษ หรือกลุ่มของ RGB LEDs โดยใช้ timing loop แบบง่าย firmware จะวนผ่านการผสมสีหลักและสีรอง
- PWM Diffusion Pattern: (เวอร์ชันขั้นสูง) ใช้ Pulse Width Modulation บน R/G/B channels อิสระ เพื่อสร้างเอฟเฟกต์ "Breathing" หรือ "Strobe" แบบกำหนดเอง ซึ่งแสดงให้เห็นพื้นฐานของการควบคุม digital lighting
ข้อมูล Frontmatter ดั้งเดิม
title: "7 color flash"
description: "Lightening effect"
author: "stt4236"
category: ""
tags:
- "lights"
- "kids"
- "communication"
views: 2889
likes: 0
price: 99
difficulty: "Intermediate"
components:
- "1x 7 color flash module"
- "1x USB-A to Mini-USB Cable"
- "1x Breadboard (generic)"
- "1x Jumper wires (generic)"
- "1x Arduino UNO"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "6d0ccd894a5017d1d4f8fd6a1721c0848b6216c38bb22c9c47d949a5993fc2af"
encryptedPayload: "U2FsdGVkX180n3PrFQcLEFMt7sh0riavOzuzqrl53CKZ6pqHnKIOtjJdEF2KQEoMgW7h98lqrFLk6GqhLB+R8cwoPUdJfSsmiBM/OJ92Cpc="
seoDescription: "Create an Arduino project with 7 color flash to achieve a stunning Lightening effect. Simple and perfect for beginners."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/7-color-flash-d69226_cover.jpg"
lang: "th"