Difference: I2SAndSound (3 vs. 4)

Revision 42021-07-07 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

I2S and sound

Introduction

Line: 39 to 39
 
LRCLK D1: GPIO 22 left/right clock
FMT Gnd  
XSMT short-circuit with A3V3   3.3 V output from regulator LDO
Added:
>
>
The SD card module, which may be used to store the music files, uses D5,D6,D7,D8 for its interface pins. These pins should therefore be avoided when choosing the pins for the PCM5102 module. D3 and D4 are used for PSRAM in case of the WROVER-B module.

I2S examples

Mike Teachman, the author of the I2S MicroPython driver has supplied a series of test programs for his driver. These examples need some slight modifications due to different connections of the I2S pins with respect to his hardware:

  • SCK_PIN: corresponds to the hardware pin BCK and must be set to GPIO 26
  • WS_PIN: corresponds to hardware pin LRCK and must be set to GPIO 22
  • SD_PIN: corresponds to hardware pin Din and must be set to GPIO 21
With these modifications, play-tone.py should work. In order to make play-wav-from-flash-blocking.py work modified the WAV_FILE to wav/side-to-side-8k-16bits-stereo.wav. Then I created the folder /wav on the ESP32 with ampy and copied side-to-side-8k-16bits-stereo.wav to the folder.
 -- Uli Raich - 2021-01-24

Comments

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback