กลับไปหน้ารวมไฟล์
reactive-sound-color-changing-cube-3745b4-en.md
JOIN THE GIVEAWAY OF SOUND REACTIVE CUBE

Introduction

Today we are going to make a sound reactive wooden cube, which changes color in perfect sync to the surrounding sounds or vibration.

Things required

  • Arduino: I'm using a Nano because of its small size
  • Addressable LED: I'm using UCS1903B, 5V
  • Mic module

Working

  • The sounds will be picked by the microphone module and fed to the Arduino analog input.
  • Then using the received analog values we will change the colors of the LEDs randomly.

Construction

Pictures speak 1000 words! 

soft wood cubes
Stick it together by placing thin acrylic or plastic pieces
Arduino Nano and mic module
we have succesfully fitted all components inside
programming
final test
Complete tutorial
JOIN THE GIVEAWAY OF SOUND REACTIVE CUBE

EXPANDED TECHNICAL DETAILS

Acoustic Spectral Illumination Hub

A beautiful and fun aesthetic project that transforms any room by pulsing a translucent cube with colors that react to the surrounding music.

  • Envelope-Follower Analog Analysis: Uses a high-gain microphone module. The Arduino captures the audio signal and perform a "Peak-to-Peak" amplitude calculation every 20ms to identify the music's "Beat."
  • Hue-to-Amplitude Linear Mapping: As the music gets louder, the Arduino transitions the color of an internal RGB LED or WS2812B pixel. Low volumes might be a deep Blue, while louder peaks trigger a vibrant Red strobe.

Aesthetics

  • Soft-Fade Transition Filter: Includes a software low-pass filter on the color data. Instead of "Jumping" between colors, the cube "Breathes" and fades smoothly, creating a much more premium and relaxing visual effect.

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

title: "Reactive Sound Color Changing Cube!"
description: "Here We are going to make a light cube which will change color accordingly with surrounding sounds. This work is featured in Hackspace mag"
author: "najad"
category: ""
tags:
  - "lights"
  - "art"
  - "toys"
  - "entertainment system"
  - "kids"
views: 19888
likes: 48
price: 699
difficulty: "Intermediate"
components:
  - "1x Superglue"
  - "1x Arduino Nano"
  - "1x UTSOURCE Electronic Parts"
  - "1x SparkFun Electret Microphone Breakout"
  - "1x Addressable LED UCS1903B"
  - "1x Acrylic"
  - "1x White wood"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "ce5d4be018023cdcbf984ec2836b53a829f79443aa0437a6f36e1634c6c372c3"
encryptedPayload: "U2FsdGVkX1/NEWrxEBPw4anIda3p9bTk9UrZhJl3pyqiI7wa6L9mRsJPg4NZ6ZZN4uAkuWIk129ZxHK7a3oyl+U2YTR8sXEWnEW5DRp1hMc="
seoDescription: "Build a Reactive Sound Color Changing Cube featured in Hackspace mag. Sync your light cube colors with surrounding sounds using Arduino."
videoLinks:
  - "https://www.youtube.com/embed/3mDEBsKmTLY"
  - "https://www.youtube.com/embed/2BKPLPYYSP0"
  - "https://www.youtube.com/embed/3mDEBsKmTLY"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/reactive-sound-color-changing-cube-3745b4_cover.gif"
lang: "en"