Search found 88 matches
- Wed Feb 02, 2022 9:07 pm
- Forum: MicroPython pyboard
- Topic: Reuse SS pin of SPI
- Replies: 2
- Views: 6707
Reuse SS pin of SPI
After I instantiate pyb.SPI(2), is it OK to use pin Y5 (which corresponds to the "/SS" pin of SPI-2) as an output or input Pin using pyb.Pin(), if I don't intend to use it? Or is there some caveat that I should be aware of?
- Tue Nov 23, 2021 8:11 pm
- Forum: ESP32 boards
- Topic: Choosing ESP32 variant
- Replies: 7
- Views: 5826
Re: Choosing ESP32 variant
What about the Wemos/Lolin S2 Mini? It's cheap and I've been happy with mine.
- Fri Nov 12, 2021 6:00 pm
- Forum: ESP32 boards
- Topic: ESP-NOW and WiFi together
- Replies: 5
- Views: 3307
Re: ESP-NOW and WiFi together
It seems the problem is caused by the AP_IF channel changing when I connect STA_IF to the WLAN (see here ). I now first connect to the WLAN, get the correct channel, then specify that channel when adding a peer. For some reason this works on the TinyPICO but fails on the S2 Mini, so for now I have t...
- Fri Nov 12, 2021 1:57 pm
- Forum: ESP32 boards
- Topic: ESP-NOW and WiFi together
- Replies: 5
- Views: 3307
Re: ESP-NOW and WiFi together
I changed the code to use "for mac, msg in e" but that has no visible effect.
- Thu Nov 11, 2021 1:01 pm
- Forum: ESP32 boards
- Topic: ESP-NOW and WiFi together
- Replies: 5
- Views: 3307
ESP-NOW and WiFi together
I'm trying to follow the instructions here to communicate data between a TinyPICO and a S2 Mini using ESP-NOW, then have the TinyPICO send this data to the cloud using a WLAN. The ESP-NOW connection uses AP_IF, and I only activate STA_IF on the TinyPICO and connect to my WLAN when a ESP-NOW message ...
- Fri Oct 22, 2021 6:53 am
- Forum: General Discussion and Questions
- Topic: I2S for dummies
- Replies: 5
- Views: 2230
Re: I2S for dummies
Thanks, that's very clear.
This means that, with bits=16, format=I2S.MONO, rate = 16000, and ibuf = N, I should typically expect a delay up to N/2/16000 seconds between swriter.write(buf) and the corresponding audio being played, right?
This means that, with bits=16, format=I2S.MONO, rate = 16000, and ibuf = N, I should typically expect a delay up to N/2/16000 seconds between swriter.write(buf) and the corresponding audio being played, right?
- Thu Oct 21, 2021 8:45 am
- Forum: General Discussion and Questions
- Topic: I2S for dummies
- Replies: 5
- Views: 2230
Re: I2S for dummies
Thanks Mike, I just read the source comments and still have a few questions. A FAQ would indeed be super useful. Say I am in the ESP32 port, writing the contents of a bytearray buffer buf to an machine.I2S instance audio_out using asyncio: swriter = asyncio.StreamWriter(audio_out) swriter.write(buf)...
- Wed Oct 20, 2021 6:55 pm
- Forum: General Discussion and Questions
- Topic: I2S for dummies
- Replies: 5
- Views: 2230
I2S for dummies
For someone not really C-fluent, is there some documentation out there which explains in some detail the design/implementation of machine.I2S? I'm thinking of issues such as: What really happens under the surface doing asyncio.StreamWriter.drain()? Best practices re: when and how often to write data...
- Wed Oct 20, 2021 11:18 am
- Forum: General Discussion and Questions
- Topic: Not sure what is happening here (I2C and/or MPU6050 issue)
- Replies: 4
- Views: 1728
Re: Not sure what is happening here (I2C and/or MPU6050 issue)
It seems likely my initial observation was due to some problematic circuitry. I tested with another GY-521 and got the following results: freq = 100 kHz, uses 3764 us, accel = (-0.204834, 0.0, 0.9907227), gyro = (35.52672, 2.343511, 0.6335878) freq = 100 kHz, uses 3985 us, accel = (-0.1931152, -0.00...
- Tue Oct 19, 2021 6:14 pm
- Forum: General Discussion and Questions
- Topic: Not sure what is happening here (I2C and/or MPU6050 issue)
- Replies: 4
- Views: 1728
Re: Not sure what is happening here (I2C and/or MPU6050 issue)
I have been experimenting some more and I suspect I may have a faulty GY-521 or I2C connection issues. I ordered a few more GY-521 boards and I will test further when they arrive.