Giter Club home page Giter Club logo

esp32_i2s_example_modified's Introduction

Summary 概要

This program is a sample for using external i2s for ESP32 by ESP-IDF. Because original example program dosen't work well, so I modified it to work well. (And more simply for easy understanding) Original is from https://github.com/espressif/esp-idf .

Modified:

  • work well
  • 1 channel(mono)
  • Pin assign(for compatible with ESP-ADF dev-boards)

このプログラムはESP32の外部i2sをESP-IDFで使うサンプルプログラムです。 オリジナルのサンプルがうまく動かなかったので、動くよう修正かつ理解しやすく変更しました。 オリジナルは https://github.com/espressif/esp-idf にあります。

変更点:

  • 動作可能にした
  • モノラル化
  • ピンアサイン(ESP-ADF開発ボードに合わせた)

※日本語Onlyですが、Qiitaに解説投稿しました。
ESP-IDF(ESP32) v4 で外部I2S DACを使って正弦波を鳴らす


这程序是一个例子, 用ESP-IDF使用外部i2s功能。 原本样本程序不太成功, 我修改了一下。 原本是在 https://github.com/espressif/esp-idf

变更点:

  • 能运行了
  • 单声道化
  • 端子分配 (跟ESP-ADF开发板一致了)

Pin Assgin

pin name (MAX98357A board print) function gpio_num
WS (LRC) word select (L/R Clock) GPIO_NUM_25
SCK (BCLK) continuous serial clock (Block CLocK) GPIO_NUM_5
SD (DIN) serial data (Data IN) GPIO_NUM_26

Wiring

Origin

https://github.com/espressif/esp-idf/tree/master/examples/peripherals/i2s

Fritzing footprint data

ESP32 : https://fritzing.org/projects/esp32_ds3231/
MAX9837A : https://github.com/adafruit/Fritzing-Library

How to Use Example

Hardware Required

  • A development board with ESP32 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)
  • A USB cable for power supply and programming

Build and Flash

Build the project and flash it to the board, then run monitor tool to view serial output:

idf.py -p PORT flash monitor

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

esp32_i2s_example_modified's People

Contributors

example123 avatar moppii-hub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.