I'd like to know the maximum SPI clock that a Teensy4 can support. Wading through some of the NXP documents (which is painful), the normal LPSPI clock is limited to f_peripheralclock/2. Can't seem to find where or how...
Since there are many happy users of Teensy Audio Adapter boards, I would not just discard them out of frustration.
Sure, they apparently 'suck' in your application but this forum may be of help in nailing down the...
Are you saying that some keyboards might need more delay than others?
The keys on my desired keyboard work if I press a little harder. But since they worked fine on the laptop while the laptop was working, I was...
Sorry for spamming this thread. I've managed to create a test case which fails the same way, first run was successful, second run resulted in 200Hz f_max over 1kHz and the 10Hz signal having a std deviation of >1ms
...
It's one of three periodic callbacks (each associated with an intervaltimer) which has these delays. It happens in larger degree to the low frequency ones, but all three suffer (almost simultaneously) as you can see...
Maybe it is one interrupt interfering with the other.
That is, if you have code like this:
inline void TriggerGenerator::PeriodicCallback()
{
digitalWriteFast(pin_, HIGH);
// REVIEW: need no interrupt?
...
Here are some figures I made illustrating all sampling times > 1 std deviation from the mean
Note these are all grouped, and many of them happen when all three triggers fire on the same timestamp (as observed by...
Yes it does.
I just replaced i2c libraries you were using with Wire.h and the rest compiled just fine.
EDIT:
If you are using that external (to PJRC) library then perhaps it is a question for him.
I think the wire library supplied by PJRC in Teensyduino does not support wire2. At least thats what my understanding is from the table in Hardware requirements section at https://www.pjrc.com/teensy/td_libs_Wire.html....
That is NOT using the wire library supplied by PJRC in Teensyduino.
Could you try with the Wire.h library rather than the i2c_driver.h and i2c_driver_wire.h drivers.
Here it is. I downloaded this exact program in to two different boards one with TEENSY_41 and other with TEENSY41_NE. TEENSY41 prints some ADC reading and does not print the error message. TEENSY41_NE prints only error...
I'll try and get back to you with a simple example, as I said it's not necessarily extremely regular.
For example, for the 10Hz timer I processed the data in python and the following is the first 10 entries of...
Best is to provide a minimal and complete example showing the effect.
Starting/stopping/triggering the timers of course needs some time. But once a periodic (hardware) timer runs, it should be quite stable. As...
Following
https://forum.pjrc.com/threads/71506-Time-synchronization-and-triggering-sensors
https://forum.pjrc.com/threads/71671-Augmenting-Teensy-millis-timing-with-external-RTC
I am working on a sensor timing...
OK. Decided these Teensy Audio boards suck. Having so many problems with them that I just can't rely on them. This weird screeching issue is affecting a ew of our projects.
Seems to be some issue with the comms to...
I found this interesting Excel sheet in a forum thread: https://forum.pjrc.com/attachment.php?attachmentid=20853&d=1593888859.
I found MISO(54)/MOSI(50) and SCK(49), but CS is missing. Perhaps CS is 52? Does anyone...
So, it seems to be a problem with operator 3 specifically, the other algorithms that include carriers =/= 3 all work fine without any weird buzzy clippiness. So I will get to work looking for the culprit. Thanks again...
Testing out my Teensy Synth Berlin Sequencer with Attitude!
Features:
2 independently sequenced voices.
Each of these is adjustable on a per step basis:
Notes
Gates
Waveforms (Currently 9 to choose from)...
Argh! Ok, I see the problem...
Ok, thanks for the hint! I totally forgot that the memory may also be soldered on the audio board. Yes, my memory is on the T_4.1 itself.
Wow, you have written a complete...
Should work. There is certainly no hardware resource conflict.
But to access the SPI2 signals, you will need to solder wires to the pins normally used for PSRAM. It can be done, as you can see in the photos when I...
Built in SD card on Teensy 4.1 uses SDIO. It does not use SPI2. Those pins do also have SPI2 function, but SPI2 alternate function is not assigned to the correct pins. Only SDIO can be used for the build in SD card...
@KurtE, is it possible to use spi2 for external sd card with buildin sd card on teensy 4.1? I tryed to use it on teensy 3.5 and it worked correct (i hope))), but with 4.1 i dont understand. On pinout diagramm i see,...
Yes, more or less. Mostly less. Teensy 4.1 doesn't have quite the analog performance of Teensy 3.2. As a general rule for analog features embedded inside mostly digital chips, improvements in silicon process that...
Simple answer, NXP has no accessible AGND on these chips so Teensy 4.x can’t have one. While the analog inputs aren’t as ‘good’ as prior models they should more than suffice for 7-bit MIDI with little to no issue.
I'm okay at this point ..it is not a critical system for me .Its a used hp elitedesk 800 g3 which I scooped ...So don't want to tie the guy up ..if there were a number of people experiencing the same issue then yes ,...
Here is the info you seek, including some important details about powerup sequence if you remove U2.
https://forum.pjrc.com/threads/71167-4-1-latest-schematics?p=313400&viewfull=1#post313400
If you can't get it solved, maybe best to ask for help on Arduino's forum, as this really sounds like a IDE software issue (probably) not specific to Teensy.
https://forum.arduino.cc/c/software/arduino-ide-2-0/93
...
Trying to use the FIFO blocks mboxes, both polled and interrupt driven.
Initialization:
void MCOUSER_ResetCommunication(void){
int i;
gTimCnt = GTIMCNT; // Initialize global timer
canbus1.begin(); //...
The problem is deep routed , as none of the libraries in the library pulldown would populate , libraries I downloaded off github would populate but the default library list list would remain empty ..need more...
On T_4.0 bottom side pads? That D+ and D- are to USB_Host port. Data could be sent to a Device - but not to a Host using those underside pads.
Device could be a hard drive or flash drive or other supported device...
Hmm. Not sure how to fix this.
I always put a line in to make sure the sound file has finished playing (+ a slight delay), before it tries to retrieve an image from the SD card (where the sound files are also...
Thanks, though I did not grok an answer for Teensy 4.1 from #4.
(I have degrees, but none in EE)
My analog signal measures breath pressure, which varies over a few milliseconds (and I sample it that often).
I end...
Hi All,
I'm looking for the updated schematics for the Teensy 4.1 which are newer than June 2022. From this date U2 was replaced by a different, non pin compatible, device and I'd like to connect to the JTAG pins on...
To 'rescue' the worn USB connector, you may try to press the top and bottom metal closer together using pliers.
But that's definitely not a permanent solution...
Paul
USB connector pushed in many times and probably not carefully. That is probably the source of your bad connections.
Probably about time to change the connector to a chassis mount one as has been described to you....
Pins looks connected ok.
"high speed serial connection with an industrial dust/water-proof 3-pin connector"
What is it? I do not know this connection.
Also I have to solve problems like lot of noise from USB...
Hi,
Ive just discovered that the MTP_teensy library now is really working nice (at least on a T4.1). I am planning to integrate this in the Teensy Batdetector project (see...
I'd check those surface mount pads on the USB connector very closely and try reflowing the solder to them.
If that fixes it, think about reworking your enclosure to use a more robust connector, maybe with something...
I'm in the process of making an Eagle Library device of the 4.1. I did not find one in SnapEDA as noted above.
I'm modifying the 3.6 footprint available in a zip file on the forum.
I noted (as above) the same change...
Hello, I have a project where I have a TFT display and I'm using a display library that uses DMA.
The display library is very fast, clocking in about 500 FPS, but for some reason if I play a wav (using a high-quality...
Yes, Teensy uses a special SD library which is really just a thin wrapper for SdFat. Teensy also uses a customized copy of SdFat. Normally these are supposed to come automatically with the platform, at least when...
Yes, connector is all inserted (tried without box). Seems loose a lot. Tried many cables. I can move the connector left/right very easily and Teensy is connecting / disconnecting. Is there any way how to correct it? ...
Hey All,
I have been having difficulties with PlatformIO and Teensy 4.1 lately. I solved some of my issues by reinstalling Windows, but now I am having other problems.
- When compiling my code, I get the...
Sounds to me that the USB cable is not inserted all the way into the Teensy 4 USB connector. Is the opening in the plastic housing large enough to let the cable through? Can you show us a close-up photo of the Teensy...
So I think I fixed it... Well, mostly. I did a fresh install of Windows 11 and I can upload and open the serial monitor from PlatformIO. The only thing is, I have to press the Teensy's button after clicking the "Upload"...
This part is fairly easy: AUDIO_MEMORY_PSRAM_8MB isn't declared, because you called it AUDIO_MEMORY8_PSRAM_8MB.
Not sure why serial messages aren't showing up, but ... it sounds as if you've added PSRAM to the Teensy...
It's a thing, apparently ... a fellow developer at work used the phrase to me, and it stuck: see https://en.wikipedia.org/wiki/Copypasta. Used here in the sense of "this code is just like the previous, so I'll make a...
so I wont get a short when the teensies pin is connected to ground via the transitor?
I could actually fix the problem by getting rid of the interrupt. Since the teensy is much faster than the arduino there is no...
Hi,
I have Teensy 4.0 and project where I send data via USB cable to PC. But quite offten I hav problem, if I touch the cable or Teensy in plastic box, then Teensy is starting connecting and disconnecting and I have to...
Something like this should help - I haven't tested it beyond compiling it, though:
/*
* Generate a new sequential filename in the
* recFileName buffer. Adjust recFileFormat to your
* needs.
*/
char...
Hi All,
A quick update regarding this.
the program works fine if the setRX() function is used after the Serial1.begin() fn.
In the following webpage: https://www.pjrc.com/teensy/td_uart.html (Accessed on 29th Jan,...
Yep, unfortunately you can't do rotations from and into the same buffer, but also, the PS/AS buffer can't be bigger than the output buffer (page 1907):
So my whole idea of rotating portions of the PS buffer into...
Hi robz,
thanks for testing this and creating a patch. I tried to integrate this into an additional library, but have some problems getting the whole thing to run. Unfortunately the whole thing seems to crash. The...
Can I ask for suggestions on how to record multiple files in a row, pretty much the way audio recorders work? The current way Record.ino works replaces the recorded file each time you record. I need it to record a new...
Even worse for mainMixer2 ... looks like you changed the design at some point and copy/pasta has left you only changing the gain of channel 0 (channel number is unsigned, and values >3 are ignored)
As a first troubleshooting step, try running Teensy from a battery or "floating" power supply. Make sure the USB cable is unplugged and no other wires apart from the MQS output connect it to any grounds on other...
Hi liv
In you’re setgain, your setting i-1 - is that correct, looks like it should i
void setGain(){
float divA = 1/(carrierCountA);
for(int i = 0; i < 4; i ++){
if(carriers){
...
Regarding my previous post about problems with incoming noise. I fixed it thanks to view in your code 😆 my problem comes from processing buffer outside queue.available function.
I rewrote my code and now all works...
I have wired according to the drawing along with the additional connections you suggested, but now i cannot seem to get anything to play through the audiosheild. I tried re-installing arduino as someone suggested on...
Hi Pete
Actually I dealing with queue objects and have some problems. Maybe you could help me.
I try getting out audio from stream then processing it and after processing, send it back to audio stream and to the...
Hey all. Name's Liv. I'm working on a polyphonic FM synthesizer using a teensy 4.1 and audio shield. It's working pretty nicely! But I am having trouble specifically when there are >1 carriers and >3 voices playing. ...
AHA! If you trash the cache on every reference to EXTMEM, you lose the performance benefit you would get for every transfer from within the cache. This shows why cache management requires careful analysis. ...
memcpy() is widely used by non-driver libraries and programs. Killing the huge benefits of caching for all normal uses would have a terrible performance hit.
Yes, exactly.
I get this, and I understand that you might not want to add tests for memory source and destination regions to all memcpy() calls, as the function has been written in assembly for maximum performance.
However, there...