กลับไปหน้ารวมไฟล์
rgb-light-color-mixer-153958.md

ชื่อโปรเจกต์: เครื่องผสมสีไฟ RGB (ฉบับวัยรุ่นสายช่าง)

Light Mixer

Some colors

Some colors

Some colors

Some colors

Some colors

Some colors

Some colors

Some colors

รายละเอียดทางเทคนิคแบบจัดเต็ม

การผสมสีผ่าน Interface ฝีมือมนุษย์

โปรเจกต์นี้จะทำให้น้องๆ ได้ลอง "ผสมสี" แม่สีหลักอย่าง แดง (Red), เขียว (Green) และน้ำเงิน (Blue) ด้วยมือตัวเอง เพื่อสร้างเฉดสีที่ต้องการออกมาเป็นล้านๆ สีบน RGB LED แค่ตัวเดียว หล่อเท่เลยงานนี้

  • Triple-Analog Sampling: เราจะใช้ Potentiometer 3 ตัว (แยกคุม R, G และ B) โดยเจ้า Arduino จะคอยอ่านค่าแรงดัน Analog (0-5V) แล้วเอามา Map ให้กลายเป็นค่า PWM ขนาด 8-bit (0-255) จัดไปวัยรุ่น
  • PWM Intensity Control: ค่าที่ Map ได้จะถูกเอาไปขับแต่ละ Channel ของ RGB LED แบบ Common-Cathode พอนน้องๆ ปรับค่า Duty Cycle ของแต่ละ Pin แสงมันก็จะผสมกันให้เห็นแบบ Real-time เลยล่ะ ห้ามทำช็อตนะตัวนี้!

เอาไปใช้งานจริงยังไง?

  • ต้นแบบไฟแต่งห้องสุดแนว (Custom Lighting Prototype): เหมาะมากสำหรับสายดีไซน์ที่อยาก "ล็อคสี" ที่ใช่ (ดูค่าสีได้จาก Serial Monitor ทั้งแบบ Hex หรือ RGB) เอาไปใช้ในงานตกแต่งภายในหรือทำโปรเจกต์ Branding ก็ดูโปรสุดๆ สู้งานนะน้อง!

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

title: "RGB Light Color Mixer"
description: "RGB light color mixer made with Arduino Nano provided by PCBWay. We see the interaction of the primary colors, varying the intensity of each"
author: "guiye"
category: "Lights & LEDs"
tags:
  - "Lights"
views: 809
likes: 0
price: 699
difficulty: "Easy"
components:
  - "1x MDF 3.00mm"
  - "1x Jumpers  for protoboard"
  - "1x drill"
  - "1x Soldering iron (generic)"
  - "3x 10kOhm potentiometer"
  - "1x Arduino Compatible RGB LED Module"
  - "1x Mini breadboard - White"
  - "1x Arduino Nano"
  - "1x USB Power Bank (Generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/3d5fe84e-6b0d-44ed-84b8-8af1b1c869d3.ino"
documentationLinks: []
passwordHash: "ca5488c4116e3c41c0ccc5c7d077e9e4df985a2ca7c7a7afb20d0820babb3acc"
encryptedPayload: "U2FsdGVkX18NakRgTP/N9rLN1mjeY+wR8wzAbNr5waRz0zdnv2E/4Y20WbPngU8/kPpQxUwkl2yonxKBUonxAVSnkzaDbhgw8hoSm0MQsFo="
seoDescription: "Build an RGB light color mixer using Arduino Nano from PCBWay. Explore primary color interaction and intensity control in this DIY project."
videoLinks:
  - "https://youtu.be/JZGNbcqDNTE?feature=shared"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/rgb-light-color-mixer-153958_cover.jpg"
lang: "th"