DFR0126

DFR0126 Datasheet


Audio Analyzer v2 SKU:DFR0126

Part Datasheet
DFR0126 DFR0126 DFR0126 (pdf)
PDF Datasheet Preview
Audio Analyzer v2 SKU:DFR0126

Contents
• 1 Introduction
• 2 Technical Specifications
• 3 Connection Diagram

Sample code

Introduction

This module features the MSGEQ7 graphic equalizer display filter.It will give your arduino ears. Sound is broken down into seven frequency bands and the peak level for each band can be read. The seven frequencies measured are as follows 63Hz, 160Hz, 400Hz, 1kHz, 2.5kHz, 6.25kHz and 16kHz. This module can be used to create sound visualizers, detect patterns in music or add sound activation to your microcontroller.

Technical Specifications

MSGEQ7 Data Sheet Library and sample code

Connection Diagram

Wiring Diagram for Sound Sensor

Wiring Diagram for 3.5mm Jack

Sample code

Arduino IDE Sample code
#include <AudioAnalyzer.h> //Version for Spectrum analyzer //Please download the latest library from the Product page!

Analyzer Audio = Analyzer 4,5,5 ;//Strobe pin ->4 RST pin ->5 Analog Pin ->5 //Analyzer Audio = Analyzer ;//Strobe->4 RST->5 Analog->5
int FreqVal[7];//
void setup

Serial.begin 57600 //Init the baudrate Audio.Init ;//Init module
void loop

Audio.ReadFreq FreqVal ;//return 7 value of 7 bands pass filiter
//Frequency Hz :63 160 400 1K 2.5K 6.25K 16K
//FreqVal[]:
0123456
for int i=0;i<7;i++
the DC value of the sev en bands
if i<6 Serial.print "," ;
else Serial.println ;
delay 20 ;

CVAVR Code:
using atmega128 clock 16Mhz , usart0 9600 baud rate , timer1 scale clock 1024 , adc. formula timer1 when use clock freq 16Mhz

Ttimer1 = Periode Timer1 TCNT1 = Register Timer1 N = Scale clock 1, 8, 64, 256 dan 1024 Tosc = Periode clock Fosc = Frekuensi clock cristal

Tosc = 1/Fosc Tosc = 1/16Mhz =

Ttimer1 = Tosc * 65536 - TCNT1 * N 1 second = * 65536 - TCNT1 * 1024 TCNT1 = 49911 TCNT1 = C2F7 in hex <-- this use in //Timer 1 overflow interrupt service routine

Clock value = Fosc/N Clock value = 16Mhz/1024 = 15,625 kHz <-- this use in clock value timer1

Can use timer0 or other timer with each formula

Chip type

ATmega128

Program type

Application

Clock frequency

Memory model
More datasheets: AT49BV040A-90VU-T | AT49BV040A-70JU-T | AT49BV040A-70JU | AT49BV040A-70TU | AT49BV040A-90TU | AT49BV040A-90VU | 74F114PC | AV60A-048L-050D033N | AV60A-048L-033D025N | AV60A-048L-033D025


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0126 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0126 508649