@KurtE @mjs513 - Here is a web article of interest with information on stalled USB 3.0 pipes and how to reset and clear them:
http://billauer.co.il/blog/2019/12/usb-bulk-overflow-halt-reset/
Would like to adapt...
Aviate Audio just launched a new programmable DSP guitar stompbox called Multiverse that uses a Teeny MicroMod. It has a comprehensive framework for easy development of plugin-like effects, but more about that later.
...
I'd like to build a quite a large grid out of ws2812b strips, which are 4 wire led ribbons. I'd rather not have to cut/strip wire and solder every single connection at the ends as it will be so fiddly and take so long....
Quick answer (& hoping I'm correct, as I don't have any experience with the Teensy LC): of this, I am certain: the D+/D- pads on the bottom of the T4.0 are for the USB host interface made for plugging other USB...
Hello all! I would love some help with my fun retropi portable gaming console project (link below)
https://www.instructables.com/GamePi-the-Handheld-Emulator-Console/
I'm having issues with my Pi recognising my...
Great! I ordered the cable (and an additional Teensy and ethernet adapter) this morning (with cheapest shipping) so it will be several days before I can try it out. If I don't get too wrapped up playing around, I'll let...
@mjs513 @wwatson
@PaullStoffregen (if you are watching) - thread shows last look about a week ago.
Some of this lower level USB stuff is above my pay grade (of $0) ;)
Stalls - I have looked a little bit...
Think we had an issue with USB Pipe Stall before: https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=292596&viewfull=1#post292596 but I remember similar issues - just...
I have a magnifying lite and a magnifier for just such an occasion:) It states that it is backward compatible with USB 2.0. I think it's time to do some online research...
Edit: Here is a link to the support page for...
Both PT8211 and MQS sound pretty good to my ears. If you have a 1K resistor and 0.01uF capacitor handy, give MQS a quick try. I believe you may be surprised how good it sounds.
MQS uses a noise shaping algorithm,...
@mjs513 - I also noticed a couple of other things in those snapshots. Down a couple of lines you see "URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL" twice. I think this is what we are seeing on the T4. For some reason...
As a very first step, open your code in Arduino IDE and click Tools > Board to select Teensy 4.1. Then click Verify to check if your code is able to compile.
If your program uses Arduino functions like...
Another simpler option for you maybe to try:
That is if you call begin() before it is there, maybe we should still try to use that baud rate when it does connect:
If you go into the USBHost project sources on your...
Gave your sketch a try using the UAM46 drive and as advertised it worked but I had to reformat the disk first.
Also went back to the Wireshark Windows dump and looked at the startup for the drive on windows did...
Hal:
Yes, I do use that cable & yes, that's the interface where I connect other synths, sequencers, and keyboards to my TMPS (TeensyMIDIPolySynth).
The MIDI library calls for MIDI capability thru that hostUSB...
One forum member in the other thread you mention was very negative about the PT8211, saying it was worse than the T4 "medium-quality-audio" output. Is that to your knowledge the general consensus these days? If so, I...
I should also mention that some of these kinds of issues will disappear when printing debugging information as that often forces the code to reload the value, so make sure you also test without debugging enabled.
Yep, shown here:
Yeah it's a bit noisy, the scope trigger was hardly able to show a stable image. Here is a screenshot of the scope with a 1sec persistence:
You may want to check out this thread where I...
I have sorted out a few issues that I was seeing with CSW tag errors. I wouldn't be surprised if you are running into the same issues I was seeing where the code wouldn't reload Command wrapper.tag, instead just using...
You could try adjusting the Advanced port settings:
This is an FTDI cable on my Windows 10 PC, I can't recall if these are the default settings or I've adjusted them myself in the past.
Fabulous! Thanks very much. Looks like this approach should solve my problem and allow me to migrate my T3.6 project (that needs variable DAC write times) to T4.1. Are you using the PJRC PT8211 board here? If so, do you...
Change only c1 value by add or subtract by 1.
// -- Freq 88200 for 44100kHz ADAT, MCLK1 22,579,125Mhz -- we need 22,579,200MHz
// c0 DIV 30 -- OSC_24000000Mhz *(30 + (1055/10000)) = 722,532,000MHz
// c1 NUM...
No reason to include " defined(__IMXRT1052__) " - the 1052 was dismissed long ago after 1062 was made the chosen MCU for T_4.x and is no longer supported or maintained.
I think it's because your code is not changing the setting of the original instance. It's trying to create a new instance on the same pin, and the error is telling you the pin is already in use. Try using the setPWM...
I've been using the Teensy_PWM library for running an ADC and encountered something that puzzles me. I'm using the library to generate a conversion signal that triggers the ADC, and that works fine -- with the...
When you say host USB port, do you mean a CABLE_USB_HOST_T36 (or similar) connected to the 5 pin connector on the Teensy 4.1? I think that's my problem. I have just the one programming cable connected to my desktop...
Strong guess, FTDI cable is buffing the stuff...
If you output your 82 bytes to userial1 and then do userial1.flush();
Does it work? My guess maybe not.
The cable probably has some logicai IOCTL that tells the...
Thanks for this. Do you happen to have examples, either audio or FFT displays, of the improved harmonic content and aliasing for this versus the BLIT or polyBLEP approaches?
@KurtE @mjs513 - A little progress:) I have stooped to single sector reads and writes. Here is a sketch that appears to be working:
#include <Arduino.h>
#include "USBHost_t36.h"
// For this sketch we need to define...
@HalRomans:
Sorry that the earlier suggestions didn't help. Not really sure what's going on with your setup. I do compile my TeensyMIDIPolySynth using Serial+MIDI & it works great. I am able to both send (to...
Thanks for the input! What you describe with the hardware serial ports is exactly what I'm not observing; I would expect that writing to the hardware serial port once every 1/100 of a second would lead to a 100hz read...
Sorry, it has been awhile since I looked at the USB Host Serial code.
I think there is sort of a chicken and the egg problem.
It does appear like the code does default to 115200 when the object first connects. ...
Does this also work for teensy 4.1? I'm thinking I could just make some slight modification such as
TeensyStep.h
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__)
#include "timer/teensy4/TimerField.h"
...
I tried both suggestions and there was no change in behavior. It works when MIDI-OX is running and doesn't work when it's not running. This isn't a problem with reading the wrong MIDI channel. When it works, it works on...
Sorry I am not sure exactly what you are asking, So will try to give some generic information.
The Serial object, tries to fill up a USB buffer and then sends a USB packet to the host. Things that control how USB...
Sorry to bump, but hoping somebody with some insight sees this. The above is very wordy but I think if I could prioritise one question it'd be this; how do I set the baud rate on the USB Host serial port? I thought I...
Thanks agian Paul. I dusted off my oscilloscope to check the signals I was generating with that code, and discovered the DIN streams were still not setting higher bits. There must be a problem with my use of saw & m in...
I am writing serial data from a teensy 4.1 and reading it from a windows machine using python and pyserial.
On the teensy side, I have initialized the serial port and am writing a data packet with a header and...
Try these:
1) Add the following somewhere after you've included MIDI.h
MIDI_CREATE_DEFAULT_INSTANCE();
2) If you take a look in the Arduino IDE at "File, Examples, Examples for Teensy 4.1, MIDI Library,...
Hi Bob, thanks for the motivation! :-) will try my very best, although time is quite limited at the moment. Yes, I totally agree, FT8 for emergency communication seems much more useful and interesting than...
I am trying to set up a Teensy USB MIDI Host and I am having trouble getting the MIDI routing / mapping to work the way I want.
Here is a trivial example code to demonstrate my problem:
#include <MIDI.h>
const...
Does anyone know where to source the IMXRT1062DVJ6B? Is there an alternative to the IMXRT1062DVJ6B? Seems they are out of stock pretty much everywhere.
More info needed ...
New T_4.1's - soldered in any way after working to blink from new? Every programmed with anything to work?
USB Host is the internal pin array to Host USB devices - was that used and connected...
@KurtE
That makes sense. 13 bytes is the size of the CSW and probably why we are seeing:
USBDrive dataIn (static): 0
ERROR Followup
I think. But why...
Missing something. Working on that right now.
Hi all.
I have 3 brand new teensy 4.1 boards that are not responding to external usb connections. Is there any way to test the board to see if its fried?
Damo
Recent versions of the Teensy arduino overlay now support reading ExFat files.
If you go into File Menu -> Examples -> Audio -> HardwareTesting -> SD_CARD -> SdCardTest there is an example test program.
Note in...
The source code link does not work, here it is:
#include <eFlexPwm.h>
using namespace eFlex;
// My eFlexPWM submodules (Hardware > PWM2: SM, SM, SM)
SubModule Sm20 (4, 33);
SubModule Sm22 (6, 9);
If you look at the code you will see that I rely on the NXP driver code, the NXP part is in C language, it is separated from my code in the src/nxp folder
The goal of my work is to make all the power of eFlexPwm...
Wow, this is very nice. There have been some threads regarding generation of center-aligned and complementary PWM, but nothing like this. Did you create this from scratch?
Will have to take a look at those.
But first I am curious about the failure:
File "annie3 - Copy.bmp" size:230454 Created:641d6f21 Modified:61e3a02e
read consumed all data (TODO: how to check ZLP)...
I'm planning on making a YouTube video on this so people can make their own touchpad joystick. AndyA can I have permission to give you a shoutout and thank you there too.
That was able to get it to work. I very much appreciate your help.
Though I needed to change PINNACLE_X_RANGE/2 & PINNACLE_Y_RANGE/2 to 512 for both.
The coordinates in the end were pulling to the bottom right....
Hi
I wonder if someone can point me in the right direction.
I'm looking for some reasonably simple code to:
- play .wav files from a SD card.
- have the ability to next, prev, stop, play based on a file list....
Hi all,
I'm going to try and build the project shown in this youtube video - but I am a total noob to all things arduino.
So, 2 questions
- I have got a 64GB SD card to put in the audio shield board, so that is...
I think you could get away with something as simple as this:
void loop()
{
if(DR_Asserted())
{
Pinnacle_GetAbsolute(&touchData);
Pinnacle_CheckValidTouch(&touchData); // Checks for "hover"...
Hi Joe, Thank you for pointing these out. 3.3V voltage restriction isn't an issue for us. I found our hardware components will work just fine with 3.3V. I also found the four pins (PB0, PB1, PB2 and PB3) for SPI are not...
The pins you have highlighted are I2C, SPI, Analog Input, and Digital I/O. You can likely use T4.0, which has all of those, and is quite a bit smaller than T4.1. I'm guessing Teensy++2.0 is 5V, whereas T4.x is 3.3V, so...
// Current Prototype - March 2023
// Copyright (c) 2018 Cirque Corp. Restrictions apply. See: www.cirque.com/sw-license
#include <SPI.h>
// This device is currently built to operate with a Teensy 3.2.
// It can...
@wwatson - @KurtE
loaded the wireshark files up on google will send you all the invitation
ee1 - UAM when first inserted into PC - look for 1.20.x addresses
ee2 - UAM copying files from PC to drive
ff1 - micro...
Hi,
The iMxRT1062 used in Teensy 4.x was designed by NXP to perform scalar or vector motor control.
I published the Arduino eFlexPwm library allowing to use all the features of NXP eFlexPwm timers to control motors...
Hi all,
I am trying to replace our current Teensy++2.0 with another microcontroller such as Teensy 4.1.
Does Teensy 4.1 provide all the necessary ports as Teensy++2.0?
I uploaded a screenshot of the wiring around...
Good Morning All
Was curious how the problematic drive behaved on windows vs one of my microcenter ones that work fine with USBHost.
Test 1. Copied the same files from the PC to each drive.
Image 1: UAM6 -...
Hi Everyone,
I am working on a project and I was trying to figure out a way to use a USB Type C connector that can pull 1.5A of power and pass the D+ and D- to the USB 2.0 device pins on the Teensy 4.1.
...
Good morning Paul
Looks like that fix the issue with not getting notifications, received the email about the update to this thread.
Update: Looks like it fixed the dup issue as well.
I think I have more information than I can comfortably handle for now, having enough to keep me busy for awhile.
All the things I expected to work are working as expected (argh), so I'll consider this thread closed...
I realized later that the reverse bit order might actually be enough to cause the result you showed due to the fact that the saw wav is incremented in steps of 160. Normally that would cause the lowest 5 bits to always...