Sound sensor display a real-time waveform on a web server

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • Project:
    1. Read Analog Data: Capture sound sensor readings using the analog pin (A0 for Wemos D1 Mini, you can use ESP32).
    2. Process Data: Normalize and smooth the readings.
    3. Send to WebSocket/Webserver: Use an ESP-hosted web server to stream real-time data.
    4. Visualize Data: Display a waveform using Chart.js or Canvas in JavaScript.
    Wiring (KY-038 to Wemos D1 Mini)
    KY-038 Pin Wemos D1 Mini
    VCC 3V3
    GND GND
    AO A0
    How It Works:
    • The ESP8266 reads the analog sound sensor data.
    • A WebSocket connection streams real-time values.
    • The web page uses a canvas to draw a waveform.
    Code:
    github.com/ukk...

ความคิดเห็น •