Search found 19 matches

by ppisljar
Wed May 24, 2017 3:43 pm
Forum: ESP32 Arduino
Topic: bluetooth code size enormous
Replies: 5
Views: 11113

Re: bluetooth code size enormous

copy .data from 4000d890 to 3ffae6e0, len 00001830

this looks like its accessing memory that doesn't exist .... :cry:
by ppisljar
Wed May 24, 2017 3:39 pm
Forum: ESP32 Arduino
Topic: bluetooth code size enormous
Replies: 5
Views: 11113

bluetooth code size enormous

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...
by ppisljar
Sun May 21, 2017 7:22 pm
Forum: ESP-IDF
Topic: connect and send audio data to a2dp sink
Replies: 3
Views: 7552

connect and send audio data to a2dp sink

I saw https://dl.espressif.com/doc/esp-idf/la ... _bd_addr_t and am wondering if this can be used to connect to a2dp sink (bluetooth speaker) and send audio data to it ?
by ppisljar
Thu May 18, 2017 7:04 pm
Forum: ESP-IDF
Topic: I2S microphone (RX)
Replies: 60
Views: 136973

Re: I2S microphone (RX)

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...
by ppisljar
Sun May 14, 2017 11:45 am
Forum: ESP-IDF
Topic: I2S microphone (RX)
Replies: 60
Views: 136973

Re: I2S microphone (RX)

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...
by ppisljar
Sun May 14, 2017 11:35 am
Forum: ESP-IDF
Topic: I2S microphone (RX)
Replies: 60
Views: 136973

Re: I2S microphone (RX)

Seems to be a buggy driver ...

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.
by ppisljar
Thu May 11, 2017 9:14 pm
Forum: ESP-IDF
Topic: I2S microphone (RX)
Replies: 60
Views: 136973

Re: I2S microphone (RX)

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...
by ppisljar
Thu Apr 27, 2017 12:46 pm
Forum: ESP-IDF
Topic: I2S microphone (RX)
Replies: 60
Views: 136973

I2S microphone (RX)

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...
by ppisljar
Wed Feb 22, 2017 4:46 pm
Forum: General Discussion
Topic: WROOM-32 flash size?
Replies: 7
Views: 20859

Re: WROOM-32 flash size?

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 ?