And already a question:
When I look at the display and settings of the filter, I see this is measured in kHz and scale is linear (what seems very logical at first sight).
However our ear works in a logaritmical...
Dear members of the forum. Being new here: My name is Eef, and just finished building the detector, with some great help from Edwin.
And compliments for Cor, Edwin and others who contributed here: Great job. (I don't...
i see what you are saying, it is just confusing in the diagram tho, pin 3 hav 3.3V and there is no connection there to the 5V as it seems in the picture. i checked it with a voltage-meter.
Hello all, I am new to the Forum and to the Teensy devices.
I am working on a CAN-ModbusTCP bridge, with a Teensy 4.1 and native PHY Ethernet.
Currently, I have this project working good with an Arduino Mega 2560,...
I have copy-pasted your entire code into a new sketch, uploaded it, and it makes no difference for me:
the output stops after "initializing ILI9341" and when I upload another sketch I have to press the Teensy button....
I have not been able to make the Arturia minilab II work reliably with midi via the USB host port, so it seems the T36 host lib as it stands cannot be used in midi products that would be released to the general public...
Yes, I've connected using the second column (Teensy 3.x Audio Board) because I plan to use the Audio Board. Is that Ok?
So is it easy to "tell the SPI library that the alternate pins are used"?
Sorry if...
I'm sure there are many different enclosures. I typically don't worry about 'fancy' enclosures.
One that I've used in the past is the Altoids tin. You can get a regular Altoids tin (eat the mints in it first), or...
I ran your sketch:
#define USE_NATIVE_ETHERNET
#define USE_ILI9341_T3N
//#define USE_ILI9341_T3
#ifdef USE_NATIVE_ETHERNET
// In NativeEthernet.cpp,EthernetClass::begin(...) you must remove waiting on the link...
Alright, Went back to Native Ethernet and QNEthernet using FTP_Server_Teensy41 latest version and had no problems transferring files back and forth between the client and server using Filezilla and gFTP. All transfers...
As an example of this, you might try looking at the Example: Teensy->USB_SERIAL->USBtoSerial
It shows you how in the loop, it uses the Serial.available() to help determine how many bytes to read.
In addition to this...
Any good boxes/enclosures for the teensy 4.1? I am going to make a little control for lights in my front room and want to put it in the cabinet next to the A/V stuff.
To amplify what PaulS said, on the Teensy 3.x microprocessors, you can choose two sets of pins for the 3 SPI pins:
Pin 11 or pin 7 for DIN/MOSI;
Pin 12 or pin 8 for DOUT/MISO; (and)
Pin 13 or pin 14 for...
I have a motion controller system that works on sending position updates every 20ms. It work great for servos, but the issue I have with steppers is the 50Hz is not synchronous to the stepper output as it is...
That was a big help, thanks! I got it working with t3n, single buffer for now with 50mHz SPI, its getting the same FPS as before without any TGX primitives, (36FPS which is quite acceptable, its just a 2D interface) and...
It's already on your computer because of the installer, and also on github.
https://github.com/PaulStoffregen/cores/blob/7d2e0cd09ba91aa5c7fa0b275c0b546974be11ea/teensy4/usb_serial.c#L183
Look for...
No, I would never change thread pitch while cutting threads with the spindle is turning! My state machine (if I write it correctly) would prevent that from happening. Although it might be interesting to see what such...
My Display has no CS pin. Therefore I cannot connect any other device on this SPI bus together with the display.
There is a MIS pin, which I leave disconnected. This way it works well with ILI9341_t3n.
I can also...
This has exactly the same speed. It can't read too many bytes each time also. Is there source code available? I suspect internally SerialUSB1.readBytes calls SerialUSB1.read() many times in a loop.
int...
Thanks for the input> I am still learning this stuff:) What is the proper way to determine that the transfer is complete? Does the client close the connection?
Are you sure that you want to change the pitch while the spindle rotates? Thinking of the noise the breaking thread tool makes gives me goose bumps :-))
Seriously;
In your controlling application I'd require that...
Is there any way to speed up the Serial.read()? From what I can see on the TESTPin, the while loop run 5 to 6 times each micro seconds. If we can find out how many bytes available, can we use a memcpy to get all the...
@luni, Making some good progress. Have two display screens and a way to get from one to the other. Working on selecting the pitch value and loading the associated values for N and D to the main program.
As I am...
Here's my initial thoughts on the LAN8720A wiring. This mostly duplicates msg #3, but the MDIO pins are moved because conflicting with the primary SPI port is a huge cost for a feature we're probably not ever going to...
After some deep digging in the library I found that it was easier than I could beleive.
This is the shortest code I could produce that simply shows what need to be done to read from (any) port/cable/channel and send...
Sorry! Found it!
Saw that all midi commands could take cable as last argumnt (but default to 0)
Line 1072: void sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t cable=0) {
Line 1075: void...
There is an interesting post here https://forum.pjrc.com/threads/49753-Problem-with-large-volumes-of-data-on-usbMidi?p=168107&viewfull=1#post168107
It works usb_midi_flush_output() by commenting out into usb.c file...
I see you are confirming that USBHost_t36 can handle devices with several (virtual cables/ports), but by looking at the library I cannot figure out how to send a midi event (NoteOn) to a specific cable on the only MIDI...
I did not realize there is another ethernet library for teensy 4.1, thank you! I will give it a try...
This is cool! Thank you! I already like it better than NativeEthernet, because the sketch can start without...
I am always delighted that there are poeple willing to help in this forum! Thank You!
The code compiles well. And it works well except in the configuration given below:
USE_NATIVE_ETHERNET and USE_ILI9341_T3N, this...
You can add a parameter to designate the port at the end of the midi message
USBHost myusb;
USBHost hub1(myusb);
MIDIDevice MIDI1(myusb);
const byte port1 = 0;
const byte port2 = 1;
const byte myChannel = 0;...
Hi Kris
Thanks for this menu system. Is it possible to have an ItemMenu go to another ItemMenu which goes to another ItemMenu or EditMenu.
right now I am able to get an ItemMenu go to another ItemMenu
Thanks
Many complex factors impact the overall speed.
A couple years ago, quite a lot of work did go into speeding up the Teensy-to-PC code. Less optimization work has (so far) been done on the PC-to-Teensy path, so yes,...
I have Teensy Loader 1.56 and Arduino 1.8.16 versions installed. I ordered the https://www.amazon.com/gp/product/B0775YF36R dongle and the USBHost cable from PJRC. I soldered the host adapter header to the teensy and...
Following instruction from https://www.pjrc.com/teensy/td_serial.html, I use this code to read data from PC host:
unsigned char bytecount = 0;
while (SerialUSB1.available() && bytecount< 128) {
...
I fixed the f32/F32 confusion and it compiles, so the library is good. When I tried to use input_spdif3 it compiled but I got a link error when it tried to tie the sample rate to AudioStream instead of AudioStream_F32....
I restarted my computer and rebooted the device again and it all worked, I think there was something strange in the USB communications but the device is not bricked!
Look at TeensyThread perhaps?
With the devices being on separate SPI buses it isn't guaranteed to fail - but it may not work reliably having the processor pulled away and interrupted during an active read.
Setting...
Got update to MTP_Storage.cpp : Not back at it for another couple hours.
reminder: The MakeFiles.ino sketch has the 'v'erify for files it makes for testing on non-removable media.
> should be able to create...
Yep, I found a typo in the lib where I had SetItemValue and SetAllColors but it should have been setxxxx. I have fixed the examples, but as mentioned just change the ino and change Setxxxx to setxxxx
Bad news is it...
I am trying to read multiply sensors on my teensy 4.1 using Teensyduino. Each sensor is on its own SPI port. The problem I am running into is that each sensor has its own rate that it runs at. For example I have one...
I also performed the "Memory Wipe & LED Blink Restore" from the T4.1 product page.
- Holding the button caused the LED to go off for 13 seconds, then a short blink occurs, then the LED goes back to blinking at 1Hz on...
I recently updated to Teensy Loader 1.56 after using an older version (unsure what the old version is).
I have two devices, the first one updated the bootloader automatically updated no problem. The second one failed...
I tried out transfer16 and just could not get it to work for some reason. I didn't realise that there was transfer32. I'll try again... thanks for the suggestion.
Be aware that there is a problem with the f32 vs F32 designator on spdif files. I will get this fixed, but one may need a new pull from GitHub to get clean compile.
Also, I am adding the new files to the F32 Design...
Thanks for the awesomely fast response! Wasn't expecting an example sketch to fail, but guess it happens. I will give it a try.
Edit: Yes, that compiles for me. Thanks again!
@clinker8
Try this version of the example. I changed the Set... to set and it now compiles. If you use the mechanical version you will have to make the same type of changes
@KrisKasprzak
Just tried compiling the example without mods and getting the same errors as @clinker8
ILI9341_t3_Menu_TouchInput: In function 'void setup()':
ILI9341_t3_Menu_TouchInput:1736: error: 'class EditMenu'...
Ok. Program is ILI9341_t3_Menu_Touchinput, from recently installed library example sketch, no changes. Compiles with nearly the same errors. Errors below.
Arduino: 1.8.19 (Linux), TD: 1.56, Board: "Teensy 4.1,...
Teensy 4.x also has transfer16() and transfer32(). If you can do each DAC with a single 32-bit transfer, that should be a significant improvement over individual 8-bit transfers, even without DMA.
I am having the same issue as wwatson above in #126, even using the latest version of the FTP Server 1.1.0 . Using FileZilla (3.59.0) on Windows, I can connect in passive or active mode and (usually, but not always) get...
Now.. I have implemented USB and Midi SysEx transmission. USB often has transmission errors. Midi works without error :)
a lot of sysex data..
uint14_to_sysex2Bytes(data, sysexCount, sysexData); //...
@KrisKasprzak I am trying to get your example file working, I made a few mods to the IO just to match my current hardware configuration. I am getting compilation errors. Here is the modified file and here are the...
Yes, performance is lacking as I'm updating the 5 channels sequentially. I'm using the simple form of SPI.transfer with one parameter which is the data (which is blocking, I believe). There seems to be another way of...
:D
I just pushed up the changes after a little cleanup. That is I did a few things like remove trailing blanks from lines.
Also I set DEBUG back to 0 and then updated the code such that only errors would print out...
if you "got it working using just SPI", did you find the performance lacking? When I do a 1024-byte SPI.transfer() with SPI clock at 40MHz, I measure a data rate at 37.4 megabits/sec. I believe the Teensy4 SPI...
Tranfer only one patch, it no error.
To protect against Buffer overflow, I made a wait time 120ms after sending each patch.
Is there a way to query a faulty USB transfer :confused:
Wow, That's huge. Fourth line looks truncated after F0. Seen similar truncations if some data miscalculation tries to send a value >127, not the case here as the four byte header (zeros) was supposed to come next.
My...
There are a few supporting libraries for the ILI9341 developed by @KrisKasprzak
https://forum.pjrc.com/threads/69216-FREE-Menu-Library-for-ILI9341-Displays?highlight=menus
as for gauges and graphs you can check out...
This line appears to be conflicting with the I2C onRecieve
AudioOutputI2S i2s2;
If i comment it out, the I2C works but if I put it in, it prevents the communication.
Teensy as Slave Code
#include <Audio.h>...
Didn't really think it was an issue, was just documenting what I was seeing :). I did rerun the Makefiles comparison test.
1. Reformatted the SDCard.
2. Ran Makefiles with the 't' and 'v' option - all good
3. ...
Anyone able to offer any advice on this? It's an open source project for the arcade community. I was thinking that FlexIO could be an alternative solution to DMA maybe?
Hello, I have been able to answer my question myself. There is a sample code of "snooze.h", but I had not understood it. If someone has the same problem as me, here is a short explanation and a small sample code.
...
Your welcome, thanks for that.
Before you purchase anything, download the Nextion Design Editor. It has a debug facility which allows you to run your design in simulation mode.
This will better allow you to learn the...
Hello teensy friends
I programmed a midi dump function for my Synthesizer with Teensy 4.1. Transmission errors occur when I send Patch Bank data to the PC via usbMIDI.sendSysEx. The data packet is 128 * 348 bytes...
1500 is a size of a TCP packet. it is normal that available() returns 0 between packets, even it shouldn't be so slow that only one packet is available at time.