Maybe consider sharing your usb_desc.h file? Might help others who find this thread.
If using Quick Reply, click "Go Advanced" to get the full editor which lets you attach a file to your message.
Yes, but you will need to edit usb_desc.h to create a custom USB config. See the comments in that file for details.
Remember there are 2 copies of this file, one for Teensy 3 and the other for Teensy 4, so make sure...
Merging and testing MTP and LittleFS pull requests is at the top of my priority list for after the T4 bootloader chip “soft” release. Sorry I can’t do it now... really want to. But so many people have been waiting for...
Yes, very likely.
Look for problems near pin 8. If stray solder got onto the pins of that little chip near pin 8, it would cause this sort of problem.
And just to be clear, this problem almost certainly means the...
I do have a plan (kinda 2 plans), but so far haven't written anything....
1: For the wav file player and other file-based audio library stuff, I'm planning to add a useFilesystem(FS &filesys) function, which would...
It's not going to do anything so complex. And even if it did, the nature of most failures is that you can't attempt the next stage anyway. If communication with the IMXRT fails, there's no way to check whether the...
Google search for "DDI0403E". If Google doesn't find the PDF, click the link to ARM's website, then click "Download" to get the PDF.
Once you're viewing the PDF, turn to page B3-602 for the AIRCR documentation.
It's supposed to "just work" if you change to that folder and just run "make" with all the files still located in the places the installer wrote them.
I can understand why you probably want to copy and arrange...
Which Linux distro is this? It's been a while since I've heard of one so terrible. (eg, Gentoo...)
EDIT: oh, I see it's Arch, missed that earlier.
Reality is PJRC only tests the x86 build on Ubuntu 18, and the...
My gut feeling is the guesswork on msg #28 is probably right. Microsoft probably only supported use of the modern WIN32 APIs in their USBSER.SYS driver. FTDI's driver probably has support for older Windows APIs (of...
The serial page lists the pins supported by Teensyduino 1.53.
Kurt added support for the XBAR pins, and other nice features like addMemoryForRead(), but that stuff hasn't yet made any non-beta release. And yeah, a...
No, for USB serial it's just the USBSER.SYS driver built into Windows.
On Windows 10, it loads automatically. On Windows 2000, XP, 7 & 8, Windows doesn't load USBSER.SYS automatically. So a "driver" is installed on...
Ok, here's the video demo. Sorry about the mediocre quality... not easy to shoot 2 screens and get exposure perfect (and I really need to get back to the bootloader chips... not time to do a more professional video...
Yup, it sure looks that way.
The problem is on the PC side. Nothing you can do on Teensy will help. The combination of Termite & the Windows driver simply isn't sending the control message. There is no way...
Here's a (maybe) similar report, where RTS didn't work.
https://forum.pjrc.com/threads/59612-DTR-Off-blocks-USB-serial-receive?p=230233&viewfull=1#post230233
It turned out Coolterm works. The RTS issue appeared...
Just a quick update. I am hoping to begin a "soft release" of the T4 bootloader chips next week, and a full release later in February.
A "soft release" means we are going to limit the per-person quantity to about...
Teensy Loader uses only HID protocol. It never tries to access any serial ports.
In the Arduino IDE, Teensy should appear twice in the Tools > Ports menu. If you select the "Teensy ports" entry, access to the...
When no Teensy is connected in HID bootloader mode, it already does exactly that, but with this message.
And the teensy_reboot utility which Arduino uses to try to ask Teensy to go into bootloader mode prints...
Not really. But it can detect a lack of USB communication. I had originally planned for the red LED to blink slowly if the PC doesn't complete USB enumeration. It did in the early betas, but unfortunately I made a...
Does anything appear in the Verbose Info window when the red LED (near the USB connector) turns on? The 2 screenshots in msg #8 and #9 have none of the info indicating any USB communication happened. When you press...
Try Help > Verbose Info. You can copy & paste that info, or use the Log menu to save it to a file. Maybe showing that info will help us figure out what's going wrong.
Teensy Loader might also be configured for one of the smaller boards. Just press the button on Teensy to go into bootloader mode, so Teensy Loader can detect you have Teensy 4.1. Then open the HEX file.
If the...
Teensy 3.x only supports 12 Mbit USB device. Teensy 4.x supports 480 Mbit, but can also run at 12 Mbit, but that is very rare in these modern times. It's been about 20 years since PCs and USB hubs with only 12 Mbit...
Very difficult to say what's really going wrong here. But with a quick look at the Teensy code, this looks like trouble:
void loop() {
// Buffer next command
int count = 0;
int8_t buff;
while...
Only plausible if not using send_now().
Everything on the Teensy side software should happen in just a few microseconds. When you call send_now(), Teensy definitely isn't "holding on" to your MIDI messages. ...
I'm not familiar with that library. Is it this one? (from a quick search)
https://github.com/MajicDesigns/MD_MAX72XX
ps: forum messages are editable for only 2 hours, mostly as an anti-spam measure, but also...
Nope, no idea why. I tried to glance at your schematic, but the max image size the forum allows is too small. Maybe try attaching a PDF to your message? Click "Go Advanced" if you're in the "Quick Reply" editor, to...
Just to take a step back and look at the "big picture" here, all of the problems you're likely to face are from the hardware running much too fast, rather than not fast enough. I know this may seem strange if you're...
Probably a mistake or misunderstanding in the wiring. We can probably help more if you show photos of how you really connected it. The best anyone can say is this hardware is definitely known to work. Without photos,...
I have some good news. Quite some time ago, PJRC ordered a large batch custom length header pins for exactly this use. They finally arrived late last week. I've been reluctant to mention it until now, since I wasn't...
No. This is the first I've heard from Chrome supporting serial without some sort of 3rd party extension.
Does it work on Linux? My main desktop system is Ubuntu 18.04.
How do I use it? Is there a specific html...
FWIW, I just tested editing serial2.c in Arduino 1.8.13 with Teensyduino 1.54-beta5. I changed SERIAL2_TX_BUFFER_SIZE to 512. Indeed Serial2.availableForWrite() returns 511.
I can't explain why it's not working for...
The latest core library code, which is currently only on github, supports addMemoryForWrite() on Teensy 3.x, thanks to Kurt!
With this feature you no longer need to edit the core library. You can just allocate a...
I'd recommend using PWMServo, and of course use only the PWM capable pins.
To use 125 Hz, you'll probably need 2 edits. First, the easy one. Find this line:
analogWriteFrequency(pin, 50);
and change...
Hmmm, 16ms... let me guess, Microsoft Windows?
As a quick test, try running a game or playing a video in another window while doing your latency test. Does that shave 15ms off?
Maybe try the command line Teensy Loader?
https://github.com/PaulStoffregen/teensy_loader_cli
It has similar HID code. If that works, maybe you could use its HID code as a guide to get that ancient hid.c working?
If that was one of the purple prototypes - yeah, it was weak because I hand soldered it without any way to solder the underneath pads (I don't use a reflow oven)
Yes. Use the InternalTemperature library to check the actual temperature inside the chip after your program has been running for quite some time. Do this measurement with your project as it will be installed,...
The short answer is yes, for all practical purposes they're the same. All should work fine.
2 minor caveats:
Some very early (like ~9 years ago) WS2811 used half speed 400 kHz bit rate. Adafruit sold some long...
Yes, indeed, the moral of this story is you need to do something (or simply avoid doing certain things) to keep the internal temperature below 95°C if you want the chip to last more than 3 years.
The double buffering design, in hindsight, was a mistake on my part. Eventually it should get removed from all the output objects.
In the earliest days of the audio library, back in late 2013, I was overly cautious...
Impedance matters. The lower the resistor value, the less susceptible to interference. A capacitor gives low impedance, but only at high frequencies. Just looked over this thread again and still didn't see what value...
You really should use the interrupt from the same timer that's generating the PWM.
And yeah, if you want help with a specific problem, posting complete code to reproduce the problem is the way to go. Best if you can...
For a smaller scale example, search for "Bose wave radio". Lots of info online about its amazing design which makes the most of 2 relatively small speakers. Some seriously good sound design there!
I have personally...
The other thing which has a huge effect, but takes a lot of extra space and is worthless for non-bass sound, is a "folded horn" structure.
Lots of info can be found online by searching for "folded horn subwoofer". ...
Surrounding room, not usually. But surrounding the speaker with an enclosure, yes, absolutely. Even the very best woofers give poor bass performance without an enclosure around them.
Are there some techniques (probably at one time patented) which improve the apparent bass response of small speakers?
I know almost nothing about how this is actually done, but this is the one I've seen mentioned.
...
I ran several tests. Looks like MCLK can only be 16 or 48 MHz.
We need to keep the sample rate at 44117.6, same as Teensy 3.x. The main use case is playing 44.1 kHz WAV files, either from SD card or flash chip. ...
This thread is so mysterious. I really don't understand what you're asking here. It kinda reads more like stream of consciousness.
But to try to answer the specific hardware question, yes, both USB ports on Teensy...
The good news is the DMA controller is much simpler, with only 4 registers instead of the 8 we normally use in the TCD. There is no "minor loop", just 1 transfer for each trigger event. Fortunately we're configuring...
It should be possible. The oversampling code might need to be disabled.
Yup. The audio library as ifdefs to put in a do-nothing version of each unsupported output, so the library at least compiles.
To make...
Pages for all 6 of the 32 bit Teensy boards are now in the new format. All are still missing some info, but probably ok for now.
The last thing on my urgent documentation list is pinout diagrams for the back side of...
Nope. The problem is a design flaw in the PCM1802 breakout PCB. Those 5 pads should connect to 3.3V, but whoever designed the board didn't connect them to anything at all.
Detailed writeup on the blog.
...
Final followup here. I wrote a detailed blog article with all the info and more photos.
https://www.pjrc.com/pcm1802-breakout-board-needs-hack/
Hopefully in the future this can save others from such a terribly...
Followup on this old thread... today I wrote a blog article about connecting PCM1802 to Teensy.
https://www.pjrc.com/pcm1802-breakout-board-needs-hack/
Indeed the M0+ processor is very limited. But Teensy...
Quick followup on this old thread. Connect FSYNC to 3.3V.
Today I wrote a blog with detailed instructions for connecting PCM1802 to Teensy, including a mod needed for a design flaw in the commonly available PCM1802...
Confirmed, that PCM1802 board works. But you have to solder a wire from 3.3V to FMT0 to correctly configure it. Just soldering the pads together does not work, due to a design flaw on that board.
...
Finally, almost 11 months later, I'm finally looking into this problem. I ordered this PCM1802 board back in February, but it took months to arrive. When it did get here, we were in the 1st lockdown of the pandemic,...
PCM1802 is also an ADC. Claimed S/R 105dB and THD+N 96dB.
FWIW, I also recently updated the CS42448 test board for Teensy 4.x, and added a PCM1808 ADC, so all 8 channels can be tested. Boards are on order from OSH...
I have that exact board sitting on my workbench. Or rather, buried under a bunch of other stuff....
It was purchased because of this old thread.
https://forum.pjrc.com/threads/59383-change-I2S-BCK-ratio
But of...
I have no idea why the MIDI library isn't using the custom baud rate setting.
But I did a quick test here. This seems to make it work:
void setup()
{
MIDI.begin();
Serial1.begin(115200);
To answer your question, I ran this code on a Teensy 3.5 and connected my oscilloscope.
void setup() {
pinMode(13, OUTPUT);
PORTC_PCR5 &= ~0x04; // disable slew rate limit
noInterrupts();
while (1) {
...
Maybe use the Arduino map() function to first linearly scale your input to the range you want to put into that logarithmic function.
https://www.arduino.cc/reference/en/language/functions/math/map/
Teensy's...
Yes, analogWrite has very low latency for writing to the DAC.
But I believe you should consider your overall approach, regardless of which board you use. With a direct write function like analogWrite(), the actual...
The Rev C audio shield transmits I2S data on pin 13, which is right next to pin A0/14. Maybe the digital rising/falling edges are coupling? Using a lower resistance pot and capacitor should help. If you're not going...
Quick answers.....
The Teensy 4.1 page has recently been updated with a lists of the timers.
https://www.pjrc.com/store/teensy41.html#timing
This hardware is loaded with advanced features. FlexIO,...
Are these boards connected to anything else while you're testing? The DAC output does not have a really strong drive. So if you're got these mounted to another PCB or anything else, even if you're convinced it...