ESP8266 Digital Radio
ฉันอยากได้วิทยุ **wifi** ที่เรียบง่าย สร้างง่าย โดยใช้แค่ **ESP8266** กับลำโพงเท่านั้น โค้ดนี้ไม่ใช่ของฉัน แต่ฉันอยากจะแสดงให้คนอื่นเห็นถึงวิธีการทำให้มันทำงานได้ เพราะมันน่าสนใจมากที่ได้เห็นความเป็นไปได้ที่ **ESP8266** มีจริง ๆ
รายละเอียดทางเทคนิคเพิ่มเติม
การสตรีมเสียงความเร็วสูง
โปรเจกต์นี้เปลี่ยน ESP8266 (เช่น NodeMCU) ให้เป็นสถานีวิทยุอินเทอร์เน็ตแบบสแตนด์อโลน
- I2S Audio Pipeline: ESP8266 เชื่อมต่อผ่าน WiFi ไปยังสตรีมวิทยุอินเทอร์เน็ต (เช่น Icecast) โดยใช้ไลบรารี
ESP8266Audio เพื่อถอดรหัสสตรีม MP3/ AAC และส่งสัญญาณเสียงดิจิทัลออกทาง I2S ไปยัง DAC ภายนอก (เช่น MAX98357A)
- Buffer Management: มีการใช้ jitter buffer ในหน่วยความจำ RAM ที่จำกัดของ ESP8266 เพื่อให้การเล่นมีเสถียรภาพแม้ในระหว่างที่เครือข่ายมีการเปลี่ยนแปลงเล็กน้อย
ส่วนติดต่อผู้ใช้
- Station Presets: URL ของสถานีวิทยุหลายรายการจะถูกจัดเก็บไว้ในระบบไฟล์ LittleFS หรือ SPIFFS ของอุปกรณ์ ทำให้ผู้ใช้สามารถเปลี่ยนช่องได้โดยใช้ rotary encoder แบบกายภาพ
ข้อมูล Frontmatter ดั้งเดิม
title: "ESP8266 Digital Radio"
description: "Digital Radio made just from an ESP8266 and a speaker"
author: "Henry2106"
category: ""
tags:
- "audio"
- "music"
views: 20143
likes: 7
price: 870
difficulty: "Intermediate"
components:
- "1x NodeMCU ESP8266 Breakout Board"
- "1x Jumper wires (generic)"
- "1x Speaker: 0.25W, 8 ohms"
- "1x Breadboard (generic)"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles:
- "https://github.com/earlephilhower/ESP8266Audio"
- "https://github.com/earlephilhower/ESP8266Audio"
documentationLinks: []
passwordHash: "6f089d7194df24be64eabd98ce565f89dc11862c064137153e4496fa458b77f7"
encryptedPayload: "U2FsdGVkX1/2UJs5xf29qtWYgHhe7zv8v77cR3f+Y2Tu/A1DdtdzaU2+u9sF8AEfgY5UVB9CoVfu9sTBCo0WX5cSuQy0jT2V7KW+ncpDibg="
seoDescription: "Build a Digital Radio using only an ESP8266 and a speaker. A simple and fun DIY electronics project."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/esp8266-digital-radio-aa98bd_cover.jpg"
lang: "th"