ESP32 Sound - Working with I2S

DroneBot Workshop May 22, 2022
Video Thumbnail
DroneBot Workshop Logo

DroneBot Workshop

@dronebotworkshop

About

Welcome to the Workshop! The DroneBot Workshop is the place where I work with Arduino, Raspberry Pi, ESP32, and lots of other cool microcontrollers, components, and sensors. This is a channel for learning and understanding. While I do build projects, most episodes focus on showing you HOW things work, so you can use the information to bring your own designs to life. Every video has a corresponding article on my website at https://dronebotworkshop.com , along with the diagrams and code samples you’ll need to build your own creations. You can also participate in discussions on my Forum at https://forum.dronebotworkshop.com. Please note that I no longer do any sponsored videos, enquiries for these will be ignored! If you'd like to know more about me or the DroneBot Workshop you can read the FAQ at https://dronebotworkshop.com/about-dronebot-workshop/faq/ And if you have technical questions please ask them on the Forum. Welcome to the Workshop! I hope you enjoy your stay! Bill

Video Description

Build an Internet Radio, an MP3 Player, and display microphone waveforms with an ESP32 and some I2S peripherals. Learn to use the I2S sound protocol with the ESP32. Article with code: https://dronebotworkshop.com/esp32-i2s More articles and tutorials: https://dronebotworkshop.com Join the conversation on the forum: https://forum.dronebotworkshop.com Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/ You might have seen the term “I2S” on the spec sheet for the ESP32 and may have just assumed that it was a form of I2C. Well, you would be mistaken - I2S is a protocol for manipulation of digital audio, and today we will be using it with the ESP32. After a short primer on I2S and digital audio fundamentals, we will use an I2S microphone module with an ESP32. We’ll display the microphone output as a waveform on the Arduino IDE Serial Plotter. After that, we will grab a library from GitHub, and we’ll use it to build an MP3 player with an I2S amplifier module. We’ll then use the same library and the ESP32 WiFi to create an Internet Radio. Finally, we will convert our simple Internet Radio into a stereo device, with a volume control. Here is what is in today's video: 00:00 - Introduction 01:27 - I2S & Digital Audio Intro 08:25 - I2S Peripherals 10:18 - Using an I2S Microphone 18:37 - I2S MP3 Player 28:31 - Simple I2S Internet Radio 33:41 - Stereo Internet Radio 43:56 - Conclusion Remember, if you need any of the code used here, you'll find it on the DroneBot Workshop website at https://dronebotworkshop.com\esp32-i2s. Hope you enjoy the video! Bill

Sound Engineering Starter Kit

AI-recommended products based on this video

Loading...
CHARM FOCUS Stereo Headset Adapter, Audio Mic Headphone Adapter for Xbox One, Xbox Series X|S and Elite Controller, Adjust Audio Balance (Game Sound & Voice Chat), Not Bluetooth Compatible

CHARM FOCUS Stereo Headset Adapter, Audio Mic Headphone Adapter for Xbox One, Xbox Series X|S and Elite Controller, Adjust Audio Balance (Game Sound & Voice Chat), Not Bluetooth Compatible

(79)
$34.99
FREE delivery Sun, Aug 24 on your first order
Loading...
2 Pack Apple Earbuds iPhone Headphones Wired Lightning Earphones [Apple MFi Certified] (Built-in Microphone & Volume Control) Noise Isolating with iPhone 14/13/12/11/XR/XS/7/821551-8 Interlocking Case

2 Pack Apple Earbuds iPhone Headphones Wired Lightning Earphones [Apple MFi Certified] (Built-in Microphone & Volume Control) Noise Isolating with iPhone 14/13/12/11/XR/XS/7/821551-8 Interlocking Case

(10,235)
$15.99
FREE delivery Sat, Feb 21 on your first order
Loading...
Monster Persona 5th ANC-Wireless Bluetooth Over-Ear Headphones with Microphone, 70H Playtime, Bluetooth 6.0, Comfortable and Foldable Design (Beige)

Monster Persona 5th ANC-Wireless Bluetooth Over-Ear Headphones with Microphone, 70H Playtime, Bluetooth 6.0, Comfortable and Foldable Design (Beige)

(11)
$59.99
FREE delivery Fri, Oct 31
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)
Best Seller

Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)

(78)
$6.99
FREE delivery Fri, Sep 5 on your first order
1K+ bought in past month
Loading...
Beats Solo 4 - Wireless Bluetooth On-Ear Headphones, Apple & Android Compatible, Up to 50 Hours of Battery Life - Matte Black

Beats Solo 4 - Wireless Bluetooth On-Ear Headphones, Apple & Android Compatible, Up to 50 Hours of Battery Life - Matte Black

(11,727)
189.93
PrimeFREE delivery Saturday, June 14
400+ bought in past month
Loading...
Asus TUF Gaming 27” 1080P Monitor (VG279QL3A) - Full HD, 180Hz, 1ms, Fast IPS, Extreme Low Motion Blur, FreeSync Premium, G-SYNC Compatible, Speakers, DisplayPort, Height Adjustable, 3 Year Warranty

Asus TUF Gaming 27” 1080P Monitor (VG279QL3A) - Full HD, 180Hz, 1ms, Fast IPS, Extreme Low Motion Blur, FreeSync Premium, G-SYNC Compatible, Speakers, DisplayPort, Height Adjustable, 3 Year Warranty

(8,356)
$179.99$167.39
FREE delivery Sun, Jan 4Only 1 left in stock.
100+ bought in past month
Loading...
Asus TUF Gaming 27” 1080P HDR Monitor (VG279QM1A) - Full HD (1920 x 1080), 280Hz, 1ms, Fast IPS, Extreme Low Motion Blur Sync, Freesync Premium, G-SYNC Compatible, Speakers, Variable Overdrive

Asus TUF Gaming 27” 1080P HDR Monitor (VG279QM1A) - Full HD (1920 x 1080), 280Hz, 1ms, Fast IPS, Extreme Low Motion Blur Sync, Freesync Premium, G-SYNC Compatible, Speakers, Variable Overdrive

(3,783)
$209.99
FREE delivery Jan 13 - Feb 3
100+ bought in past month