3096 views|30 replies

3386

Posts

0

Resources
The OP
 

[Hua Diao Experience] 20 Music Visualization: A Series of Trials with ESP32_C3 and WS2812B [Copy link]

 
This post was last edited by eagler8 on 2022-7-19 06:13

The MAX9814
is a low-cost, high-performance microphone amplifier with automatic gain control (AGC) and low-noise microphone bias. The device features a low-noise front-end amplifier, a variable gain amplifier (VGA), an output amplifier, a microphone bias voltage generator, and an AGC control circuit.
●Automatic gain control (AGC)
●Three gain settings (40dB, 50dB, 60dB)
●Programmable attack time
●Programmable attack and release time ratio
●Supply voltage range 2.7V to 5.5V
●Low THD: 0.04% (typ)
●Low-power shutdown mode
●Built-in 2V low-noise microphone bias

This post is from DIY/Open Source Hardware

Latest reply

This is such an incredible design, call me big brother!   Details Published on 2022-7-21 16:25
 

3386

Posts

0

Resources
2
 

Main features of WS2812B
Intelligent reverse connection protection, reverse connection of power supply will not damage IC.
IC control circuit and LED point light source share a power supply.
Control circuit and RGB chip are integrated in a 5050 package component to form a complete externally controlled pixel.
Built-in signal shaping circuit, any pixel receives the signal and then outputs it after waveform shaping, ensuring that line waveform distortion will not accumulate.
Built-in power-on reset and power-off reset circuits.
The three primary colors of each pixel can achieve 256 levels of brightness display, complete 16777216 colors of true color display, and the scanning frequency is not less than 400Hz/s.
Serial cascade interface, can complete data reception and decoding through a signal line.
No circuit needs to be added when the transmission distance between any two points does not exceed 5 meters.
When the refresh rate is 30 frames/second, the number of cascades is not less than 1024 points.
The data transmission speed can reach 800Kbps.
The color of light is highly consistent and cost-effective.

Main application areas:
LED full-color luminous character light string, LED full-color module, LED full-color soft light bar, hard light bar, LED guardrail tube,
LED point light source, LED pixel screen, LED special-shaped screen, various electronic products, and electrical equipment marquee.

This post is from DIY/Open Source Hardware
 
 

3386

Posts

0

Resources
3
 
This post was last edited by eagler8 on 2022-7-19 06:57

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
4
 

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
5
 

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
6
 

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
7
 

WS2812 module electrical schematic

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
8
 

The Hezhou CORE ESP32-C3 core board is a development board designed based on the Espressif ESP32-C3 chip. The size is only 21mm×51mm, the board edge adopts a stamp hole design, and the onboard Wi-Fi/BLE antenna is convenient for developers to use in different scenarios. The core board supports UART, GPIO, SPI, I2C, ADC, PWM and other interfaces, which can be selected according to actual needs.

Main features
(1) Powerful functions and wide application
The Hezhou ESP32-C3 development board has a highly integrated design, onboard Wi-Fi/BLE antenna, 4MB Flash, and supports UART, GPIO, SPI, I2C, ADC, PWM and other interfaces, which can meet most applications; the onboard CH343P chip realizes a higher speed USB to serial port, and the firmware download is faster and more stable.
(2) Sufficient materials and good signal
The Hezhou ESP32-C3 development board uses a 4-layer PCB and an onboard 2.4G antenna. After debugging, it has achieved a relatively good use effect. The measured standing wave ratio (VSWR) value in the range of 2.38 to 2.48GHz is relatively good, which can effectively radiate the transmission power to the wireless space.
(3) Diversified development is more convenient
The Hezhou ESP32-C3 development board currently supports: LuatOS/Lexin IDF/Arduino/MicroPython and other diversified development methods, which are more convenient to use. With the efforts of the community master Meng Cheng, the LuatOS firmware now supports the following functions, and other content is being continuously updated.

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
9
 

Hezhou CORE ESP32-C3 core board IO pins

1 SPI FLASH, 4MB onboard, supports up to 16MB
2 UART interfaces, UART0~UART1, of which the download port is UART0
6 12-bit ADC, maximum sampling rate 100KSPS
1 low-speed SPI interface, supports master mode
1 IIC controller
4 PWM interfaces
15 GPIO external pins, reusable
2 SMD LED indicators
1 reset button + 1 BOOT button
1 USB to TTL download and debug port
2.4G PCB onboard antenna

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
10
 

【Hua Diao Experience】20 Music Visualization: A Series of Trials with ESP32_C3 and WS2812B Experimental
Procedure 1: Simple Test of MAX9814 Microphone Amplifier Module
Module Wiring:
MAX9814 ESP32_C3
VCC 5V
GND GND
OUT 4(ADC4)

/*
  【花雕体验】20 音乐可视化:ESP32_C3与WS2812B的系列尝试
  实验程序一:简单测试MAX9814麦克风放大器模块
  模块接线:
  MAX9814   ESP32_C3
  VCC          5V
  GND         GND
  OUT       4(ADC4)
*/

void setup() {
  Serial.begin(9600);
  pinMode(4, INPUT);
}

void loop() {
  Serial.println(analogRead(4));
  delay(1000);
}

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
11
 

Experimental serial port return status

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
12
 

Open Arduino IDE - Tools - Serial Port Plotter to view the experimental waveform

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
13
 

Experimental serial port plotter returns (waveform of measured environmental noise)

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
14
 

Experimental serial port plotter returns (measured waveform of the middle part of the music)

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
15
 

Experimental scene diagram

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
16
 

【Hua Diao Experience】20 Music Visualization: A Series of Trials with ESP32_C3 and WS2812B Experimental
Procedure 2: Sound Level Measurement
Module Wiring:
MAX9814 ESP32_C3
VCC 5V
GND GND
OUT 4(ADC4)

/*
  【花雕体验】20 音乐可视化:ESP32_C3与WS2812B的系列尝试
  实验程序二:声级测量
  模块接线:
  MAX9814   ESP32_C3
  VCC          5V
  GND         GND
  OUT       4(ADC4)
*/

const int sampleWindow = 50; // 以mS为单位的采样窗口宽度(50 mS = 20Hz)
unsigned int sample;

void setup() {
  Serial.begin(9600);
  pinMode(4, INPUT);
}


void loop() {
  unsigned long startMillis = millis(); // 样本窗口的开始
  unsigned int peakToPeak = 0;   // 峰峰值

  unsigned int signalMax = 0;
  unsigned int signalMin = 3000;

  // collect data for 50 mS
  while (millis() - startMillis < sampleWindow)
  {
    sample = analogRead(4);
    if (sample < 3000)  // 抛出错误的读数
    {
      if (sample > signalMax)
      {
        signalMax = sample;  // 只保存最大级别
      }
      else if (sample < signalMin)
      {
        signalMin = sample;  // 仅保存最低级别
      }
    }
  }
  peakToPeak = signalMax - signalMin;  // max-min =峰峰值幅度
  double volts = (peakToPeak * 5.0) / 50;  // 转换为伏特

  Serial.println(volts);
}

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
17
 

Experimental serial port plotter return status

This post is from DIY/Open Source Hardware
 
 
 

3386

Posts

0

Resources
18
 

The second digital sound module INMP441 (the actual product is still on the way)

This post is from DIY/Open Source Hardware
 
 
 

221

Posts

0

Resources
19
 
The device features a low-noise front-end amplifier, variable gain amplifier (VGA), output amplifier, microphone bias voltage generator, and AGC control circuit.
This post is from DIY/Open Source Hardware

Comments

Thank you teacher  Details Published on 2022-7-20 04:54
 
 
 

3386

Posts

0

Resources
20
 
476700838 Published on 2022-7-19 16:51 It is a low-cost, high-performance microphone amplifier with automatic gain control (AGC) and low-noise microphone bias. The device has a low-noise front-end amplifier, ...

Thank you teacher

This post is from DIY/Open Source Hardware
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list