hi there, just a quick update on this project (still no video) :-(
I have changed the midi output of this bass back to normal usb-MIDI client, since I can use it with a laptop directly when I am on the road...
Hello,
the SPI Mode should be SPI_MODE1 or SPI_MODE2 (either should work), so either CPOL=0 AND CPHA=1 or CPOL=1 AND CPHA=0 but not both 0 or both 1.
In the Datasheet they do not state if /RESET has an internal...
Hi everyone,
I have a Teensy 3.5 connected via USB to a Raspberry Pi. This Teensy sends data frames to the Raspberry via the serial port.
The Teensy is recognized by the Raspberry thanks to a predefined name...
Unfortunately, this data type does not work. Still no output. Now it's getting confusing because that should be exactly what that transfer() method expects, right?
May be I'm wrong, but the noise seems to fit with onboard led blinking while recording. I'm curious to test with onboard led turned off ... but I don't know how to do this !!
One thing you might have to be careful about are pins 48-54 that are used for soldering in either 2 PSRAM chips, or 1 PSRAM chaip and 1 flash memory chip. I believe the Teensy initialization functions (called before...
Well, bad news for me, but potentially good news for those looking to further teensy audio: my interfaces can't be aggregated because they can only use internal clock sources. So back to this plan! Haha
OMG.
After imagining another way to find the faultive code part (if it was code!), I found it.
I totally ignore why and honestly don't care because this part of code is useless for me, but the autosteerSetup()...
Hello!
I want to use GUIslice but I cannot compile it:
In file included from /Users/.../.platformio/packages/framework-arduinoteensy/libraries/ks0108/ks0108.cpp:35:...
I have a sneaking suspicion there is some code in the Teensy Loader app (the one that uploads code onto the device) that sets the RTC based on the host PC's time - I've never had a battery connected but have noticed the...
Hi Kurt,
Thanks for this. This works.
However could you maybe tell me HOW I can set now the internal RCT clock of the Teensy 4.0 to the time of the date read from the file?
This is important if the battery runs...
Yes it did. I'd seen the difference when looking at the code on my original analysis. Given that connected() requires both the connection to be closed and the remaining buffer to be empty, that's the one I'm finding...
Yup. The constructor for the object is badly written, and fails to initialise the waveshape pointer to a NULL value. If the object is statically declared then it's guaranteed to be initialised to zero, but using new...
Hahaha aren't we all. Save us oh mighty teensy master! Anyway I should be able to mess with my potential temp solution today. Not at all teensy audio related, but would at least get me by. Time will tell.
I'm trying to code an effect chain (programmable by user) so I need to be able to instantiate different effects and connections. For now I've been able to code a delay and a reverb effect, but when I got to add a...
That sounds much like my observation, though perhaps a little contradictory - you're saying 8 channels makes it worse, then that you get glitches even with 2 channels?! :confused:
But ... it does appeaar that if we...
Hello, Teensy Newbie here
Running Teensy 4.0 with Audio Shield Rev D2 to play one wav file off a teensy and the audio quality is very poor and noisy. I've tried running it with the sample wav files and just one audio...
Yes you can use those other pins for GPIO stuff.
From my Excel document on T4.x I have the page:
Which shows those pins. are in these areas. For SD, at one point I made a simple plug in circuit board that broke...
Hello!
I have a general question about the 55 I/O pins on the Teensy4.1. I see on the back of the board and pin layout that there are additional pins. But these pins look like they are for traced to specific modules...
It looks very good :)
Only thing that gets me wondering is the much faster upload speed than my java tool.
Also: Because teensy.exe ignores the ehex if you chose upload from arduino and has the ehex creation code...
Thank you both for your replies!
I ended up following your suggestions and got it to work by creating a global struct array with the max amount of simultaneous values, and passing a pointer to the specific array...
SPI.transfer expects one byte (8 bits, uint8_t). To send a 16bit quantity you can send two bytes, MSB first.
I don't have the particular DAC you are using but I looked at a couple of sketches using other DACS to see...
Quick look at the MCP4822 datasheet says it has an internal 2.048V reference, and you can select either unity gain or 2X gain output. So the output range ought to be 0 to 2.048V or 0 to 4.096V. Does not seem to be any...
While something is clearly wrong, perhaps good news is this looks different than the usual destroyed Teensy (typically from touching 5V or higher power to 3.3V which destroys the main U1 chip). A normal destroyed...
#include <SPI.h>
// Define the MIDI channel and CC number you want to use for CV output
const int midiChannel = 1; // MIDI channel (1-16)
const int ccNumber = 20; // Control Change (CC) number (0-127)
// Define...
Ok ! So back on track with another take ! Things seems to be going good except that I cannot get the 4822 to deliver 5v at 127 value.
But it follows the automation ( maybe it could be faster but will see that later )
...
Hi everyone.
I believe I have a dead Teensy 4.1 board. I plugged the USB and it did not turn on. So I measured the voltage on the 5V and 3V pins. The voltage are 2V and 1.5V respectively.
Any thoughts?
Good afternoon,
I managed to find the problem by myself, by searching in this forum and even via chatGPT without success. As last chance, I try here.
If my post is done in the wrong section of the forum, do not...
Here is a teensy_secure build for Windows. So far this is untested. Please let me know if it works for you?
Usage: teensy_secure encrypthex <board> <file.hex>
teensy_secure encrypthex_unlocksnvs <board>...
From the perspective of my application, switching from new/delete to use of a preallocated pool doesn't change much of anything. When a connection is established, I have to get an EthernetClient from somewhere, and...
Well this is more or less why I was asking about drivers, because in my experience with windows there isn't usually a way to decide buffer size unless you have a dedicated driver. One possible solution is asio4all, but...
In my opinion getting 8 channels USB it's one thing but getting it without any glitches it's another.
My biggest issue is I am getting a bit of a glitching sound on USB (WIN10) regardless if I use the standard 2...
Thank you for these details and suggestions. Turns out I have the B grade!
I have changed it to 10Mhz for now. Thanks for pointing out the NXP max, Paul
This part still eludes me. So I can pass an int...
In IDE 2.1.0 w/TD 1.58.1 here Plugged a T_4.0 with a 64GB ADATA 'A2' card in the REV D Audio Card
Using unedited p#1 code it ran first time:
SD Card Test
------------
SD card is connected :-)
Card type is SDHC...
Which operating system are you using? Or in other words, if I were to compile a test copy of teensy_secure, which platform should it be for easiest testing?
Your program is using the MIDI library, which receives ordinary serial MIDI (5 pin DIN connector).
To receive USB MIDI from your computer over the USB cable, use "usbMIDI". Documentation here:
...
I understand ! So I did what you said , Hello world appeared ! But yea no midi cc..
On thing is each time i upload, Logic give me a notification that its see the 4 midi i/o so i believe the midi implementation is...
I am also experiencing a similar issue.
Using Teensy 4.0 with Audio Shield R2.
My wav files (SDTEST1.wav from pjrc site) play but with extremely poor quality while running the audio example code SdWavPlayer. The...
In Arduino, click File > Examples > Teensy > Serial > EchoBoth. Change the baud rate from 38400 to 31250 and upload.
Optional, add the Hello World stuff, so you can be sure it is really running.
Does it print...
It writes Hello world at the start. Then I add the next code to print cc message in the loop but nothing again !
This is the code from now :
#include <MIDI.h>
#include <SPI.h>
// Define the MIDI channel and CC...
When you see it print Hello World, the next step is to add something like this:
void OnControlChange(unsigned char channel, unsigned char control, unsigned char value)
{
Serial.println("received CC message");
...
Add this at the end of setup(). Or anywhere in setup()...
Serial.begin(9600);
while (!Serial) ; // wait for Arduino Serial Monitor
Serial.println("Hello World");
This won't fix anything, but it will at...
Ok so i dont know if this would be the proper way to do it but i add that serial print code in the loop of my code then upload into teensy. After i started Logic with my automation and then open the serial monitor but...
Well, it was intended to expand the capability of the existing USB audio from 2x2 to up to 8x8, and other sample rates. As far as I know it’s all standard USB descriptors and behaviour, so should work with any DAW...
Update: So glad I posted this because obviously now I fixed it. I upped the audio memory from 10 to 12, which just introduced static noise when I was using a 3.6, but I guess the 4.1 has more memory? Anyways, it's all...
As a first troubleshooting step, I'd recommend printing to the Arduino Serial Monitor so you can see the actual number before your code tries to send it to the MCP4822.
Something like this:
// Map the CC value...
Ok, this is great info, and I really appreciate it! Now Paul had also mentioned that the driver side of things was not yet ready to handle all that, but is that in fact true? The work you and McGinty did, did it include...
As Paul said in post #2, there are 7 total I2S data pins, of which 2 must be input and 2 output. Each pin is 2 channels. An audio adaptor has 1 each input and output (2 channel) pin. So 3 adaptors would give you 6x6,...
Hi ! Trying to make a midi to cv with my teensy 4.1 with a MPC4822 DAC.
From now, I believe the teensy receive the messages but the outputs of the 4822 are only +- 0.5v at maximum and doesnt really follow my...
Well first off, it'd only need to be 44.1 realistically (maybe 48), the source itself is not super high quality, I just want to capture it authentically if possible. Same for the outputs for live.
I am also on...
There seem to be differential amp modules available based on the OPA1632 which might be useful. Not sure, never used them…
I was just thinking that if the USB recording quality isn’t perfect, the SD would be a...
In terms of accuracy, it depends whether you got the A grade or the more expensive B grade. For A, the relative accuracy is ±2 LSB typical, ±8 LSB max. Assuming you have a gain stage that takes the 2V5 or 5V0 DAC output...
Your setup does not work because you are sending command 0000 which is "No operation". You need 0001 which is "Write to input Register".
So
int setDacChannelLevel(int address, int value)
{
...
Hmm, and that said going to studio monitors I'd still want a balanced signal if possible. Anyone know anything about that?
But ya, I just meant such that the 3 left channels aren't summing into 1 and distorting,...
Ah, hadn’t twigged that the Focusrite spec was misleading…
Easy enough to get the Teensy to mix 6 inputs (and the outputs too, if you want) to a stereo monitor mix. All the bits you need are in the audio library,...
Woops, tried to edit my post and it got nuked.
I would actually also need to monitor the source through this device as well, so vaguely possible would be sd card capture but a mix with the 6 channels into 2 outputs to...
Sounds like you’d have to put some effort into the analogue side, then. As much fun as it’d be to build your own, you might find something like a Focusrite Scarlett 8i6 would tick the boxes, and give you 24/192k quality...
Not at all! In fact I'm just glad to see how vibrant this community is! Also, that there's still interest in doing something similar to what I'm attempting to.
@JayShoe I really appreciate the insight on how you think...
Excellent news!
I'm sure ground loops are significant, but I'm equally sure there's a power routing issue whereby the SD card power is not starred from the source pins, but runs first to the SGTL5000.
Here's a...
blinkParameters temp is a local variable created on the stack (push) within setup(). Once setup() returns, the memory this variable once resided is reclaimed (pop) and thus loses context.
In other words, temp...
Quick guess: The passed pointer is saved at time of .addThread( ..., TEMP). So subsequent calls to blinkLed() are pointing to that space on the stack that was in use during setup().
Make " blinkParameters temp = {0,...
I connected Teensy 4.1 through jumper cables to my pcb, swapped 3.6 pin order to 4.1. Loaded Scanner example and added "analogWrite(23,20)" in a loop... "No I2C devices found"
Voltages on VAG and HP_VGND are also...
So, as stated in the title, I'm experimenting with the TeensyThreads library and would like to start several threads with a function taking multiple parameters.
I'm facing a couple of problems, due to the fact that...
Hello!
I am about to do some coding using the library.
To get the size of a file os not a big deal:
File configFile = partition1.open("/config/config.txt", O_READ);
..
Serial.println(configFile.size());