Search found 26 matches

by wonde05
Mon May 16, 2022 6:09 am
Forum: General Discussion and Questions
Topic: I2S Master Clock Pin
Replies: 4
Views: 2690

Re: I2S Master Clock Pin

@Mike thank you for your answer, generating the master clock using the PWM is a great idea because it has the advantage of having the clock output in any pin that can generate PWM signals rather than being limited to the three CLK_OUT pins of the esp32. I was looking at the i2s.c code in the esp32 p...
by wonde05
Sat May 14, 2022 10:32 am
Forum: General Discussion and Questions
Topic: I2S Master Clock Pin
Replies: 4
Views: 2690

Re: I2S Master Clock Pin

this are the the chips at my disposal right now CS4344, PCM1771 and PCM1773 I haven't decided which on to use yet is there a specific chip you recommend from those three ?
by wonde05
Thu May 12, 2022 4:30 pm
Forum: General Discussion and Questions
Topic: I2S Master Clock Pin
Replies: 4
Views: 2690

I2S Master Clock Pin

I was trying to use the esp32 for an audio output using micropython's I2s class and an external DAC. The dac needs a master clock so I initialized the I2S like this from machine import I2S, Pin sck_pin = Pin(14) ws_pin = Pin(13) sd_pin = Pin(12) mck_pin = Pin(0) audio_out = I2S(2, sck=sck_pin, ws=ws...
by wonde05
Sat May 07, 2022 5:27 pm
Forum: General Discussion and Questions
Topic: ESP32 as an I2C slave
Replies: 7
Views: 3805

Re: ESP32 as an I2C slave

yes there are other esp32's on the bus I chose the i2c because I was trying to communicate with multiple slave esp32's and I thought that i2c would be easier to implement that.
by wonde05
Sat May 07, 2022 4:36 pm
Forum: General Discussion and Questions
Topic: ESP32 as an I2C slave
Replies: 7
Views: 3805

Re: ESP32 as an I2C slave

@tepalia02 thanks for your answer.
@Lobo-T I am using esp32 as master may be I'll try manipulating the i2c registers like you said or I can always use another board with slave support Its just right now I only have esp32. I hope the next micropython version includes slave support for the esp32.
by wonde05
Fri May 06, 2022 11:29 am
Forum: General Discussion and Questions
Topic: ESP32 as an I2C slave
Replies: 7
Views: 3805

Re: ESP32 as an I2C slave

Yes I did but that one is specific to the pyboard.
by wonde05
Thu May 05, 2022 1:09 pm
Forum: General Discussion and Questions
Topic: ESP32 as an I2C slave
Replies: 7
Views: 3805

ESP32 as an I2C slave

I was trying to set the esp32 as an I2C slave and I could only find the Boris Lovosevic's version of micropython firmware which supports I2C slave mode. https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/i2c The lobo's version doesn't have some features like i2s support so I spent a lot of...
by wonde05
Mon May 02, 2022 5:34 am
Forum: General Discussion and Questions
Topic: ESP32 I2C as master and slave
Replies: 0
Views: 9914

ESP32 I2C as master and slave

Is it possible to use esp32 as an I2C slave device ? The esp-idf supports both master and slave and also i know that the pyboard supports i2C slave mode but in the micropython 1.18 documentation I couldn't find anything regarding esp32 slave mode.
by wonde05
Sat Feb 12, 2022 12:40 pm
Forum: General Discussion and Questions
Topic: Dual pin assignment
Replies: 0
Views: 9791

Dual pin assignment

Hi guys, I was working with esp 32 and I was wondering if its possible to use the same pin to wake the esp32 from light sleep and also as an interrupt key ? from machine import Pin import esp32 esp32.wake_on_ext0(Pin(4), esp32.WAKEUP_ANY_HIGH) pir = Pin(4, Pin.IN) pir.irq(trigger = Pin.IRQ_RISING, h...