Yes, it works. I used it read some values from an EEPROM chip connected to a Teensy 3.2. It's bare bones. To make it useful for communicating with chips, you would likely want to extend the class. For example,...
Upon further reading, seems that diode is needed to keep the voltage on VDD_USB_CAP a step behind VDD_SNVS_IN. The 10uF capacitor doesn't provide enough delay on its own?
Because my custom device will not be battery powered, I'm guessing I can simplify the following section:
This is what I've got right now, but I assume I probably don't even need that diode in there, and possibly...
If you reread my post, you'll see that I fully understand how to check if a midi device is connected, but you can't argue that method2 below is not typically 2 times faster than method1. In my case there are 4 midi, 4...
I managed to have the USBHost_t36.h set a flag whenever a device gets claimed. I can then periodically check and clear this one flag and do all my hotplugging / updating work. Let me know if you want so code and I'll...
I have a quick look in USBHost_t36 and could find any callbacks for when a device is claim / disconnected. Does such a thing exist?
MIDIDevice_BigBuffer midi1(myusb);
MIDIDevice_BigBuffer midi2(myusb);...
I wrote out a very low level Bit Bang IC2 header only class. I think this will take care of my needs, but perhaps I'll try to tackle FlexIO further down the road.
#ifndef __BIT_BANG_IC2__
#define __BIT_BANG_IC2__
...
I'm pressed for digital pins too. There's not a lot of info on FlexIO. Can FlexIO run on only two digital pins? I'm still in prototyping. What two pins might I reserve so I can look at implementing flexIO in the...
Looking at the pinout for T4.1, I see that i2C SCL/SDA are on analog pins. For my current project I need all my analog pins. Assuming in MUX chip is out of the question, is there are amount of software hacking that...
Thanks, KurtE. Do you think there's any chance of getting this added to Teensy cores?
#ifndef __TEENSY_AVAILABLE_CHECK__
#define __TEENSY_AVAILABLE_CHECK__
#include "Arduino.h"
// Check for hardware Serial...
I got the 1.8V AP7313 and still no joy. Upon further inspection, my A5 (19) pin is connected to pin L5 or the MIMXRT1062D when it should be connected to J11. I guess I'll need to do another run of the PCB.
For production builds, I remove the Serial interface. Is there a way I can tell if Serial exists by checking a macro?
For example, in SDFatConfig.h, I would like to do something like the following:
#ifndef...
That's how I'm doing it. With 8k buffers,
I can preload 1024 stereo samples. Would like to get that number closer 4096, but I'm already maxed out.
Wouldn't be useful for my current plans, but would be useful for...
I got my custom T4.1 device up and running on my first attempt. I'm really happy and surprised as it was my first time working with a BGA. Unfortunately I'm having issues with the integrated audio board. Likely cause...
I removed the AP7313-12, and the VDDD pin of the SGTL5000 is still being driven to 1.57V.
I've seen in some other posts that say VDDD needs to be 1.8V. Do I need to use AP7313-18SA instead? The SGTL5000 datasheet...
Resoldered and still no go. Something that's off is the VDDD (1.57V). I'm using AP7313-12SA, so it should be 1.2V. I pulled the SGTL5000 off the board again, and the AP7313 is measuring 1.2V as it should, so...
I've checked all the clock lines with a scope and they seem to be getting signals. VDDD is 1.57V, VDDIO and VDDA are both 3.3V. According to the the SGTL5000 datasheet, VAG should be showing VDDA/2 (1.65V), but my...
I've built a custom T4.1 with an integrated STGL5000. I had to use the 20 pin version and the 32 pin one is (at least was) out of stock. It seems to work fine (no initialization errors), but I'm getting no audio using...
It looks like one of my data lines has a short to ground somewhere. It's not an issue with the by PCB, and hopefully it's not a solder blob under the MCU. Thanks.
UPDATE: Was an issue with the vertical USB A port....
I've made a custom Teensy 4.1, but I'm having some issues with the USB Host Port. I'm using a USB flash drive that I have working with a teensy 3.6 device, so I'm certain there are no issues with the media. I've loaded...
For clarification, I have a powered hub connected to the host port, and the SSD connected to the hub and that works reliably.
The externally powering the Teensy with 5v adapter, and plugging the SSD directly into the...
While not recommended for the faint of heart, I've reimplemented my code to work with pointers so I can dynamically create and remove instruments. I envision simply putting in a flash drive or SD card with samples.and...
Not working on this much today, but I wanted compare the performance of 1 AudioStream object playing back 16 stereo tracks simultaneously vs 4 AudioStream objects each playing back 4 stereo tracks. To get an idea of...
I need the third buffer in case I need to restart playing a voice while it's being played.
I'll take a peek at your code tomorrow to see how you figure out those cluster boundaries. That's something I didn't think of.
I did a quick test.
int totalBytesRead = 0;
for (int i = 0; i < NUM_TEST_FILES; i++) {
if (fileToRead.available())
{
totalBytesRead += fileToRead.read(readBuffer,...
I'm quite confident that with 4KB reads, 14 tracks stereo is about as good as it gets, and I doubt the T4.1 would improve much on that because it comes down to random file access time. The same is true for SD cards I...
So the first order of business today was to decouple my AudioFile class from my AudioVoice class. This allows me to have a single buffer (4K) for the AudioFile, and two (4K) buffers for the voice. The idea is to allow...
I'm trying to get an M.2 SSD drive working. It's a 512 GB drive, with a single 64G FAT32 partition.
During initialization, it's getting stuck in the following sequence: WaitMediaReady() -> msTestReady() ->...
So today I managed 32 simultaneous mono voices at 16 samples latency without dropping packets. The key is to do all buffering outside of the update() methods. Each voice has three buffers. I reserve one buffer for...
Thanks for the link. I've read through your description and it looks very interesting. You're doing a lot of the things that I was considering (using PSRAM for example). That 70us was not including audio latency. I...
I'm starting this thread as a blog.
I'm trying to get low latency multi-voice playback from files stored on an SSD drive connected to a USB host port. For now, I'm working with a T3.6 with headphones connected to...
Yes, I have seen that tool. I'm interested in testing the limits of audio library with an SSD connected to a USB host port on Teensy 4.1. I need to figure out how to optimize things to get the maximum number of...
In teensyduino 1.57, we can connect and disconnect AudioConnections, so is there any reason why we can't have a default constructor for AudioConnection and make connections in the setup method or elsewhere?
...