Search found 10 matches

by supersat
Fri Jul 21, 2017 12:57 am
Forum: General Discussion
Topic: I2C combined master/slave mode
Replies: 0
Views: 3666

I2C combined master/slave mode

Is it possible for the ESP32 to work as a combined I2C master and slave? I am working on a project with multiple masters, and it would be nice if each master could push packets to each other, rather than one acting as a slave and polling the other. I was originally hoping the two I2C controllers on ...
by supersat
Fri Jun 02, 2017 12:45 am
Forum: ESP-IDF
Topic: external 32khz crystal
Replies: 5
Views: 14185

Re: external 32khz crystal

Now that there's support for an external 32.768kHz crystal in the IDF, have the start-up issues been resolved? I've noticed my board will say "still waiting for 32k oscillator to start up," and eventually it will either boot or hang. However, using the above code snippet, I do see a 32kHz square wav...
by supersat
Sat May 27, 2017 2:12 am
Forum: General Discussion
Topic: Bootloader woes and SD card pull-ups
Replies: 4
Views: 14244

Re: Bootloader woes and SD card pull-ups

I've attached a simplified schematic. What I'm hoping to use: 1. SD card 2. SPI bus for LCD 3. Internal stereo DAC 4. Internal ADC 5. I2C 6. 32.768kHz crystal 7. At least two touch pads I have fairly limited options for pin assignments. GPIO2 is used by the SD card. GPIO0 is tri-stated by the USB co...
by supersat
Fri May 19, 2017 5:48 am
Forum: General Discussion
Topic: I2S with internal DAC and ADC simultaneously
Replies: 1
Views: 5352

I2S with internal DAC and ADC simultaneously

Does the ESP32 hardware allow the I2S module to use the internal DAC and ADC simultaneously (i.e., streaming full-duplex audio)? Obviously the software support in esp-idf isn't there yet, but I'm curious if it will be possible in the future.
by supersat
Fri May 19, 2017 5:42 am
Forum: General Discussion
Topic: Bootloader woes and SD card pull-ups
Replies: 4
Views: 14244

Bootloader woes and SD card pull-ups

In the latest rev of my board I moved the SD card connections from the confusingly-named SD_* pins to the JTAG pins (MTMS, MTDI, MTCK, MTDO, GPIO2, GPIO4). Unfortunately, I've been tearing my hair out for the past few days trying to figure out why the bootloader doesn't see the flash of the ESP-WROO...
by supersat
Wed Apr 19, 2017 11:08 pm
Forum: Showcase
Topic: ESP32 Webradio
Replies: 188
Views: 547764

Re: ESP32 Webradio

I need to do a bit more investigating, but it seems like using the internal DAC mode only outputs mono audio. I have a separate project which synthesizes audio samples, and if I only send audio to the left channel, I hear silence, and if I only send audio to the right channel, I hear both channels. ...
by supersat
Sun Apr 16, 2017 3:02 am
Forum: Showcase
Topic: ESP32 Webradio
Replies: 188
Views: 547764

Re: ESP32 Webradio

Did you remember to define DAC_BUG_WORKAROUND in playerconfig.h? I believe you get those underrun errors if you don't.
by supersat
Thu Apr 13, 2017 7:14 am
Forum: Showcase
Topic: ESP32 Webradio
Replies: 188
Views: 547764

Re: ESP32 Webradio

Pull request submitted. init_i2s_dac() sets the I2S peripheral configuration to use I2S_BITS_PER_SAMPLE_8BIT, but the renderer config isn't updated to reflect this, so it prepares 16-bit samples.
by supersat
Thu Apr 13, 2017 4:09 am
Forum: Showcase
Topic: ESP32 Webradio
Replies: 188
Views: 547764

Re: ESP32 Webradio

It turns out there are two issues: 1. The built-in DAC expects unsigned samples, while the conversion to 8 bit samples (convert_16bit_stereo_to_8bit_stereo in audio_renderer.c) converts to signed samples. 2. The renderer config is always set to I2S_BITS_PER_SAMPLE_16BIT, even when using the DAC_BUIL...
by supersat
Tue Apr 11, 2017 10:42 pm
Forum: Showcase
Topic: ESP32 Webradio
Replies: 188
Views: 547764

Re: ESP32 Webradio

Has anyone obtained decent quality using the built-in DAC in I2S mode? I tried modifying this demo and I do get audio out, but it's extremely distorted. Looking at the DAC_1 and DAC_2 lines on my scope, they look like square waves and not analog signals. It doesn't look like a PDM signal either. Is ...