Hi, I'm doing a prototype of an SPL meter with a MEMS microphone and a Wemos D1 mini. I'm having problems finding the driver/i2s.h library. I found in several other projects that this library could be useful but I can't find it anywhere.
Do you know if the STEVAL MKI155V2 is compatible with the I2S library? From what I saw in the datasheet, the MEMS microphone that is on the board does not have the I2S protocol but provides a PDM signal, will I be able to meet my objective despite this? Is there any library that allows me to manipulate the PDM signals?
#2. If I run the sketch with the board esp32 dev module it compiles. Any other board I get the no such file or directory error message. I did a search of my HD and "driver/i2s.h" is not found. Yet, it must be on the HD or it wouldn't have compiled. That's why I was looking for a link.
I am going to make a guess that you do not understand that these libraries are board specific. If it doesn't work for a different board then it isn't supported. I use esp32dev all the time with various esp32's connected. Most will work. If you select esp32-my-weird-board and it fails on can't find i2s.h then that board does not support the i2s protocol.
@mo1977 I do not know how many years you have been programming at 2,000 hrs per year, I also do not know how many languages you know, nor do I know if you are trained in the innards of an IDE and the build process but it appears unlikely. Here is the result of simply searching the IDE root folder/dir for I2S.h and the information it gave me.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
There are multiple I2S.h files on your HD for different boards, for use when working at the driver level and for normal API use. You found nothing on a google search I found over a million hits and over 400,000 for driver/I2S.h. Clearly your computer is broken.
I watched the video, like what I saw. Clicked the ..more under the video, clicked the link to the blog, scrolled down to resources and downloaded Bills zip file and the Github library file. I then unzipped Bill's zip fie and opened it. In the Sketch menu I picked Install Library from zip (words similar to that) and selected the I2S library just downloaded from github.
Now I compile the sketch (after picking the DOIT ESP32 board) (search on doit)and ?????? But first , quit the IDE, re open the IDE, the sketch you had open should re-open, now compile again and ......????
I want to make a parabolic dish with a microphone attached. I want the output audio to an amplifier to a headset using an ESP32 or any Arduino I2S capable processor. Is it possible to have a SPH0645 or INMP441 mic as input to the processor with the MAX98357 amplifier as output to a headphone using the ESP32 or any Arduino I2S capable processor? Here is a diagram of what I am thinking.
I am using the I2S Microphone with ESP32 example. When running the code I get the no such directory error for this line "#include " I have scoured GitHub and the internet with nary a location for this library. Where did Bill find this library or anyone else who has successfully got the sketch to work? What did you replace this library with?
@zander What is weird is that I can run the sketch using the 2.0 Beta and it finds the driver/i2s.h file and compiles but the 1.8.19 does not and I get the no such directory or file error. I did a scan of my drive and it can not find the drive/i2s file and yet the 2.0 beta ide can. Computer! Anyway, Thanks for you help. I am throwing in the towel and going back to girl watching. No fuss.
@mo1977 Something is messed up. Both 1 and 2 use the same dirs, I run both. What you might try is to do an uninstall of 1 and a reinstall. You can prove or not that the file is there, just go to the Arduino15 folder. On a Mac it's under Library under my home dir, on windows I am not positive but Appdata/Local/Arduino15 do a search/find of i2s.h and you should get about 16 depending on what boards you have installed. Since you find it with 2 (btw it's RC now not beta) why not just stick with 2. Latest is 2.0.0-RC9.2) and not 1.
@mo1977 Do you know how to select the board? If that is wrong then it may not compile. Here is what you should see but your board myabe another esp32, I just picked a generic. I am also showing you how to change it. Both IDE's use exactly the same library folders, but which folders they use is dependent on the board selected.
@mo1977 Ignore the preceding post. I just noticed the temp and unsaved. That indicates some unusual user behaviour. Basically most of the time the verify or upload also saves the sketch, but if you modified a sketch and then cloned it one way or the other the behaviour is undefined. Just save (Cmd-S) the sketch before switching to another window etc. That is my theory, YMMV.
64591212e2