ESP32 - Intro to I2S Episode 1, explanation with basic example outputting a square wave

  Рет қаралды 40,922

XTronical

XTronical

Күн бұрын

Пікірлер: 56
@maximus6884
@maximus6884 2 жыл бұрын
Your clear explanation on i2s was long due to the world. Thank you.
@noweare1
@noweare1 3 жыл бұрын
Good job. Answered a lot of questions that I had after reading the esp32 documentation on I2S !
@fvgm
@fvgm 2 жыл бұрын
Nice and clear explanation about I2S interface. Thank you.
@csabahusla7766
@csabahusla7766 2 жыл бұрын
Nice work. I got answers to many questions about the use of I2S. This is the first time that I can successfully play different sounds on an external DAC from the BLE midi input on the ESP32.
@ryanmccallan3843
@ryanmccallan3843 Ай бұрын
Hey, not sure if you read these comments anymore, but I have found all of your information super useful. I am not sure how to incorporate bluetooth into my project though, I would like mp3 and ble capabilities!
@dansam1395
@dansam1395 4 жыл бұрын
fantastic explanation on i2s works, well done!
@XTronical
@XTronical 4 жыл бұрын
Thanks for the feedback
@TheDiverJim
@TheDiverJim 3 жыл бұрын
great vid. You have many great vids. How is this not a 100k channel?
@anonymous.youtuber
@anonymous.youtuber 3 жыл бұрын
Thank you for the excellent explanation! 🙏🏻
@XTronical
@XTronical 3 жыл бұрын
Thanks for the feedback
@gearscodeandfire
@gearscodeandfire Жыл бұрын
this was wonderful, very glad i found it!
@elchev5082
@elchev5082 2 жыл бұрын
Could I ask you why you masked Output value? You add two 16bit values (OuputValue is uint16_t) so I think that Value32But = (OutputValue
@maureljulien
@maureljulien 2 жыл бұрын
Hi, thank you very much these precious informations. I'd have a quesiton. I want to use stereo headphone connected thru jack using two MAX98357. My question is how do I connect the two MAX negative output to jack ground pin ? directly together (but I suppose not...) ? Thank you for everything !
@XTronical
@XTronical 2 жыл бұрын
Yes, directly together for ground to ground of Jack then one positive to one jack connection and the other positive to the remaining last jack connection.
@weekal5515
@weekal5515 3 жыл бұрын
Ive been reserching i2s but the information is so clutterd with non standerd with standers or naming the pins otherly its just painful
@kitlinghou6848
@kitlinghou6848 2 жыл бұрын
Thank you for your great explanation let us know more about i2s. Recently i wanna to build the audio spectrum to show as led matrix from mp3 in sd card. I think it is workable, is it possible got the analog signal from i2S to transform into fft to display the sound movement to led matrix, would you share your idea how to implement to esp32 board ?
@XTronical
@XTronical 2 жыл бұрын
It is possible. There is some maths you’ll can do on the digital data but I worked on this over a year ago and couldn't get it to work properly and I spent some time on it. I can tell you the library if you want and you can have a go if you wish.
@kitlinghou6848
@kitlinghou6848 2 жыл бұрын
@@XTronical Thank you for your reply. Would you share all information you have such as library, connection diagram etc to me?
@XTronical
@XTronical 2 жыл бұрын
There is nothing different for wiring as the analyser works with the digital file before it's output. I can't find the code that I did (I probably deleted it in frustration!). However I based all my work on the videos from the channel called "Dave's Garage", here's a link to the first video he does on the spectrum analyser. I used whatever library he does. kzbin.info/www/bejne/nJDdpWqwmax9eaM Good luck :)
@rajeshkolhe1522
@rajeshkolhe1522 4 ай бұрын
Hi sir ..i need I2s parallel how i can do it ?
@SA-oj3bo
@SA-oj3bo 2 жыл бұрын
Hi, I would like to use I2C MIC to capture the sound and forward it to the I2S DAC MAX98357A, I can not find any example how to do that. Can you help? Thx.
@XTronical
@XTronical 2 жыл бұрын
Sorry, I've never looked at this.
@stanislavtodorov8705
@stanislavtodorov8705 Жыл бұрын
Great explanation, the best I've stumbled upon. Can I use two I2S ports as OUTPUTS simultaneously? My idea is to build a Bluetooth audio receiver which sends the data through two I2S ports at the same time. The idea is to implement high pass filter on one signal and low-pass on the other. Then feed the I2S signals to 2 external DACs and create a 2.1 audio system (subwoofer + 2 satelites). Do you think this is possible?
@XTronical
@XTronical Жыл бұрын
Yes, I believe you can. I've never tried but I don't see why not. Getting them perfectly in sync maybe the only issue. That said they'd only be a few bits out at most, which surely would not be noticeable. It would be such a small time scale.
@stanislavtodorov8705
@stanislavtodorov8705 Жыл бұрын
@@XTronical ​ @XTronical Awesome! Thanks for your prompt reply. Few samples will not be noticeable time difference. There are much more things to find out before worrying about sync. At first I have to find out how to initialize both I2S ports simultaneously...static const i2s_port_t i2s_num = I2S_NUM_???? Sorry, I'm complete noob.
@JanHKila
@JanHKila 4 жыл бұрын
Great, just what I need! Is this a slip of the tongue? "longer wavelength and higher frequency". Line: static const uint16_t WaveLength=100; As I understand it for quite some time, a longer wavelength gives a lower frequency. Or do you have something else in mind?
@XTronical
@XTronical 4 жыл бұрын
Yes, a mistake. They are inversely proportional as you say, good spot!
@sophiebolinski665
@sophiebolinski665 3 жыл бұрын
Hi, I have a really frustrating experience trying to set up the code you are explaining in this video. The #include "driver/i2s.h" statemanet throws a "no such file or directory" error. I have the according esp8266 library installed, I don't find the folder "driver" anywhere and I can not find any information about how to change my directory system or which file I have to include so that it is working... Would be a big help if you know something!
@samsamm777
@samsamm777 2 жыл бұрын
I have the same problem, dont know which library to install
@XTronical
@XTronical 2 жыл бұрын
Have you tried deleting the line. I think this library maybe standard include now and you don't need to write the words line explicitly, although I'm using esp32 in my examples not 8266
@SergeyILinykh
@SergeyILinykh 4 жыл бұрын
Will all of your examples work with I2S PCM5102?
@XTronical
@XTronical 4 жыл бұрын
Yes, they will. Just follow the wiring in the episode on Internet radio from a few episodes ago
@SergeyILinykh
@SergeyILinykh 4 жыл бұрын
@@XTronical Thank you!
@supermamaoo
@supermamaoo 3 жыл бұрын
Very good explanation. Just a question: is it possible to use a ESP8266 instead of ESP32 ?
@XTronical
@XTronical 3 жыл бұрын
Yes, should be OK. It supports i2s it's just a little less powerful and less memory than the 32.
@neilinsane5545
@neilinsane5545 4 жыл бұрын
Help, How can I generate a sine cosine wave with PCM5102?
@XTronical
@XTronical 4 жыл бұрын
I haven't done this for i2s but I did do it for my dac audio series. This page has the code. www.xtronical.com/testing-the-dacaudio-hardware/ It would need a rewrite for i2s but does show the principles. When I release the full library for i2s this will be able to generate sine waves, if you want to wait.
@projetos_leotronico
@projetos_leotronico 4 жыл бұрын
Great! Tks.
@abhilashpatel1809
@abhilashpatel1809 3 жыл бұрын
best explanation!!
@kmtsvetanov
@kmtsvetanov Ай бұрын
why do i hear a buzzing constant sound?
@XTronical
@XTronical Ай бұрын
Hard to say. Double check everything.
@kmtsvetanov
@kmtsvetanov Ай бұрын
@@XTronical it's strange. For me i had to connect SCK to ground. Is that the right way?
@XTronical
@XTronical Ай бұрын
@kmtsvetanov no, you should need the clock connected to esp not ground.
@rockett8610
@rockett8610 3 жыл бұрын
Why using 25 27 26 in this order?
@XTronical
@XTronical 3 жыл бұрын
No reason, I probably saw them used in some documentation or just picked them semi randomly. There might have been some logic a while back but if there was I've forgotten it! The pins can be largely any you want.
@graysong5787
@graysong5787 3 жыл бұрын
Thank you!
@brianharper9798
@brianharper9798 4 жыл бұрын
Ooh, Could build another synthesizer.
@geraldoleandro4824
@geraldoleandro4824 3 жыл бұрын
Favor ativar legenda.
@JerryEricsson
@JerryEricsson 3 жыл бұрын
If you have heard it before; you will understand, and chuckle. If you have never heard it before, think about it, long and hard "put it back in the sand...."
@Marc_Wolfe
@Marc_Wolfe 11 ай бұрын
Oh boy, library successfully installed. Finally might have a good example to test my DAC.... nope. More youtube garbage.
@XTronical
@XTronical 11 ай бұрын
This is a simple intro, I've my own I2S library in some of my other videos. But there's a lot of crap on YT, so can't promise it'll do what you want. Probably best to not bother actually. Probably disappointing.
@Marc_Wolfe
@Marc_Wolfe 11 ай бұрын
@@XTronical Instead of documentation, you and dozens others want to re-design... re-PAINT, the wheel.
@XTronical
@XTronical 11 ай бұрын
My website is available for further information. People upload what interests them. Nature of the beast.
@Marc_Wolfe
@Marc_Wolfe 11 ай бұрын
It's a shame doing things a new garbage way seems to interest so many people who have any idea how to code, and also bother to upload videos for others. It's also a shame that's the depth of your opinion.
@XTronical
@XTronical 11 ай бұрын
One person's garbage is another person treasure. But if we're resorting to personal insults rather than constructive criticism then I'm out. Feel free to have the last word. I'm done.
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 541 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Is I²S the best?
12:29
The Hans Beekhuyzen Channel
Рет қаралды 15 М.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 735 М.
ESP32 Audio Input Using I2S and Internal ADC
10:43
atomic14
Рет қаралды 135 М.
[#5] IIR Filters - Audio DSP On STM32 with I2S (24 Bit / 96 kHz)
26:33
YetAnotherElectronicsChannel
Рет қаралды 79 М.
USB Audio vs. I2S
5:45
Paul McGowan, PS Audio
Рет қаралды 41 М.
Building a Digital Music Player with I2S?! What is I2S! EB#45
10:24
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 306 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
SPDIF, TOSlink, AES/EBU or I²S, what’s the best?
19:09
The Hans Beekhuyzen Channel
Рет қаралды 82 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН