Hi Paul,
Sorry to be confusing,maybe i didn't precise i use the USB AUDIO like that,with "AUDIO" type selected instead of "serial"
AudioPlaySdWav playSdWav1; //xy=154,217
AudioOutputUSB ...
Maybe something is wrong on the SAMD11C14A side? Can't really help with that...
If you're completely stuck, maybe using another Teensy as a stand-in for the SAMD11C14A could at least help you move forward. If...
I did a test with 9600 on both as @Mcu32 pointed and removed the delay from inside the loop and the one right above the loop (delay(50)). Still no activity. :(
While probably not the main problem, I do see a possible issue in your code. You have 2 lengthy delays, one inside a loop which tries to receive incoming bytes! That's certainly not good.
while...
Since your gave a complete program, I tried running it here on a Teensy 4.0. Should be easy enough to check the baud rate.
This is the waveform my oscilloscope sees on pin 20.
Yes, and it is dual core and it's possible use the other core for simulantous tasks without performance impact, as long it's not using the FPU,too.
I don't think there is an MCU with sufficient floating point...
You are right, the picture is just for presentation purposes. The project is more complex than that. But there is a ground connection present between the two MCUs.
I'm utterly confused by your words.
You're talking about "USB AUDIO with WAV file player", but the WAV file player example published in the audio library doesn't use USB audio in any way. Maybe you're running a...
Hello, so I've search on this forum about this problem and also on internet and asked chatgpt. Did not found a possible root cause for this problem.
I have the following:
- Teensy40 using LPUART8(pins 20/tx and...
hi, Michael,thanks for support,i did some tests,
Well it's more weird that is though: I use the audio shield REV D,and teensy 4.0
Sd card test:OK (not normal,isn't it for REV C and teensy 3.2 ...?),and but bad sd...
Hi! I made another Teensy-based polysynth using parts from other discarded projects. It is the usual subtractive setup but I am trying to make it more flexible in terms of modulation to create more variety than my...
When I burn firmware to custom Teensy 4 MCU, I used the pre-programmed bootloader IC by Paul. After that, can I run my program as normal (such as USB serial, and everything else) if I remove the bootloader IC? Moreover,...
Thank you all for your replies. It makes sense that the compiler would give some advantage to the inlined unrolled code.
My confusion is that I was expecting way more performance on a function built purposedly for the...
Perhaps you got lucky with the conductor spacing - twisted pair with characteristic impedance of 100 ohms isn't hard to achieve, just use pairs from a CAT5 or CAT6 cable.
Well, my reason for diverting from a noise signal to a ramp was to rule out a potential issue with the digitally-generated noise.
However it appears to be something with the ADC routines. But I don't know enough about...
I am just wondering if that noise waveform is ever going below -0.3V or above 3.6V, that cause input protection diodes to conduct and inject charge into the supply rails for the ADC.
As for the speed of ramping and...
That's interesting, of course. However, it would then be the case that my ADC measurement is interrupted prematurely,
and therefore the decisive bit was not read.
However, I would not like to use delay. Is this a...
Or put simply the library functions are not heavily optimizable as they do not know any of the loop counts at compile time, but they can be used for different dimension arrays out of the box.
Unrolling here is very...
Just to add to the confusion I modified your sketch slightly to run within the Arduino IDE using a Micromod board. The modified sketch:
#include <arm_math.h>
#include <chrono>
int64_t GetTime()
{
using...
Hi Michael, I think you might have posted the same code twice rather than the intended code.
EDIT: Sorry Michael I got it wrong, missed the comments "//" moved.
Your MultMatrices function may be inlined and unrolled, allowing good optimization and fast execution.
Supposedly arm_mat_mult_f32 is inlined (or not), the fact that you need to initialize parameters outside...
Hi
I have a project which I intend to clip to a shirt pocket. What I would like to do is keep the project itself as lightweight as possible and power it wirelessly from a 2s Lipo in the pocket. The main drivers...
Hi All
I am looking to use a 3.3V Teensy powered from a 1s Lipo. The Lipo will have an independent USB charge controller with a 3.3V output. I am intending to monitor the Lipo voltage via a voltage divider connected...
In response to your original post (sorry this is so late to the conversation), here's a visual representation of the audio interconnects from the legacy sketch (this layout does not necessarily respect the specific...
I installed 14.0 without thinking of possible consequences and sure enough couldn't get serial to work afterward. Searched the forum and found nothing about Sonoma.
Turns out the USB cable I've been using for...
Sorry about that. I have updated the post and included the whole code in main.cpp
Delta is calculated when object is destroyed. It shouldn't make a difference whether it was initialized.
I had looked through the power up sequence page previously but wasn't sure how much of a requirement everything was (it mentions a USB voltage regulator needing power but assumed that was to convert 5V to 3.3V for...
I have spent some time trying to find the most optimal mcu that can perform Matrix Multiplications.
Few days ago I got my hands on a Teensy 4.1. I focused in the Arm Math library (Which I understand should give the...
Well, changed the test strategy from using noise to using a slow ramping signal (0V > 3V3 in 1 sec).
That did not help; still missing values.
Then I changed the code to
int Val_u = 0;
void setup() {
...
Are you using the SD card reader on the Teensy 4.1 or the SD card reader on the Audio board. The tutorial is set up to use the SD card reader on the Audio board. If you want to use the SD card reader on the Teensy, in...
I had written my own VB program to display the point cloud, which I plan to use to display the spectrometer data. However, I then had the data entered in a list box, from which I then imported the data into Excel via...
I'm playing right now with your exact code and a noise generator.
What tool did you use to display the point cloud? I'm now using TyCommander to save the serial data, import that data into Excel and then display the...
Hi :cool:
I am working on a university project - a loop pedal with generative drum rythms. It is going really well, but I have a small problem.
The first loop I record sounds exactly as it should. No glitch or...
Thank you gentlemen! I started the tutorial and I can see he starts with a single voice so I'm just going to follow along step by step, though Im on a 4.1 with a Rev. D audio board... shouldn't be an issue I'd wager....
I noticed the thing during my spectrometer tests, because I create a point cloud so far.
Over the whole width of the representation these interruptions were to be seen. Afterwards I looked at these data statistically,...
Hi,
I have an audio board rev D and i can use teensy.4.0 & 4.1 with a line input that i can hear at the headphones output,
means the wiring is okay from the input to the headphones,
but i never heard the sdcard...
Did you update the Teensy board package before you got into those issues? If I try above 1.57.2, I lose the USB connection and even Arduino IDE cannot find the board. If I get back to 1.57.2 and do the very long process...
Interesting observation.
Did you perhaps change the amplitude of your (digitally-generated-noise?) generator to make sure it's not the generator causing this?
And what do you measure when using the generic...
In the examples included in the Teensyduino installation you should be able to find some inspiration and get into different aspects. E.g. "PlaySynthMusic". Also for reading input from USB host you should find examples....
Yes, you are on the right track. However the suggestion to start with a single voice is a good one. When you have that running it is easy to scale up.
Also this multi-part tutorial is a bit old but still excellent:...
I guess my main question is how do I read each midi note for my controller press and then turn on/off the mixer channel based on that? Do I begin all the waveforms at the very start? I know I also need an array to keep...
Thanks TomChiron! That was very helpful and the post you showed cleared it up a lot. I'm going ton search around myself and simply start from scratch. I need to find information on using the Teensy as a USB Host and...
I have mapped GPIO6 for my project this way:
So I multiplexed the high order 16-bit of GPIO6 into mix of input/output signals using latch or bi-directional buffers.
- GPIO6.PIN = 8-bit MSB address bus as output...
Thank you so much Paul.
This was tremendously helpful.
From a business standpoint, your support (to us and to others on this forum) keeps us coming back for more of your designs.
Generally speaking, the...
The noise generator should have an impedance of 50 ohms.
I would accept a non-linearity of the ADC, because this could be corrected. Also a somewhat slow calculation could be compensated by waiting. But that certain...
This is the pin out from Arduino
They confuse things by counting from 1 on both sides, but using the normal IC pin numbering, starting from top left, running down the left side and then back up the right side, pin 8...
You need as many waveforms (or whatever sound generators) as you would like to be able to play back in parallel, i.e. polyphonic voices at the same time.
If you should have "only" 16 input keys than it could be easy...
Did you use a low impedance source to drive the ADC - many ADC only reach their published performance for low impedance drive. ADCs built in to microcontroller chips are usually a poor compromise in performance since...
Not at all, I’ve placed one at least 6 inches away before and I had an export error that made me unable to use the PCB traces so I had to use hookup wire for those 6 inches to the connector. The signal integrity seems...
Maybe the Power Up Sequence info on this page can help?
https://www.pjrc.com/store/ic_mkl02_t4.html
Click the little javascript buttons to highlight each power up step on the schematic. ;)
Hello,
I have a project where I need to power a Teensy 4.1 from 3.3V. My current setup is as follows:
- I have cut the VUSB/VIN pad jumper on the bottom of the Teensy
- I have connected a CR2032 to the VBAT pin to...
I would be glad to start from scratch if someone could give me a head start on how to setup a 16 note polyphonic waveform synth with the teensy a usb host and a 16 key midi controller(the Keybow 2040). Do I need 16...
I just stopped using pin 48 and moved to another pin. I am not planning on changing the default startup code, and would have to do this every time we update Teensyduino. It seems like adding a pulldown resistor to pin...
I have made measurements with the built-in ADC. When I displayed the data graphically, I noticed that certain values are missing or are displayed as "0". Interestingly these values are in the binary-typical distance of...
In your code you have been mixing up bytes and integers.
In your send routint you have Wire.write(channels); where channels is an integer and Wire.write accepts a byte ( as I understand it ).
In your receive...
Hello everyone. Recently I started building a basic synth for my young niece, so obviously bright blinky lights were a big factor. :) I started creating my own pcb and used Cherry MX keyboard keys. Then multiplexing...
@jmarsh Applying this patch solved the issue for me! Many thanks. Now if the crash happens inside the thread, the correct place is show in addr2line and the .lst file.
Thanks jmarsh! I decided to change from pin 48 to other pin and this fixed the issue for me. As for pin 36, I placed a pull-down using a 1K ohm resistor and was also able to solve the issue with this pin. Still not able...
Is the other board also a Teensy? I can tell you I've personally verified Teensy (I2C master) to Teensy (I2C slave) many times. Many people have also successfully used Teensy in either mode, so I'm pretty sure the...
The transmitter is always sending eatch time 1 component of the array channels by time. i thought that when the first has arrived to the receiver the others would be coming directly after that. In total it's passing all...
I have no familiarity with sbus or I2C slave mode so this is all very generic but a couple of things stick out as possibly causing issues in your receiver code.
void receiveEvent(int byteCount){
...
Pin 48 is likely being driven high when (after) the PSRAM initialization runs (it checks for any attached chips). In theory this could be patched out of startup.c.
I'm not aware of any reason why pin 36 would be driven...
I am currently facing a similar issue but with different pins: 36 and 48 (back) on Teensy 4.1. My situation is very similar to the one from @mwolters. I have chosen 8 different digital pins to control 8 relays, and pins...