Most of the examples used here from the host thread where it developed had a line in the code to edit.
Run the first time with a command to go into pairing mode, then rebuild with that turned off after the device is...
I am thinking of using this display for a project, but the page for the displays does not show a dimensional drawing for the 3.2" version, just the 2.8".
Hello. I have a BT dongle. I've been looking throughout the forum and the many USBHost_t36 samples for the code that will allow the BT dongle to get in pairing mode. One of the samples, Digitizer, allowed me to verify...
HI @mjs513
That's good news. As I suspect, the xfer bug affects 2-ways in WiFiNINA. We already fixed just 1-way, now still have to find out and fix the other way.
Sorry, have no time now. Can you use...
Made the suggested change but also had to copy over the retry function and while I was at it I did copy over the setRetry function as well.
Two tests were run. Transferring from the PC to T4.1 and then from the...
Gave this a try with your Generic library that I downloaded this morning. Made the changes to WiFiNINA_Pinout_Generic.h and client says again about waiting for response from server.
Maybe @wwatson will have...
24Mhz. Ouch! We gotta figure how to sidestep that. Neither Jeannie or my project will like it.
Busy with home renovations, rain is coming, have a couple of ideas.
Thinking of post 39, let's say we have a block of...
It's very difficult to predict. 5V tolerant chips like MK20 on Teensy 3.2 have more complex ESD protection than just simple diodes. NXP and other companies almost never share the design of those circuits. But as a...
Annotation:
The normal processor clock of the Teensy4.1 CPU is 600MHz. I reduced the clock setting for the processor in Arduino to 24Mhz. Transmission errors no longer occur.
The transfer rate on the USB...
HI @wwatson,
You can also help test using WiFiNINA_Generic with Featherwing, just by modifying file WiFiNINA_Pinout_Generic.h, line #368-381
to
#if defined(__IMXRT1062__)
// For Teensy 4.x
...
Following on, 2048 bytes Sysex block size does seem to be the limit but I suspect this limit is imposed by the MS generic usbMidi driver.
Perhaps borrow from Midiox the concept of Sysex Continue and say you want to...
Hi @wwatson
Thanks for the code. It'll take some time later to merge the Adafruit WiFiNINA to WiFiNINA_Generic library, as I currently don't have the Featherwing to test.
To test the new mod, which fixes the file...
Below are my versions of FTP_Server_Teensy41 and WiFiNINA. This was tested with a T4.1 and the Adafruit ESP32 Airlift Featherwing. With my hack to 'DoStore()' I am able upload large and small files to the T4.1. I know...
Commented out line 364 C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\usb.c as you suggest and no longer have truncated sysex. Thank you for finding it Rolf.
Is not necessary to include Sysex status...
I only put the 12 volts on D15, nothing else. Had I put it on Vin...I would have blown everything on the board...all TTL 5 volt devices. The only way I think of ensuring my spare Teensy is working is by using it in...
Write a test code to test your electronics. We don't know how the 12V may have damaged everything else. The very least, find a way for 12V to not be accidentally wired to a Teensy pin. This could involve optimizing your...
Arrrggghh! Thanks defragster. I was hoping it would be the opposite. I'll start checking downstream of the logic chips. Better pull out the schematic.
Two photos: pcb layout and board with Teensy at upper left.
Hi @wwatson
Could you please post the code or make a PR to add WiFiNINA support to FTP_Server_Teensy41, so that we can save duplication and time.
I'll try to have a look to see if there is any more bug when...
I don't see any problem with long sysex messages. Like the MIDI Sample Dump Standard you can send samples.
I've found this :
I think your real problem is the 'generic USB to Midi cable' at it uses Microsoft class...
I wanted to be sure, so I've checked the official Yamaha documentation. See page 37 here :
http://synthmanuals.com/manuals/yamaha/tx7/owners_manual/tx7e1.pdf
I posted your DX7 problem in Sequencer Forum. Look at here: https://www.sequencer.de/synthesizer/threads/yamaha-dx7iid-midi-dump.102499/
Greetings Rolf
Found this on Arduino boards: rugged-circuits.com/10-ways-to-destroy-an-arduino/
perhaps this or other things apply - given 'some signs' of catastrophe in the package seems all safety margins and components violated:
Yes. Your SysEx data block is too large. With MIDI-OX a maximum of only 2048 bytes per SysEx block can be received.
Such a large block of data is not normal. All synthesizers I know send a block of less than 500 bytes...
Since most of the questions here are quite intelligent, let me ask a stupid one.
I've been working with electronics for ...50 years at least, yet still managed to blow up a Teensy by applying 12 volts to a digital...
Hi,
I am testing it with my app in Python.
But I can see lot of noise:
If I have connected signal generator, I have no problem with noise and no problem witth all range of frequencies from 0-15000Hz:
Hi Rolf,
It's a dump of a DX7 bank with 32 patches inside. So the file actually already has only one F0, then 4102 bytes, then one F7 at the end.
In MIDIOX, I see that the usbmidi lib truncates this 4104 buffer in 266...
@wwatson - @KurtE - @defragster
Decided to have a little fun with MTP/MSC/USBHost so I picked up a M.2 SATA 500GB card and used a M.2 SSD adapter to USB:...
I wrote a small Arduino sketch and tested it on a Teensy 4.1 board.
Transmission errors occur with unchanged usb.c file. With the change to usb.c file, there is no transmission error.
The waiting time after...
Thanks for the reply.
I found the USB library (https://github.com/PaulStoffregen/cores/blob/master/teensy4/usb_mouse.h#L46). I assume usb_mouse_move(int8_t x, int8_t y, int8_t wheel, int8_t horiz) is the function...
On my side I managed to get it "working" with 4 channels, but I'm getting some crackling which I haven't figured out yet.
So if anyone more experienced would like to spend one hour debugging with me, that would be...
Great thanks Jay!
On my side I managed to get it "working" with 4 channels, but I'm getting some crackling which I haven't figured out yet.
So if anyone more experienced would like to spend one hour debugging with...
Thank you very much for your help, you wont believe what happened... i was such in a hurry when i connected the pins that i actually used 5v instead of ground and reversed positive with negative so instead of it going...
Note: Not sure if the one time that I thought the files was preserved was a fluke or not.
As I mentioned up on other thread, finally have version of teensy_loader_cli I can build with VisualStudio 2022, so now easier...
Hi @mjs513
I suggest you first try using another known-working FTP Server, such as VSFTP, ftpd, or FTP_Server_Teensy41 to be sure your Adafruit Featherwing board is working OK (hardware, nina-fw, etc). Then moving on...
I just emailed thesycon to put this project on their radar and ask for their contribution. If anyone has the knowledge to finally put the nail in this Wishlist item they definitely have it. They've written a...
It's ok and it works? :)
The next time I lay out this chip I'll be sure to read all of the PJRC page on this https://www.pjrc.com/store/ic_mkl02_t4.html. Scroll down and you'll find a great strategy for getting better...
@khoih-prog and @wwatson
Sorry been away from this for a while been distracted as I mentioned before but been following whats going on. Its great that you found the bug !!!!
Anyway, I just downloaded the updated...
Amazing job!
Thank you for these files as a starting point, can't wait to make my own design.
For the BGA I would've tried a heat gun soldering station... thanks for the tip with the hot plate, never seen these for...
This is my code to send SysEx to usbMIDI()
In the SysEx dump menu from my synthesizer I query a key and set the sendSyssExflag.
If the flag was true then send sysex dump. I always send a block of 348 bytes.
Then I...
Ah geez, you're right. I made those changes and now it's working. I didn't even need to mess with the sample rate with setI2SFreq() or anything. I tried with the sine wave sketch and my more complicated project and no...
Did you change the usb.c in your Arduino Library as I suggested ?
After that it is important that your project has to be completely recompiled (restart Arduino IDE).
File Path: C:\Program Files...
Hello,
I have a art project that involves PID control of a process (many actually, up to 25), that has to run at least at around 20Hz to have the required performance and stability margins.
I'm using a Teensy 3.2...
The fourth line in the screenshot of MIOS Studio in post#1 shows f0 only.
Sketch in post#23 ran on bare T4.1 usbType MIDI, Win10, IDE 1.8.19 TD 1.56, produced this:-
Note the second block, finishes with F0 and...
Hi all,
I've now published my Kicad schematic and board files for making a custom T4.1 on https://github.com/jenschr/Teensy-4.1-example
This file has a known bug in that it turns the USB switch for the USB host...
Many questions. Here's quick answers and some comments about phototransistors in general...
On Teensy, you use the Tools > USB Type menu in Arduino rather than "Mouse.h". It is detected by Windows, Mac and Linux as...
@Srx Shouldn't be hard if you have a hot-plate. Does not need to be big either. I used the MiniWare MHP30 (https://www.youtube.com/watch?v=JKlTd1B6Au8). It's tiny, but perfect for doing stuff like this & reflowing IC's....
I am not in position to do testing at present but just reading your mods....
I assume you have defined #define FRANKB_PATCH somewhere.....couldnt find it in your cpp file ????
Also orig for teensy3.2 the first //left...
I missing usbMidi.read() in your code !
// discard incoming MIDI messages
while (usbMIDI.read()) {
// ignore incoming messages
}
What Arduino CPU and Windows Version are you using?
@PaulSoffregen, I'm stumped as to why this is happening. Board responds to I2C commands when the AudioOutput is PWM or others but not I2S.
On Teensy 4.1 with Audio Shield
#include <Audio.h>
#include <Wire.h>...
If you want to eliminate any transmission delays, you can call flush() after sending TCP data when using QNEthernet. It’s possible the ArduinoModbus API needs to be changed to support this. Without calling flush(), data...
Been able to reproduce this with the following sketch:-
#define chunkSize 128
#define delayAmt 100
byte data;
void fillBuff() {
unsigned scratch;
for (uint16_t ct = 0; ct <= chunkSize; ct++) {
Testing OK with FTP_Server_Teensy41
Starting FTP_Server_SDFAT2 on TEENSY 4.1 with QNEthernet
FTP_Server_Teensy41 v1.1.0
Initializing SD card...
Wiring is correct and a card is present.
Card type: SDHC
Under the hood, incoming data is handled with callbacks, but with polling and not interrupts. The stack is polled for input every time Ethernet.loop() is called, which happens in a number of places internally, and also...
Thanks for responding! I just tried adapting the newer usb_audio.cpp file with the FrankB patches, but am still getting the clicks. Instead of the Audiotiming library (which is missing from FrankB's Github), I tried...
Yes, that’s correct. I chose “buffer if it can” over “send always” because lwIP’s API is similar, so I basically just did a direct mapping. Plus there exists that flush() call in the Arduino API (I don’t really...
Posted code ref to Paul's is worst case - as CACHE or not - it runs end to end of all PSRAM writing values, then a second loop confirming those values are present as expected. So it will blow though the cache. That...
Okay so what I am seeing is by design, just call flush whenever data is time sensitive and if not, I can let the library buffer and send the data when the timer hits to be more efficient? I will try using flush and make...
HI All,
Please use the new WiFiNINA_Generic releases v1.8.14-5
I've been testing many times and still uploading OK, without losing data.
Will update the forked WiFiNINA later, if necessary.
---
Call flush() to send any buffered data immediately. For reference, see the “Write immediacy” section in the Readme.
There’s no equivalent for setSocketSize() or setStackHeap(). Those are specific to how...
I tried making the switch over to QNEthernet this week but I had a few issues/questions.
First issue I noticed was that the data that I was sending from the Teensy to the PC wasn't being received fast enough, I did...
Nice you have some T_4.1's on hand Ken.
I changed my ISP ... DSL finally made it the last mile to my home. Two miles of old wire actually bonding two 20 Mb pairs for 40 Mbps and 11ms pings from passing fiber. Best...
You really should write some small test programs using the ARM cycle counter to measure the actual speed. When you test, use "volatile" on the variables or pointers your code uses, so the compiler doesn't optimize away...
Wow is right. I have spent the last two weekends working on FTP_Server_Teensy41 and WiFiNINA. The problem is with data.connected() always shows 1. Using the same library with QNEthernet would show data.connected() going...
Paul made this PSRAM test sketch: PaulStoffregen/teensy41_psram_memtest/blob/master/teensy41_psram_memtest.ino
It shows clock speed and tests various data patterns with write and read verify without any cache...
This is the directory listing, showing correct octocat.jpg file size of 51695 bytes, after running FTPClient_UploadImage example. The server is VSFTP on RPi
pi@raspberrypi-02:/home/ftp_test $ ls -la
total 80...
Hi All,
Wow, I just found out and fixed the bug in WiFiNINA + WiFiNINA_Generic libraries. Already tested OK using Nano_RP2040_Connect with FTPClient_Generic.
The very bad bug affects sending TCP data...
The last portion of the recently completed batch of Teensy 4.1 is still en-route to Sparkfun and Adafruit. Both sites are allowing backorders. Placing a backorder with them is by far your best chance to get a Teensy...
As Defragster has pointed out, I have some of the Teensy 4.1 in stock, though I am a little surprised he can see my website at all. ;)
Most of the ones I sell are the value-added 'Fully Loaded versions, i.e. modified...
A few points:
you never set s back to 0, so you will only ever trigger/start the cancellation signal once: I assume that's not your intent...
audio updates, and hence new values for rms1.available() and rms1.read(),...