[Diao Ye learns programming] Arduino hands-on (190) --- MAX4466 sound module 4

The reference to 37 sensors and modules has been widely circulated on the Internet. In fact, there must be more than 37 sensor modules compatible with Arduino. In view of the fact that I have accumulated some sensor and actuator modules on hand, in accordance with the concept of true knowledge (must be hands-on), for the purpose of learning and communication, here I am going to try and do more experiments one by one. Whether it is successful or not, it will be recorded ——Small progress or unsolvable problems, I hope to be able to throw bricks and spark jade.

[Arduino] 168 sensor module series experiments (data code + simulation programming + graphic programming)
Experiment 190: MAX4466 sound sensor electret microphone amplifier microphone adjustable power amplifier module microphone

insert image description here
insert image description here
Knowledge point: The MAX4466 chip
is a micropower operational amplifier optimized for use as a microphone preamplifier. They offer the ideal combination of optimized gain bandwidth product and supply current, and enable low voltage work environment in an ultra-small package. The MAX4466 is gain-stable and provides a gain bandwidth of 200kHz with only 24µA of supply current. After decompression, a minimum stable gain of +5V/V is achieved and a 600KHZ gain bandwidth is provided. In addition, these amplifiers have rail-to-rail output, high AVOL, and excellent power supply rejection and common-mode rejection ratio, suitable for operation in noisy environments. Widely used in cellular phones, digital repeater devices, earphones, hearing aids, microphone preamplifiers, portable computers and speech recognition systems.

insert image description here
Main Features
1. +2.4V to +5.5V supply voltage version,
2. Can provide 5nA full shutdown (MAX4467/MAX4468)
3. Excellent power supply rejection ratio: 112dB
4. Excellent common-mode rejection ratio: 126dB
5. High AVOL: 125dB (RL= 100kΩ)
6. Rail-to-rail output
7. Low 24μA quiescent power supply
8. Current gain bandwidth product:
200kHz (MAX4465/MAX4467/MAX4469)
600kHz AV≥5 (MAX4466/MAX4468)
9. Space saving
5-Pin SC70 (MAX4465/MAX4466)
8-Pin SOT23 (MAX4467/MAX4468/MAX4469) Packages

insert image description here

Experiment 185: MAX4466 Sound Sensor Low Power Electret Microphone Amplifier Microphone Adjustable Power Amplifier Module Microphone
Experiment Open Source Simulation Programming (Linkboy V4.62) Project 9: Display Dynamic Sound Waveform

insert image description here
Experimental serial port plotter returns (the waveform of a song)

insert image description here
[Arduino] 168 kinds of sensor module series experiments (data code + graphic programming + simulation programming)
Experiment 185: MAX4466 Sound Sensor Low Power Electret Microphone Amplifier Microphone Adjustable Power Amplifier Module
Project 10: Using KA2284 Level The simple music rhythm light of the indicator module
Experimental wiring: MAX4466 microphone module OUT is connected to A0 of Uno, and the level module is connected to D6 (pwm)

Experimental open source code

/*
  【Arduino】168种传感器模块系列实验(资料代码+图形编程+仿真编程)
  实验一百八十五:MAX4466声音传感器 低功耗驻极体话筒放大器 麦克风可调功放模块 
  项目之十:使用KA2284电平指示模块的简易音乐节奏灯
  实验接线:MAX4466咪头模块OUT接Uno的A0,电平模块接D6(pwm)
*/

int levelModule = 6;
int readValue = 0; //保存读到的模拟值
int ledValue = 0;  //保存占空比

void setup() {
    
    
  pinMode(levelModule, OUTPUT); //数字口要选择带~号的具有pwm功能的输出口
}

void loop() {
    
    
  readValue = analogRead(A0);     //读取A0模拟口的数值(0-5V 对应 0-1024取值)
  ledValue = map(readValue, 0, 1023, -1, 7);
  // 将0到1024之间的数据映射成-1到7之间的数据
  analogWrite(levelModule, ledValue);   //PWM最大取值6
}

Experimental scene graph

insert image description here
[Arduino] 168 kinds of sensor module series experiments (data code + graphic programming + simulation programming)
Experiment 185: MAX4466 Sound Sensor Low Power Electret Microphone Amplifier Microphone Adjustable Power Amplifier Module Project
11: Super Simple Music Reactive LED Strip

Experimental open source code

/*
  【Arduino】168种传感器模块系列实验(资料代码+图形编程+仿真编程)
  实验一百八十五:MAX4466声音传感器 低功耗驻极体话筒放大器 麦克风可调功放模块
  项目十一:超简单的音乐反应 LED 灯条
  实验接线:MAX4466咪头模块OUT接Uno的A0,电平模块接D13
*/

int soundSensor = A0;
int LED = 13;

void setup() {
    
    
  pinMode(soundSensor, INPUT);
  pinMode(LED, OUTPUT);
}

void loop() {
    
    
  int statusSensor = digitalRead (soundSensor);
  if (statusSensor == 1) {
    
    
    digitalWrite(LED, HIGH);
  }
  else {
    
    
    digitalWrite(LED, LOW);
  }
}

Experimental scene graph dynamic graph

insert image description here

Guess you like

Origin blog.csdn.net/weixin_41659040/article/details/132132173