Search found 155 matches
- Sun Feb 27, 2022 6:37 pm
- Forum: ESP32 boards
- Topic: machine.SDCard doesn't work
- Replies: 4
- Views: 2445
Re: machine.SDCard doesn't work
One possible root cause to consider: what if the wiring from the dev board to the external SD card module can only support a slower SPI bus speed? Using sdcard.py, the default SPI speed is 1.32MHz (Note: the bus speed can now be configured in the constructor with accepted PR https://github.com/micro...
- Wed Feb 23, 2022 6:48 pm
- Forum: Other Boards
- Topic: Teensy 4.0 & 4.1
- Replies: 290
- Views: 460359
- Sun Feb 20, 2022 3:36 pm
- Forum: ESP32 boards
- Topic: machine.SDCard doesn't work
- Replies: 4
- Views: 2445
Re: machine.SDCard doesn't work
I just ran a read/write test using machine.SDCard, with two SD cards, Class 4 and Class 10. There were no failures or exceptions over 10000 read/write iterations. Hardware: Lolin D32 Pro, running MicroPython v1.18 This does not solve your problem, but at least it confirms that machine.SDCard works w...
- Fri Feb 18, 2022 12:48 am
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 6828
Re: Pin ID on pyboard
I'm trying your code with a more expensive encoder that claims 600 P/R Can you provide a specification reference to the encoder? I am just interested to learn more about the encoder hardware that people are using. Also, how are you using the encoder? e.g. manual turning? other? As OutoftheBOTS indi...
- Wed Feb 16, 2022 2:43 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: I2S tone player
- Replies: 2
- Views: 1819
Re: I2S tone player
Here is one approach to try: 1. create a new function, create_tone(tone_frequency), that returns a bytearray of samples for the requested tone. The functions would contain the code from lines: https://github.com/miketeachman/micropython-i2s-examples/blob/4f9bdffc54408f7a0efa1b502177154481549eda/exam...
- Wed Feb 16, 2022 2:19 pm
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 6828
Re: Pin ID on pyboard
for Pyboard, it it is a string like "X1" Yes, this is the what I haven't figured out. The rotary encoder module requires an integer, but the pyboard pin name is a string. The encoder module documentation example is for ESP32, but the documentation also says that the module was tested with a pyboard...
- Sat Feb 12, 2022 10:29 pm
- Forum: Other Boards
- Topic: Teensy 4.0 & 4.1
- Replies: 290
- Views: 460359
Re: Teensy 4.0 & 4.1
I am strongly considering that a limitation for using the Teensy audio shield is Fs>=32kHz. The Teensy Audio Library uses a fixed 44.1kHz as documented here. There seems to be no reason for MicroPython I2S to improve upon this limitation.
- Sat Feb 12, 2022 9:42 pm
- Forum: Other Boards
- Topic: Teensy 4.0 & 4.1
- Replies: 290
- Views: 460359
Re: Teensy 4.0 & 4.1
I found the problem, which also exists in the newer prototype Teensy 4.1 firmware: In the new Teensy prototype firmware, the MCK frequency ("Fmck"), is set based on the sampling frequency ("Fs"). Fmck = Fs * 256. The *256 multiplier is typical for MCK. Previously, Fs was set to a much higher fixed f...
- Sat Feb 12, 2022 6:15 am
- Forum: Other Boards
- Topic: Teensy 4.0 & 4.1
- Replies: 290
- Views: 460359
Re: Teensy 4.0 & 4.1
The Teensy 4.0 build was missing the MCK pin definitions. I added them, rebuilt the binary, and committed the updated binary. Hopefully it works now.
- Thu Feb 10, 2022 4:46 am
- Forum: Other Boards
- Topic: Teensy 4.0 & 4.1
- Replies: 290
- Views: 460359
Re: Teensy 4.0 & 4.1
I committed a firmware file for the Teensy 4.0. Maybe this will give better results?
https://github.com/miketeachman/micropy ... ree/mimxrt
https://github.com/miketeachman/micropy ... ree/mimxrt