docs:blox:examples-audio-i2s

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:blox:examples-audio-i2s [2024/08/26 14:03]
admin
docs:blox:examples-audio-i2s [2024/08/26 17:20] (current)
admin
Line 1: Line 1:
 ====== 6.4.7 Audio: I2S ====== ====== 6.4.7 Audio: I2S ======
  
-BLOX can be used to to play audio in more complicated projects via an external I2S Audio decoder module+BLOX can be used to to play audio in more complicated projects via an external I2S Audio decoder module
 + 
 +I2S (Inter-IC Sound) is a serial bus interface standard used for connecting digital audio devices. It is designed to transmit high-quality audio data between devices, such as digital-to-analog converters (DACs), and microcontrollers.
  
 ---- ----
Line 7: Line 9:
 ==== 6.4.7.1 Jumpers on the PCM5102a Module ==== ==== 6.4.7.1 Jumpers on the PCM5102a Module ====
  
-^ H ^ Name ^ Description ^ LOW ^ HIGH ^ Jumper must be set to +Use a soldering iron to close the relevant solder jumpers on your module:
-| H1L | FLT | Filter Select | **Normal Latency** | Low Latency | **L** | +
-| H2L | DEMP | De-emphasus control | **OFF** | ON | **L** | +
-| H3L | XMST | Soft Mute Control | Muted | **Unmuted** | **H** | +
-| H4L | FMT | Audio Format Selection | **I2S** | Left Justified | **L** |+
  
-^ Name ^ Description ^ Setting ^ +^Name^Description^Setting| 
-| SCK | Close SCK jumper | CLOSED |+|SCK|Jumper to connect SCK to GND|CLOSED|
  
-| {{:docs:blox:pasted:20240826-140312.png}} | {{:docs:blox:pasted:20240826-135123.png}} |+^H^Name^Description^LOW^HIGH^Jumper must be set to| 
 +|H1L|FLT|Filter Select|**Normal Latency** |Low Latency|**L** | 
 +|H2L|DEMP|De-emphasus control|**OFF** |ON|**L** | 
 +|H3L|XMST|Soft Mute Control|Muted|**Unmuted** |**H** | 
 +|H4L|FMT|Audio Format Selection|**I2S** |Left Justified|**L** | 
 + 
 +|{{:docs:blox:pasted:20240826-140312.png}}|{{:docs:blox:pasted:20240826-135123.png}}| 
 + 
 +----
  
 ==== 6.4.7.2 Wiring PCM5102a Module ==== ==== 6.4.7.2 Wiring PCM5102a Module ====
  
-{{:docs:blox:pcm5102_wiring.png?400|}}+Note: You can use any of the available GPIO pins to connect the module. Just be sure to initialize the firmware with the correct assignments. 
 + 
 +{{:docs:blox:pcm5102_wiring.png?600}} 
 + 
 +----
  
 ==== 6.4.7.3 Initialize PCM5102a Module ==== ==== 6.4.7.3 Initialize PCM5102a Module ====
  
 {{:docs:blox:pasted:20240826-132612.png}} {{:docs:blox:pasted:20240826-132612.png}}
 +
 +Once Set up, wired and initialized - you can proceed to use the module to play sounds in your firmware
 +
 +----
  
 ===== 6.4.7.4 I2S Audio: Play audio files from SD Card ===== ===== 6.4.7.4 I2S Audio: Play audio files from SD Card =====
 +
 +Place an audio file on the SD Card, and let your firmware play it
 +
 +This can be used for audible notifications, or even to play music, useful for anything from halloween projects to building your own jukebox
 +
 +Tip: Not shown, but there are Play Next buttons etc as well
 +
 +{{:docs:blox:pasted:20240826-170937.png}}
 +
 +You can also play the NEXT/PREV or RANDOM file (useful for jukebox like projects, random noises for halloween props etc)
 +
 +{{:docs:blox:pasted:20240826-171852.png}}
 +
 +----
  
 ===== 6.4.7.5 I2S Audio: Play audio via stream URL ===== ===== 6.4.7.5 I2S Audio: Play audio via stream URL =====
 +
 +Enable WIFI and let your firmware play a streamable audio link for you. Could make for a nice jukebox/web radio project
 +
 +{{:docs:blox:pasted:20240826-145539.png}}
 +
 +----
  
 ===== 6.4.7.6 I2S Audio: Use text to speech ===== ===== 6.4.7.6 I2S Audio: Use text to speech =====
 +
 +Enable WIFI, and let your firmware call the Google Text to Speech API to create verbal notifications
 +
 +{{:docs:blox:pasted:20240826-145554.png}}
 +
 +----
 +
 +===== 6.4.7.7 I2S Audio: Volume and Tone =====
 +
 +BLOX provides the ability to set the volume and tone of the audio as well:
 +
 +{{:docs:blox:pasted:20240826-171502.png}}
 +
 +----
  
  
docs/blox/examples-audio-i2s.1724680994.txt.gz · Last modified: 2024/08/26 14:03 by admin