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...
Not seeing a clear resolution path given the info as it seems unique and odd.
USB Hub here occasioanlly goes offline on upload and all devices go away - have to unplug the USB to PC cable and all is well.
What OS...
I'm building a teensy 4.1 based synth and trying to use the MQS (medium quality sound) as the output.
The sound quality is good, but I get a constant background noise/buzz from the output, even when I'm not playing any...
Ok so if I'm understanding you correctly the sample playing ability exists on 4.0 as soon as the audio shield is added since the ADC and DAC capability is provided by the shield?
I little bit improve my code and now it working better. But still comes strange artifactual noise in constant time interval approximately every 7 minutes. it is really weird and I can't find the problem. Also schroeder...
Hey All,
I have been trying to figure out my problem for hours today and have come up with nothing.
I can no longer upload to my Teensy 4.1 from platform IO and can't open the serial monitor in the Arduino IDE. I...
I have seen that when there are signal integrity issues between the Teensy 4.1 and the audio adapter. It seems like even a momentary issue with MCLK can put it in a state giving that screeching noise that won't clear...
Hey, all. I'm a ham radio operator working on a project that automatically tunes a magnetic loop antenna based on this design.
I've run into a roadblock in the project as it is based around a Teensy 3.2. I've...
I have tested the IDE2 generated hex file on my lathe. Seems to work fine, for which I am very grateful. Now I have to synchronize all my platforms - but that is not an EncoderTool topic.
I would definitely go more by what Paul says here, but earlier I did query on Digikey and Mouser and found what looked like sevaral available.
In the last search I restricted my search to TQFP type as the other types...
So you added the json file to the preferences. That is if you bring up the preferences and click on the list yours should include:
Your list includes the one I highlighted in green:
Note: Just to be sure I often...
I've been working with the PXP and CSI to collect and process camera images. Recently, I was writing a test pattern into a DMAMEM or EXTMEM buffer, then processing it with the PXP. It seems necessary to use an...
Rev D2 audio shields are in stock. They shipped to most distributors this week. Most should have it in stock soon.
If you just want to get sound output, MQS is probably your best option. It's basically PWM with...
Hi Kurt , yes I drop the link in the 2.03 arduino ide and ....nothing happens..totally stumped , but will futz around with it some more . Usually all goes well and installs like butter ..
This issue was due to the fact that I was not calling arm_dcache_flush_delete((void *)PXP_PS_BUF, bsize); BEFORE the rotation. I was writing the pixel pattern into the source image in a foreground function, and some...
In today's market you're probably not going to find many of the older pre-USB3 hub chips from major semiconductor companies like Texas Instruments. Even though the parts are still shown on their websites as if they...
Hi,
is there a callback or function that I can use to keep
track of USB state changes?
I'd need to know when the USB state changes to suspended
and resume to turn off and on attached led strips.
I've looked...
I really should stop posting late at night...
My question was a bit vague at best...
Yes I know this connector is not a hub and I do realise I am going to need some extra hardware to do this. Does anyone have any...
Like the others, I am pretty sure that is simply two connectors. that is there are 2 groups of 4 pins, which probably match the 4 pins of our one connector where then the 5th pin would connect up the shield...
If you...
All right, got it.
Final info here:
Yesterday right before knocking-off I disassembled the complete setup.
The problem persists on the Teensy 4.1.
Teensy alone, with the recovered blink at room temperature: powers...
Not sure what you mean by "installer for the Teensy environment". On IDE 2.0, you only provide the IDE with the link to the package descriptor, then install the Teensy "board package" via the IDE. Is that what you tried?
thanks for your response. I've got a 4.0 coming from 3d maker world before reading this post so it should serve to get me going with the use of the various tools and some coding. Is there a DAC on any of the readily...
I was building up a small mini PC for a project (windows 10)
Windows installed fine no issues
installed Arduino 2.03 IDE all went well ...
Cane over to PJRC to get the installer for the teensy environment teensy...
Hi all
I'll dig out the code tonight, but I am having consistant issues on many projects with 3.2's and their associated Teensy sound boards and 4.1's and their sound boards.
They randomly emit a horrific screeching...
I might be wrong, but as far as I know the T4.1 does not have a built in USB HUB which is what you would need to use those connectors. As @defragster stated above you just need an external USB HUB connected to the T4.1...
No, that's not correct for SdFat.
Setting the CS pin to BUILTIN_SDCARD is only for the SD library SD.begin(). It is a SD library convention which does not apply to SdFat.
When you use SdFat functions, either...
Hi,
As spring is approaching I will be updating the current software shortly. If you have any bugs/issues or requests for enhancements please share them either in this
forum or via a PM.
cheers
Cor
First part answered on another thread where you asked the same question.
https://forum.pjrc.com/threads/72029-hardware-essentials
The audio library has this tone detection.
...
That diagram is missing 3 of the 4 wires you need for the SD card on the audio shield to work, and 1 of the 4 wires appear to be shown connected to the wrong place.
The 4 connections you need are:
pin 10 to SDCS -...
In the audio tutorial material, almost all of it works if you use Teensy 4.0 and the Rev D or D2 audio shield (the one meant for Teensy 4.0).
https://www.pjrc.com/store/audio_tutorial_kit.html
As far as I know,...
Note, the pinout for the Teensy 4.0 is different than 3.2 WRT to the audio pins and with the SPI/SD card pins. So you might have to adjust some of the sample programs. Unfortunately, I don't think the example programs...
I am having a similar issue and have the 2 boards connected as per https://forum.pjrc.com/attachment.php?attachmentid=17212&d=1565797918 this diagram but these are the only conncections i have.
using Teensy 4.1 and...
I found out that the problem has to do something with the LedControl library I am using. Even when I place this somewhere in the main loop
ledMatrix.setLed(0, 0, 0, true);
to set the first led of my led matrix...
Thanks for the message. I have been doing research all morning and I am very excited by this:
https://www.arducam.com/camera-for-any-microcontroller/
I can't wait to get my hands on one!
Thanks a lot for the response.
I replaced #define PROGMEM __attribute__((section(".progmem"))) with #define PROGMEM
As you pointed out, it has resolved the current issue. I am able to compile my code now.
...
Indeed, a hub on USB host is supported, and if powered allows more and high current devices.
Not sure what those USB parts shown are? Looks like they are just two USB device sockets wired with connections for each?
The Teensy Micromod Beta thread did camera imaging - finding that thread would give a good idea of what it can do. It didn't do continuous SD card saves. Active writes to tft display gave about 15 fps -
Seems the...
Hi All
Is there any Teensy in the current range that is capable of streaming video from a camera module to SD card or other suitable storage media? I am looking to try and make the lightest possible camera for a...
In this thread https://forum.pjrc.com/threads/64122-Connecting-a-USB-active-HUB-to-the-Teensy-4-1 paul says yes, you can use a hub on the usb host....
Because I would like to hook up a midi controller and a QWERTY...
Conways Game Of Life Does Ambient
I used the Teensy Controlled Launchpads to Play Conways Game of Life. The "cells" dictate the notes to be played by the three synths. Yellow Cells are living cells, green are new...
Recording is disabled, if I recall correctly because it didn’t work properly. You could try my library, see https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder) for links and discussion.
I assume that you are using an NPN transistor, and when the input goes high, the transistor turns on and pulls down the Teensy input pin. This is a circuit that calls for some filtering capacitors either at the Teensy...
You have to guide it. It gave a pretty good template for a state machine, but when I asked it is the top priority message ID for a CAN bus node, it provided exactly the wrong answer. It never says maybe or I think, it...
It's going to be a bit difficult to help since I don't understand your hardware, what you are counting on CounterA and CounterB, or what is glitchy, but I'll take a wild guess and mention that Teensy 4.0 is very fast,...
I've figured out the problem I was having with the rotations. I was not properly setting the PXP_OUT_PITCH register before doing the rotation. That register sets the number of bytes between two vertically adjacent...
I'm trying to record stereo WAV audio on the Teensy 4 using Frank Boesing's WavePlayer extended library.
When compiling Arduino IDE does not recognise 'AudioRecordWav' as a type, even though the library is in the...
Paul is any better solution for pick up audio from record queue and send audio to play queue than this
void ADC_to_buffer() {
memcpy(bufferIn + record_offset, queueRecord.readBuffer(), MAX_SAMPLES * 2);
...
Thank you for solving the problem. It now compiles, but I have not tested this on a live platform yet. I will try it tomorrow.
Sorry to have touched a nerve. I was very anxious about fixing this, and experiencing...
okay hardware and interrupt pins seem to work. I have two function that are disturbing the interrupts/counting. when this is running in the mainloop:
void showPresetOnMatrix(int preset)
{
for (int i = 0; i < ROWS;...