กลับไปหน้ารวมไฟล์
super-mario-theme-song-5bc394-en.md

Very easy to make. You don't have to use a potentiometer like the one in the picture.

EXPANDED TECHNICAL DETAILS

8-Bit Orchestral Synthesis

This project recreates the iconic Nintendo soundtrack using the Arduino's high-speed PWM timers and frequency-to-note mapping.

  • Frequency Modulation Engine: The Arduino uses the tone() function to generate precise square waves for each note ($C4, D4, E4$, etc.). The entire "Overworld Theme" is stored as a series of constant arrays in PROGMEM to save RAM.
  • Micro-Timing Logic: Detailed tempo management is handled by a custom playNote() function, which calculates the wait duration based on the song's BPM (Beats Per Minute), ensuring the rhythmic "Swing" of the Mario theme is preserved.

Multimedia Feedback

  • Sync-Pulse Visualizer: On every note trigger, a secondary LED or an 8x8 LED Matrix flashes in synchronization with the audio frequency, providing a visual beat-counter for the performance.

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

title: "Super Mario Theme Song"
description: "Plays beeps."
author: "isthistaken"
category: ""
tags:
  - "audio"
  - "music"
views: 6619
likes: 0
price: 699
difficulty: "Easy"
components:
  - "1x BC547 transistor"
  - "1x Jumper wires (generic)"
  - "1x Soldering iron (generic)"
  - "1x Speaker: 0.25W, 8 ohms"
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "90248dcf1457808307a937ad4e8d7b9de698e681ab4ec8d65c797641bb52cbcc"
encryptedPayload: "U2FsdGVkX1//k3S4lh6VdZKpcMHjcMAykV5wuFLL++hyXXyM4TmvwiwGWxJs+CCu4ID7hszAx6msZvrHkd52hjMNAEIgM09qeD4K1M7PvF8="
seoDescription: "Play the Super Mario Theme Song with Arduino. A simple coding project that generates beeps."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/super-mario-theme-song-5bc394_cover.jpg"
lang: "en"