Good to know. The Hack showed it wasn't as 'hoped' the same underlying buffer used for IP-based TCP.
Is there a solution to the p#12 lost/delayed TCP data? Or is that the nature of TCP that items need to be handled...
The best introduction is probably at https://www.pjrc.com/teensy/td_libs_Audio.html, but then it’s mostly a case of looking at the existing objects, figuring out how a simple one works, and having a go at modifying it...
Use of "ATTRS{serial}" restricts this udev rule to 1 specific Teensy board. If you plug in a different Teensy, even if it's the same Teensy model, it will have a different serial number which causes this overly...
`EthernetFrame` is for raw Ethernet frames (probably not what you want here), `EthernetUDP` is for IP-based UDP, and `EthernetClient` is for IP-based TCP.
Indeed, the original design goal was for all instances to be static. The main issue with deleting instances is the input queue can "own" audio blocks at the end of an update, which then get used on the next update. ...
I would like to help with that, but I've tried before to understand the Audio library, but I don't even know where to start.
The truth is that I've been using it a lot, and someday I would like to deep into it to...
So I fixed that and still had the issue. I believe it resolved when I converted the lowercase .wav file extensin to be upper case.
Is it required for the file extension to be upper case as well? If not...
Seems like it should, Yes. Per the notes left above it might reduce overhead of TCP and quick testing shows no problem sending 28 bytes in 10us from one and received fine on another Teensy.
Seems the send might take...
It wasn’t designed in from the start, for some reason. I’ve had a go at remedying this, see https://forum.pjrc.com/threads/66840-Roadmap-quot-Dynamic-Updates-quot-any-effort-going-on. If you give it a try, please do...
Ok! Thank you for your response, I was going crazy looking at my code
Why Teensy doesn't support deleting audio objects? Is it just because its not coded or is there something else going on?
Correct - the SD card's SCK signal is on Teensy pin 13, which is also the built-in LED pin. This is unfortunate, but unavoidable. The only way to turn the LED off is to physically remove it, but that won't help the...
C0G are available in small values only (for suitable small packages), decoupling MLCC's are normally X7R or similar as the stability and microphony is not usually an issue and these types are much smaller (far higher...
Indeed forum search can be lame - when it doesn't work. Though with usable keywords - as in this case - it did find and narrow well enough.
I use BING and have the browser do site ref when it starts "PJRC" and it...
If the scanner was set up to use UDP? then using that would be an option. Seem that TCP messages still being used?
As for how to use the '.setReceiveQueueSize' - that just came up in a text search when I saw what the...
Hello @defragster,
Please forgive my newbie question. Should I be using a EthernetUDP instead of EthernetClient client?
If I continue to use the EthernetClient, how do I use...
Oh, I considered asking about that but forgot. The datasheet, section Layout Guidelines, says there should be 10μF plus 100nF at the power pins (digital and analog). Those would be a low-ESR electrolytic and a C0G...
Using the UDP the default queueSize had to be increased that was with:
// UDP port.
EthernetUDP udp(32); // (##)-packet buffer allocate for incoming messages
Looking at:...
recalled and found this thread: pjrc.com/threads/68148-Teensy-4-x-RTC-battery-life?p=294269&viewfull=1#post294269
Search that worked was: RTC Battery Life
This has been asked before on the forum. I seem to recollect that some cheaper ones have a longer life than the more expensive variety.
If you google PJRC RTC Battery Life I am sure you will find some useful...
I am using this shield to add a battery to the teensy:
https://www.sparkfun.com/products/15716
Any idea how long the battery will last?
Have a nice day,
schlank
I wrote the attached code to interface to that sensor. The code is a modified example from the QNEthernet library.
As a way to check for consistent operation, I calculated the time between each update. It should be...
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...