Hello,
I am trying to record temperature and humidity data with on ESP32-WROOM-32 with the Sensor DHT22.
Everything works fine until the first loop() is done. After that I get a 'Stack Smashing Protection failure' error and the esp32 reboots.
I am quite new to C++ but I think the problem is the ...
Search found 6 matches
- Sun Mar 06, 2022 5:25 pm
- Forum: ESP-IDF
- Topic: Stack smashing protect failure after calling method of class with pointer
- Replies: 1
- Views: 7516
- Wed Aug 18, 2021 8:03 am
- Forum: Hardware
- Topic: Reading from INMP441 with ESP32-WROOM-32results in loud noise
- Replies: 7
- Views: 19433
Re: Reading from INMP441 with ESP32-WROOM-32results in loud noise
Using the example code from https://github.com/espressif/esp-idf/blob/master/examples/peripherals/i2s/i2s_audio_recorder_sdcard/main/i2s_recorder_main.c results in loud noise again and sounds broken again:
#define SAMPLE_RATE (44100)
#define SAMPLES_PER_BUFFER (1024) // 256 samples per buffer ...
#define SAMPLE_RATE (44100)
#define SAMPLES_PER_BUFFER (1024) // 256 samples per buffer ...
- Tue Aug 17, 2021 3:17 pm
- Forum: Hardware
- Topic: Reading from INMP441 with ESP32-WROOM-32results in loud noise
- Replies: 7
- Views: 19433
Re: Reading from INMP441 with ESP32-WROOM-32results in loud noise
Hi,
You can try:
const size_t recordSize2s = (SAMPLE_RATE * (BITS_PER_SAMPLE / 8)) * 2;
Hello,
using this still leads to the same error. Passing a size with the value 64000 to init the buffer static int16_t i2sBuff[recordSize2s]; is just too big and overflows the DRAM I guess.
I found a ...
- Tue Aug 17, 2021 9:26 am
- Forum: Hardware
- Topic: Reading from INMP441 with ESP32-WROOM-32results in loud noise
- Replies: 7
- Views: 19433
Re: Reading from INMP441 with ESP32-WROOM-32results in loud noise
How do you import the raw file into Audacity? From your data, you should import it as signed 16-bit, little-endian. If you make a mistake there, you'll indeed get weird noises.
Thank you for your answer. Unfortunatley this was not the problem because I imported the raw file with 16 bit unsigned ...
- Tue Aug 17, 2021 9:24 am
- Forum: Hardware
- Topic: Reading from INMP441 with ESP32-WROOM-32results in loud noise
- Replies: 7
- Views: 19433
Re: Reading from INMP441 with ESP32-WROOM-32results in loud noise
Hi,
Can you test using this code?
https://github.com/pedrominatel/esp32-projects/tree/master/demo/sound_spectrum
This code supports all the 3 microphones modes (ADC, PDM and I2S).
Using this example you can check if there is any noise being generated by your microphone (HW issue).
You can ...
- Mon Aug 16, 2021 10:48 am
- Forum: Hardware
- Topic: Reading from INMP441 with ESP32-WROOM-32results in loud noise
- Replies: 7
- Views: 19433
Reading from INMP441 with ESP32-WROOM-32results in loud noise
Hello,
I am currently desperatly trying to get a NMP441 microphone properly working with a ESP32.
The code I am using seems to work but when I send the data off to my server hosted on a rpi the audio sounds broken and is just a very loud noise. My guess is that I am parsing the data from the ...
I am currently desperatly trying to get a NMP441 microphone properly working with a ESP32.
The code I am using seems to work but when I send the data off to my server hosted on a rpi the audio sounds broken and is just a very loud noise. My guess is that I am parsing the data from the ...