I tend to always startup serial first then MTP.begin - just habit. For sake of transparency I only tested with your makefiles2204 - didn't try the primes test. Just ran another series of tests as well using the...
Did you find any info concerning this?
…having what I belevi the same problem with a Novation LaunchKey 25 that has two ”ports”, but I can only reach the first?
That built and ran. I see it uses MTP.begin().
> in makefiles.ino the MTP.begin is first in setup() before Serial.begin wait
> in mtp-test-integrity.ino it is the other way around ... the MTP.begin() will not be...
I can use NativeEthernet together with the original ILI9341_t3 library, this works well using SPI, not SPI1.
But now I want to migrate my display to SPI1, because I need SPI for the HighPowerStepperDriver lib from...
Quick note: I am having File writes and reads fail... And maybe more related index_seek(block_addr, ...) is failing
The current SDFat may not be allowing seek to go beyond the current size of the file.
So my...
Hi Paul
I have a Teensy 4.1, is it possible to open two .txt files both in write mode at the same time? like can I do
File dataFile_1 = SD.open("temperature.txt", FILE_WRITE);
File dataFile_2 =...
Ahhh, gotcha. Yes, there is no "quick start" for a combination of a "bare metal" device like the Teensy and a graphics library such as LVGL, which is capable of running on multiple platforms. The documentation should be...
@defragster - @KurtE
Here is the integrity sketch with only 2 drives set up (Builtin sd card and Program Mem). It seems to work for MTP+DISK with Index in Progam Mem - you might what to give it a try.
Oh its...
Rebuilt MakeFiles.ino without the MTP.begin() :: // MTP.begin();
But using the LFS_Prog :: MTP.addFilesystem(lfsProg, "PgmIndx");
Full SD from MTP to PC completed VERY QUICKLY!
Full SD from MTP to PC completed...
I just took a look at my LC. The microUSB has two surface tabs that can be soldered by hand. First you want to check the solder pads (2 for the tabs and 5 for the connection) on the board to make sure they are all...
Probably not. All MTP.begin is doing is starting the interval timer handling the first few messages to quote Kurt. Why it works not with MTP Commented out with MTP_Serial not sure. More investigation is needed
Thanks Kurt, built that sample and it ran until it hit the 'pool' ERROR, will need to add the LFS_PROG.
Enabled the debug in MTP.cpp
If I navigate to "This PC\Teensy\SD Card\ManyD10\D0.5" those 500 Byte files READ...
Maybe I need a fresh IDE 1.8.19 with TD 1.57b1? Not sure if there are any holdover issues from using IDE 2.0? As noted I killed that TD 1.56subset in %appdata% when the Beta 1 released.
Did disk check on SD card and...
also, at the moment. As someone previously mentioned. it was fairly obvious that I am very new to embedded system design and using bit shifters / multiplexes and GPIO expansion chips
so I will start off using the...
This is the simplest code I could produce that I beleived would be enough, but apparently not?
This code works fine when sending midi between two separate MIDI devices connected with a USB Hub to the USB host. Any...
Cool. Thanks!
Looks like exactly the thing I am looking for.
Although. like I said before. I don't mind adding more expansion chips, or even more teensy's.
As presently its a private project, so the costs don't...
Maybe... I uninstalled the Teensy boards from the IDE for now...
Note: I am running my own simple sketch for SD to see if anything pops up: I am running it on T4.1 that has PSRAM... Using the previously generated...
See also here https://forum.pjrc.com/threads/70264-EncoderTool?p=306250&viewfull=1#post306250 for a proposal to read out 190 encoders with one Teensy, without additional hardware :-)
figured the code out, in case this helps someone in the future.
#include <MIDI.h>
int Stretch1 = 0; //name of data from sensor
int Stretch2 = 1;
void setup() { }
void loop() {
Hey MatrixRat
thanks for your help. Sure. I am in the process of learning and trying things out, with a working version of Steinberg Pro 12
So will see how the performance pans out.
I do have a handful of...
Noted compiling with MTP_Experimental, have made no edits to CORES - including the USB Descriptors
Indeed the 1_Primes issue cleared up with LFSProg for MTP.addFS(), but the bad xfer of 500 Byte base files still...
I was thinking of a simple shift register, but then I thought why bother with external parts, when a Teensy can directly read out the matrix even faster.
A quick calculation gives the following formulas for the...
I know very little about LVGL, except for their fancy webpage. I never got it running. My comment on the button was coding it from scratch. I have not hooked up touch to it, but I can do that. This was a relatively...
Hi All,
I found a way to reset the counter, but it's kind of dirty...
In the iMXRT1060 document, it says that if you set GPT1_OCR1 to a new value, it will reset GPT1_CNT.
So within my ISR, I just set GPT1_OCR1...
Why not use something like this?
It will be off by a few us every stroke, but since you are only going at 500 strokes/s I don't suppose it will matter.
The purists will say that this is NOT the way to do it, but I...
Hi All,
Does anyone know how to reset the General Purpose Timer Counter registers? For example, within an interrupt, I want to read the value of GPT1_CNT, and then reset GPT1_CNT to zero. This is def possible with...
I have recently finished a Driver for the Nextion Display.
Actually it is a Skeletal driver with most things done but an area where
you can insert your own code.
I have also developed a Text Monitor page on the...
But isn't the battle with LVGL getting the initial setup installed, configured, working and tied in to your display driver to output to your screen? If you got to the point of displaying a text button, then surely you...
usb power voltage 5v indeed, by burned out i mean stopped working( even simple blink code), and yes we are feeding it to encoders to read their data, and they are fed 3.3 . the thing is that when i tried reading from...
@defragster - quick question are you running your Makefile sketch as MTP Disk or MTP Serial?
One reason I ask is some places in the code you have:
#if defined(USB_MTPDISK) || defined(USB_MTPDISK_SERIAL)
#include...
How did you get that to work? I spent some time with it, but didn't get very far. Do you have any notes that you could share on getting it up and running? LOL it took me a day and a half to get an arbitrary text...
Might help to know additional information like: Burned out - Are you saying, that the board had some magic smoke, or just stopped working or...
Power connection from PC. Are we saying USB power with voltage about...
Morning all (at least in my time zone):
Tim, I will try to run some more of your tests over the next several days. As was mentioned yesterday it may be that there is an interaction issue with the index file and...
hey,
i tried comunicating with two teensey 4.0 , making one master reader and one slave sender, using the simple wire library example.
i conneted them using an electric board i made, and for some reason one of them...
I have LVGL working on the Teensy 4.1, and whilst it is a little bit of an initial learning curve, it is quite powerful and very flexible, and is actively maintained by the devs. I'd definitely recommend it. Plus, I...
Wow, how did I miss that ?? Don't I feel a little foolish right now !! Thanks for the quick reply, Paul. For my more complex projects (like this one), I always include a "pin usage" diagram in the project source, so...
As I said in post #1197 yes I did run and was seeing similar errors. After I made the change to use LFSPRGM to store the MTPINDEX the problems went away and I posted the results of both the makefile and just transfering...
Hi !
Beginner (well, I guess...) question here.
I'm trying to compile the SPISlave_T4 sample with Arduino IDE, but I got this error : SPISlave_T4.tpp: No such file or directory
In which folder are the header and...
Thank you for your fast answer. In order to understand your idea, I checked in SGTL5000’s (codec used for TEENSY AUDIO rev D and driven by TEENSY 4.0 ) datasheet (https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf) the...
How about using a Nextion?
You design your screen offline on an editor. Then send it to the Nextion display.
The display just sits there until you send data to it.
Basically it's a display with it's own...
Easiest way is to use I2S2 for the mic.
https://www.pjrc.com/teensy/gui/?info=AudioInputI2S2
Then just connect its 3 wires to pins 4, 5, 3 which aren't used at all by the audio shield.
High Paul,
My intention is to use a I2S MEMS microphone as input and to hear the audio captured signal in headphones using the output of AUDIO SHIELD ( to benefit also of SGTL5000 output capabilities). As I understood...
RE: p#1203
Moved T_4.1 to front panel USB from HUB.
Started timer and it was minutes ... so long I forgot it was running so not sure when it finished.
> CodeCompare results show the same Diff/Errors as before. ......
It's unclear yet whether the main module number has to match up, but it sure looks like the submodule does not need to. I don't have an oscilloscope, but I can measure the temperatures of the MOSFET's and watch the LED...
After reading about this for hours and doing some testing, it appears that MOSFET's can run parallel as long as duty cycle is the same and the same type of timer channel is used:
all Flex A in parallel,
all Flex B in...
BACKGROUND: I have continued to expand my TeensyMIDIPolySynth project & am very pleased with how it keeps progressing. The current version uses a T4.1 + Audio Adapter Board + RA8875 display. All controls (buttons &...
So you ran the bat - the entirety of it was the one line shown in the post.
> Seems like the indicated steps show your system having the MTP transfer integrity I'm not seeing with the same process.
Have got Win 11...
Maybe have a look at this https://www.ftdichip.com/old2020/Support/Utilities.htm#ESD4
You would need to use one of the EVE displays, but you can interface to these easily it seems.
Running your 1_primes test. Unzip and ran bat, then copied all files to the SD card in less than minute or so.
Coping back to the PC - same thing less than a minute
1. Code compare the files transfered from the...
Sorry not running primes - don't like running bat files on my computer and no need. I am running your makefiles.ino from github with the mods mentioned:
This is what I get from running the 't' and 'v' from the...
Made the p#1197 LFS PROG edit and it created that drive.
Removed 'mtpindex file' from SD card while in PC
Programmed T_4.1 with that SD card in it - so on Restart, first seen with MakeFiles.ino with that file on PROG...
Yes, 4067 is an analog switch but in the EncPlex use case is selecting Highs and Lows into a digital pin, so noise is not an issue. Websearch digital mutiplexer, will lead to 4067 and the like.
Most important is to...
Either way is a counter, decade counter rolls over at different count.
Suggesting Ring counter if one exists. Component availability is a key design factor no matter the method.
Thanks, that is a good tip and needs attention to work right for dynamic file create and utility.
Seemed something like that {beyond my under the covers inattention} given the 1_Primes folder Not-Visited versus...
I did similar to what @mjs513 did.
Note I ran the original sketch, created files, tried to copy to pc, received same error message. Took ssd to pc, ran chkdsk and showed corruption
, which it fixed.
Modified...
@defragster - @KurtE
Sorry got distracted but think I (we) figured out the issue. Downloaded the Makefile2204.ino from github and ran the example using a 128Gb SD Card and saw the same problems that you identified,...
I was doing a neopixel suspender for a local steampunk event, and I did a quick job to solder some wires to the Teensy LC (Vin, the pin 17 level shifted, and ground). Afterward the show, I noticed the micro USB-B...
Hi, I am new to the teensy, don't have one yet. I have built a device, currently using an Uno, which interfaces to a Windows program written in PureBasic. I would like to implement it as a stand-alone device which has...
Been looking at making a GUI for my electronic lead screw project. Are there any libraries that folks know of that are a step up from the ILI9341_t3 sort of libraries? By that, I mean a little higher level. In what...
Hello!
Sorry to dig this thread back up, but it appears to be the most recent discussion about implementing Modbus RTU on a Teensy 4.1 I'm interested in communicating with a device over Modbus RTU but am scratching...
I'm not a drummer so what I suggest may be just wrong:
Say you have 5 drums. Build each like you did with the single drum. Then under the middle drum, install a hub. So two left drums wire to under the center drum,...
Updated to the fs_integration_part2 branch of USBHost_t36.
Seems to have made some change?
> Full disk copy interrupted 5 times with p#1186 Error dialog "... pool is empty"
- > deselected partially copied...
@defragster or whomever... Ok i mostly have this working except the timing between strokes is way off. Will you look this over and see where I am going wrong before I really mess it up?
//Teensy 3.2
const byte...
I will start with just having one drum interfacing with an app on the PC and go from there.
Thanks for that link, I think hid is the way to go. You just saved me a ton of time.
Yes, you can freely mix tgx with any other library since it does not access any peripheral hardware. The only thing tgx does is to write inside a tgx:Image which is basically a just buffer in RAM...
Here is a very...
Hey, MatrixRat thanks for posting reply and answering my initial question. Very interesting. Thanks.
Also, just like to say that I agree with you re luni starting new thread for the rotary encoder library he/she has...
I'm learning all about "automagically"!!!
After trying 16-bit stuff with no issues, I went to the SGTL5000 driver in the Teensy Audio Library and changed the I2S control to
write(CHIP_I2S_CTRL, 0x0010); //...
If you use only the full voltage from the battery and buck converter(s) you'll be able to change to a different power
source flexibly, as well as not unbalancing the cells.
Yes, you found the problem as well! Thank you very much for looking. It is very appreciated.
Still have a problem with resetting the counter value to zero for testing. I get some strange output, but that is just...
You should try with your T4.0, since FreqCount takes a gate interval in microseconds for T4.x. See the FreqCount library examples Serial_Output (T3) and Serial_Output_T4 in TeensyDuino.
Think I found part of the problem! Was calling Serial print way too often. I updated the code to only print out the RPM once every 100ms, it seems it was trying to output every time it went around the loop. That plus...
HID is part of the USB specification. There are people on this forum, Paul and others, who know a lot about USB and HID, so if you go that direction or CAN, you should be able to get help here. I thought of CAN because...