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());
When posting code in your message, you can use the "#" button (just above the area where you enter the text") to enclose the code in "CODE" tags. Doing so will preserve the formatting, which as you can see above, makes...
AMh4yn0nnym0u5e is correct, you are taking a risk when buying from those "knockoff" sites. But what is the risk, really? $27? It appears to me that the board is a reference implementation of the chip. The row of pins...
Opps, yes, indeed I meant configure the I2C address.
Rev D (with configurable I2C address) will return within the next couple months. Robin & I have been putting a lot of work into the supply chain side, so...
Personally I wouldn't buy anything from AliExpress. Did it once, but the boards that turned up didn't work, and zero luck getting a refund.
Paul did do an update to the 6-in 8-out CS42448 board to bump it to 8...
Well how about that?
Read through just about everything there, which led me down yet another rabbit hole (trying to figure out the required components), found Paul's pcb for use with the CS42448 that was being used in...
The forum thread on >2 channel USB audio is at https://forum.pjrc.com/threads/70176-USB-interface-for-multi-channel-outputs-not-just-stereo. Post #42 gives you an idea of the remaining issues that I’m aware of but...
Agreed. Trying to combine those two sockets doesn't change anything in QNEthernet. The complexity gets added in the application itself, and without a very long essay on exactly what it's doing and how it's doing it,...
Yes I see what you are saying! I believe this means I need SPI_MODE3
I tried setting this mode via a call to SPI.beginTransaction() in the setup method, so now it looks like this:
void setup()
{
...
Ah, ok, I figured there was a bottleneck somewhere. Makes sense that it might be at the driver. Well, considering I'm looking to make something others could potentially use as well, I may as well see if I can take a...
This should be possible if you use both I2S ports.
The first I2S port has 5 data pins, so it can do up to 10 channels. 3 of those data pins can be either input or output.
The second I2S port has 2 data pins, so...
I'm curious, why are you using `new` to create `EthernetClient`s instead of, say, having a list of them already created? For example:
std::array<EthernetClient, EthernetClient::maxSockets()> connList;
// Or...
First step would be checking if it responds to I2C with the expected address. The main gotcha is it won't answer unless MCLK has a clock signal. So you can't just run the Wire library Scanner example.
With Teensy...
The behaviour of those functions is documented here: https://www.arduino.cc/reference/en/libraries/ethernet/
This disambiguation might also help (QNEthernet README):...
Thank you CollinK.
At this point it appears that the "messages of interest" are all still 8 data bytes. So for now I think I am good to replicate those on the Non-FD Bus and ignore the rest...
I went ahead and filed the issue: https://github.com/ssilverman/QNEthernet/issues/40
I also fixed the problem. Thanks for reporting it.
(For future reporters: Please file an issue in the repo; I may or may not see...
I am trying to do a multi-thread with 4.1 teenys. Is this possible with this teensy? This is my code:
#include <Arduino.h>
#include <FlexCAN_T4.h>
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1;
int state = 0;...
Hey! Just looking to confirm, from what I'm reading you can stack 2 audio adapter boards to get 4 channels of audio, either in or out, but I'm looking to do 6. Simply put, I have 2 separate goals, which if achievable on...
So using 16bit pcm and 44100hz the files still wont work. I did an export and thought they worked but used the wrong files. So yeah same behavior jmarsh even with your settings specified.
Can anyone check the...
Hi all,
Just purchased a PJRC audio shield board for Teensy 4.0 for an interactive sculpture I'm building.
Deafult WavFilePlayer example worked great after hooking up all my components, but my own files exported...
well at this point it is probably easiest to hire someone with teensy knowledge to look at the issues. pay him something and make him sign an agreement not to share any code bits... if it did compile at some point it...
Yeah, i heard that fake semiconductors are a big problem, but I'm in Ukraine and local suppliers don't have this chip in stock now, so i tried Ali...
Is there any way to test-check if the chip is fake/not working?...
Yes indeed, and @manicksan has done just that - you can find it here, as part of a rather out-of-date fork of the Audio library. I think it might be slight overkill as it may result in code duplication for each mixer...
Maybe still possible with some digital I/O and "write enable/disable" circuitry, but not sounding very practical. Still interesting to learn of these additional capabilities of LPSPI.
That wouldn't work because the SDO-1 pin on the device and SOUT on the Teensy would both be connected to the device's SDI pin and end up driving it at the same time. The device accepts input at the same time as it sends...
Hi again,
the following parts of HAB4_API.pdf from docs folder show the right values and how to use them.
The correct Bytes for the unlock command should be:
B2 00 08 1E 00 00 00 03
Unfortunately yes :-( . Barely can keep up adding all the features in all the controllers, modules and shields... :-( . Bust I am still trying to get it on other platforms.
Section 7.4.1.3 describes an auto-sequence mode, with auto-repeat, where the device cycles through the chosen channels on each CS. Could the T4.x SOUT be connected to allow write to the device's SDI for writing...
Hi!
I'm trying to integrate an audio adaptor into the PCB of my synth. Copied Schematic, Rev C
For some reason, there is nothing on a headphone output, meanwhile, USB output works correctly.
I believe i made some...
Looking at the ADS8168 datasheet (admittedly only a quick glance), I see 2 pins for data output, but only 1 pin for data input which is indeed separate from the output pins. My impression from Figure 42 on page 31 is...
Please be more specific. At the very least, show a screenshot similar to msg #3. If your screenshot doesn't have footer, please say which page number and the version of the document (ideally use 3.3.1).
My best guess is you're asking for teensy_secure to give an optional command line parameter which generate CSF data with the same output as NXP's Code-Signing Tool would if given the "" command with "Engine = SNVS" and...
Hi,
I would also greatly appreciate that change and have successfully tried it by patching the binary teensy_secure. It would also be of some benefit, if also the teensy binary would contain the same code for the...
Hi there,
we're using the Teensy 4.x on research rockets such as on MAPHEUS 9 - 13 to control experiments and acquire data.
Our last mission was on May 22th, 2023:...
I wrote:
I can't now eedit the post, but what I should have said was "I can't be certain that it won't start returning false early in the process ..."
That should make a lot more sense, and correctly describe...