I tried to play with bluetooth and created this sketch: #include <Arduino.h> #include "bt.h" #include "btm_api.h" #include "esp_gap_ble_api.h" #include "esp_bt_main.h" static bool connect = false; static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) { uint8_t *adv_name...
thanks a lot @andriy .... so it seems i am getting some feedback now, but its still going between periods with data and periods without data ... using serial plotter i can see this: mic.png any idea what could be causing that ? my complete code: #include <WiFi.h> #include "driver/i2s.h" void i2s_con...
also i noticed that i need to read two 32 bit integers (stereo) ... void read_i2s() { uint32_t sample_val[2] = {0, 0}; i2s_pop_sample((i2s_port_t)0, (char *)sample_val, portMAX_DELAY); Serial.println("==>"); Serial.println(sample_val[0]); Serial.println(sample_val[1]); } wierd thing is that i am get...
on espidf 2.0 i get output from mic with the above code (however it doesnt seem to be correct output ....)
on latest version of espidf i get only 0 with the same code.
i tried setting pin 17 to input/input_pulldown/input_pullup ... none seem to work (with pullup i get int32 max value) void i2s_config() { // http://esp-idf.readthedocs.io/en/latest/api/peripherals/i2s.html // input i2s_config_t i2s_in_config = { mode: (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX), sam...
I am trying to connect I2S mic to ESP32 with no luck. (using SPH0645LM4H-B mic) i2s init code: ``` i2s_config_t i2s_in_config = { mode: (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX), sample_rate: 16000, bits_per_sample: (i2s_bits_per_sample_t)16, // found some posts saying 32bit mode is giving extra p...
i have ESP-WROOM-32 and i tried to upload a program 1.7MB big .... Platform.IO complains that maximum 1MB is allowed ... i went ahead and changed its limit to 2mb but upload failed. is there a reason i can only upload programs up to 1mb ?