The board is designed by me based on Paul's schematic. You can see the layout, schematics and BOM on that github repository. I now have 11 MAX31855 running successfully on breadboards with an original T4.1. They will...
LFS stores a signature at the start. If that is missing then it will be created 'new'. So if upload format ( in the mandatory minimum area ) where code storage is not needed is used for LFS then losing those first bytes...
Yes, I noticed this as well with the cli version. It was not always like this as far as I recall.
Thanks for the information! I'm very much a beginner so this is new to me, appreciate it. But I have some...
In order to commit data on LFS it must finalize a write once block - then that block has to be reformatted. Any updates are done to a freshly formatted block.
Doing that 50 to 100 times per second the update to...
I do not know what LFS is doing under the covers with the directory structure when files are opened and appended, but my use case is pretty simple. I am opening, writing (appending) 150 bytes, and then closing a file...
As far as p#23 - doing the formatUnused process 'at some non time critical point' will prevent the format on use slowdown as the dirty blocks have to be used again.
Also if files are migrated off and deleted, that...
If I understand what you are hitting ...
LFS on FLASH does have drawbacks. Each committed update has to make an updated DIR entry - which leaves behind a dirty set of flash blocks from the prior DIR info.
So limiting...
@KurtE @mjs513 @Paul - Here is an update on the progress with integrating lwext and FS. I finally have the ground work done on mounting USB and SD drives. That includes partitions on USB drives. The hardest part was...
@defragster you can disregard the previous post. I got the LFS formatUnused to work. To work it has to be invoked after you start writing to flash. It does improve performance, but it is too (time) expensive for my...
@defragster how would you implement this in practice? I've reverted back to TD1.55, since the LittleFS performance is better than 1.56, but this switch in performance after writing about 2Mb to my QSPI flash is really...
You could try the font editor from this post: https://forum.pjrc.com/threads/54345-ILI9341_t3-font-editor?highlight=ili9341+fonts
To use it looks like you have to download the ttf files for BankGothic and copy them...
Even without DMA, a simple loop that reads a potentiometer and if its value has changed sends a suitable MIDI message to the USB host computer, takes much, much less than a millisecond per loop iteration on Teensy 4.x....
In case anybody is interested, here's some further info.
We are talking about devices using the USB Human Interface Device specification; the current being Device Class Definition for Human Interface Devices 1.11...
stefanodi, just to make it visible for those without your hardware, I built an AM generator only and used a Queue to output the final waveform to the Serial Plotter. As it sits, it runs 50% modulation. Oh, and I also...
You should double-check your wiring . . . it sounds like there's an incorrect connection somewhere. Also, where/how are you trying to measure the audio output with your o-scope ?? If you connect only the center pin of...
This is what I get now. Where it says handset lifted is when I pressed the hook switch. It never reads it as down, only as lifting it.
Button (pin 0) Release
Button (pin 1) Release
Handset lifted
Handset lifted...
Yeah debugging and troubleshooting, my all time favorite past time ;)
Breadcrumbs, sounds interesting, I'll look into it when it's a bit more documented, ok?
But here's an update.
Disclaimer: I'm just guessing...
This Wisamic encoder page] has NPN outputs so you need pullup resistors connected to both output pins.
Here is diagram of a similar OMRON encoder:
Those pullups can be connected to 3V3 and than the output signals...
By design with the new boot loader:
Some details are up on the page: https://www.pjrc.com/teensy/td_code_security.html in the section: Minimum Erase Size.
One hack you can do is to make your LittleFS FS be...
I'm sorry, I added the carrier onto the 15 kHz and not the modulating voltage. Correcting that:#include <Audio.h>
AudioSynthWaveformDc dc1; //xy=80,871
AudioInputI2S i2s2; ...
on the link that @nominal-animal shared there's some reference to change the interval - I changed mine to 2 : ( usb_desc.h at hardware\teensy\avr\cores\teensy4 )
#define JOYSTICK_INTERVAL 2
And apparently is...
I'm using the last eeprom version and it still hangs:
pi@raspberrypi:~ $ sudo rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: Tue 26 Apr 2022 10:24:28 AM UTC (1650968668)
LATEST: Tue 26 Apr 2022 10:24:28 AM...
Thanks for the input:) I have not used the USBTimerDriver before but since it is available that would be a better option. When I get some time I will play with it. Still buried in Teensyext4 which is coming along...
I am porting a logging application from Teensy 3.5 to Teensy 4.1, and I have a question concering the implementation of the Serial class in the Teensy core in 4.1 that affects the behavior of my app.
The...
My concern was the opposite, that I wanted to keep the flash filesystem, but it was erased all the time. One thing I learned, that at certain time in the past, teensyduino would install a new bootloader to the board,...
I am experiencing similar issues with the flash memory seemingly not being fully erased. For some context, I am using Paul's littlefs wrapper to create a particular file in littlefs system if it does not exist on each...
Hi @wwatson - maybe at some point we should merge some of that functionality into USBHost_t36 library.
It would probably not use an IntervalTimer, but instead would probably use USBTimerDriver builtin to the USBHost...
I m not very clear excuse me for this.
My goal is to reduce the latency between the values are available from ADC until sending the midi message. All step between can be improved I think.
I know the delay to...
The answer to that question is it is Teensy Model dependent.
Teensy 4.0, 4.1, Micromod and Teensy 3.6 are not 5v tolerant so you would need a level shifter. For level shifters there are several options I typically...
Hi Bob,
I did some filtering listen to the results....
https://mega.nz/file/KnA1FaLa#-1FnML0Iw-2Uv3pg1dJ-Pyfsx5Lw2G6Nn2pMCvIQDjI
Thanks for your suggestion!
Best,
Johan
Hey Moo, one strange thing I found after posting this was that if I use playRaw instead of playWav, everything seems to work even though the files I'm loading are not raw files, they are wav files. I initially updated...
Did you have any joy tweaking this? I had everything working great. Was waiting on an audio breakout board to wire everything 'properly' and when I turned it on today having not touched it for 2 weeks the hook switch...
Thanks again Bob for your availability.
I tried the code and the Amplitude Modulation and it works. :)
However, it functions as a controlled carrier.
Only in the presence of an incoming audio signal, it generates...
@illera88 - A few years ago I created a small library to do repeating key strokes. See attached zip below. It uses elapsedMillis and IntervalTimer to create the repeat rate and delay before starting to repeat a...
Hi,
I bought this encoder https://www.amazon.fr/gp/product/B015GYY7XU.
The required Voltage is 5v. My question is Can I power with a 5v and directly connect A and B output to 5v tolerant pin ?
If not what can I...
I've noticed that the IC on the audio board becomes really Hot, I assume this is related to the fact that the board/IC is just non functioning correctly
If you're looking to optimize something, you need to be able measure it. Measuring MID latency is not trivial. Do you have a way to measure it?
Also, you need to decide what you mean by "latency". For example, you...
Hi, this is the first time using the audio board on my Teensy 4.1, I've connected the two boards toghether using jumpers on breadboards.
The problem that I actually have is that the board is just outputting a lot...
what i always do (my own preference of course) is setup a scoped millis() near the action you want to do, so in the loop i would put:
void loop() {
static uint32_t coolant_timer = millis();
if ( millis() -...
Thanks for the tips. I checked my UNO code and the reason it works in the correct sequenced order is because I had a check in their waiting for the frame to hit the buffer before processing. As suggested for testing...
hi otemrellik. i’ll have a look when I have a chance. in the meantime it’s probably best to revert to a previous working version … thanks for letting me know, much appreciated
cheerz
I see.
For reference for others that want to do the same, you should measure the time passed between `attachRawPress` and `attachRawRelease` and do some calculations based on that. By default in Windows:
...
Wow!
Thank you so much for all the effort on responding this thorough.
Things makes way more sense now that I've read your post along with the "KeyboardForeward.ino" code. I think that I actually should base my...
The .ld file edits did not work. The code compiles, but the teensy will crash right at startup.
However, I did use the memory inspection tool in platformIO and moved some large variables in the libraries into...
I can't get digitalWrite() to work while using Encoder library. I have an encoder w/ button and an 2x16 character LCD on an Arduino Uno. The encoder and button works fine as well as the LCD. But if I try to directly...
I can't get digitalWrite() to work while using Encoder library. I have an encoder w/ button and an 2x16 character LCD on an Arduino Uno. The encoder and button works fine as well as the LCD. But if I try to directly...
you shouldn't need to strip mailboxes down to one using msg.seq = 1, it will only output to the absolute first mailbox. also you don't need events() in loop if you want direct firing interrupts, but that's optional. As...
Can I upload code to the Teensy 4.1 through the Ethernet port
Can I monitor data through the Teensy 4.1 Ethernet port
Can I synchronize Teensy 4.1s & upload code without needing a serial cable?
Can I synchronize...
Thank you for your response.
For what you say and what I've checked in the code, there is no restriction other than the software on being able to dynamically register a different USB with different characteristics...
Yeah, fair enough. It’s all brand new equipment. I’m really leaning towards some sort of weird ground issue that’s only affecting the SD Card reader for some reason. I have a day off soon, I’ll do some more in-depth...
very cool, my wallet and patience thanks you.
I have found that constant and never ending searches will eventually yield things, I found a arduino nano sense for under $40 , it only took 6 months......but thats a...
Hello otemrellik,
i am not sure if i can help you but if you have static samples, they would be best played from progmem, that seems to be the fastest method. It will also work from SPI flash. About psram, we are...
I have been playing with a little project that is now needing a little more urgency.
With some testing I found that the octoWS2911 library gave the best results for a single strip of LEDs. The next stage of the project...
It should not require it... I have never needed to hook up anything that way... But I don't use Audio except for testing..
But feels like a bad ground circuit... And yes in theory if plugged into one thing works and...
The power block should be giving it enough current. I can do the tests on the pins and get back to you. I've only used the one USB cable so far, but if it works when connected to my laptop while there's a cable in the...
This code (don't remember where I found it) will scan for I2C devices on Wire, Wire1 and Wire2 on a T4.1.
// i2c_scanner
// http://playground.arduino.cc/Main/I2cScanner
//
// Version 1
// This program (or code...
Hi Stefanodi - What you have produces double sideband suppressed carrier. You need to add in a constant carrier level, like 1.0. This is like vout = *sin2*pi*15000*t wher m(t) is the modulating waveform that you have...
I am trying to get a Teensy 4.0 to read from a DHT11. Everything works fine with an arduino so its not a hardware issue.
Im using the adafruit library but its failing on this line:
if (expectPulse(HIGH) ==...
I would assume you have tried different USB cables to make sure that there is not a problem... Could be bad power or ground connection. I have had some USB cables that work to some teensy boards but not others...
...
Hi,
Currently I built my own midi controler. No audio part inside it, I only send midi message.
I want the best possible midi latency like Bela mini https://eu.shop.bela.io/products/bela-mini-starter-kit. on the...
Right, sorry, I forgot that I posted the pic in my previous thread.
Boards are connected directly with pins, the only other things connected are the USB extension, the switches (in a 3x3 matrix), the LEDs of the...
Installed ok on Mac Catalina 10.15.7
Still haven't managed to crash the serial monitor with b1 or b3. Skipped b2.
FYI on another minor issue:
With 1.57b1 I often got a situation when uploading a program where if...
Sorry, again hopefully others will have more ideas.
But we are again sort of shooting in the dark, as we are don't see your board and hook ups and the like. Again probably does not help you to say that it works on...
These posts give me hope that Teensy 4.1 can transmit on SCl2 at IO-24, and SDA2 at IO-25.
However, the posts do not actually show a sketch/includes that work.
I have had success with Teensy 3.5 SCL2 at IO-3, and...
It depends on what code you are using...
More specifically it matches what you pass through to the constructor...
#define TFT_DC 9
#define TFT_CS 10
#define TFT_RST 8
// Setup optional backlight pin
#define...
Ok, so after some further testing, the audio shield works with a tone sweep test, and now I can get the SD Card to launch only if I have a cable plugged into one of my Line Outs and USB connected to my laptop. If I use...
Hi Nic, I just updated to v1.0.14 for a project I'm working on that uses the sampleloader example to load wav files from the sd card into the psram on teensy 4.1. Using the example, the playRaw seems to work just fine...
Please don't create N different threads for the same conversation.
I believe a lot of this is done at the host level. That is for example on PC keyboard controller. You can change the Repeat delay and the repeat...
Simple Answer is in a generic way you probably can not.
That is if you want it to on each run if you have a different keyboard plugged in, you wish for these values to mimic it.
That is that data is built into the...
Sorry I am not Paul, but ...
As mentioned by Paul, several of our examples were setup as big test cases to try out several different things, and the one named Mouse is/was the kitchen sink, especially for testing...
Howdy, In the process of porting my code tested on a UNO coded for polling to a teensy 4.0 using FIFO with interrupts. Everything connects, writes, and reads fine however the frames are not ordered as seen in the logs...
Hi,
I've been trying to capture the repeated keys prints that a keyboard produces when a key kept being pressed for a while before releasing. When you do that just one letter gets printed for a second and then a...