Hello
thank you for your answers, i know the trick of writing the old value with the background color, but since i have to draw a lot of different stuff, i think framebuffer will do the job best for me.
the...
@Isrichard - changing AUDIO_BLOCK_SAMPLES shouldn't change the way the pedal behaves or the sound of your effect at all (other than latency).
By default the library processes sound in blocks of 128 samples (128...
Then that makes things easy. :-)
As noted in the comments in my example, make sure you allocate 1 byte more than the length for each string. The way c strings work is that a null (0x00) is added on to the end to...
Thanks
That works
Reduced latency to 1.3ms
Will this change the way the pedal behaves or the way the pedal sounds other than the latency ?
After I compiled and uploaded it to the pedal I did changed...
Sorry, I didn't update the documentation when the 2.0 IDE came out: Currently it only works with a 1.8.x Arduino installation. It needs to find the compiler and boards.txt which are installed in different places in the...
I was able to get the teensy running on external power with the setup describen. I guess it was my bad soldering, which may have led to a high resistance. I soldered the pins again and made sure there was plenty of...
Hi all,
I got my hands on a few DC motors (no label/name except 12v/5A and hall sensor name sharpied on it) with this hall effect sensor soldered to it. Pages 4&5 have the specs. I have a 5V power supply used for...
Hi Paul,
This appears to still not be working on Mac, I have put together a small example of my code using the classes from my project with an adapted loop to not require an additional application and just run...
Will the strings you are storing always be the same size? Or have a maximum size that you know they will always be under?
The big issue with strings (either c++ string class of c style char arrays) is that their size...
Iuni,
I forgot to include the exact error message from Visual Teensy:
"Arduino Folder doesn't contain a ./hardware/teensy folder. Looks like Teensyduino is not installed"
If I search for hardware\teensy nothing...
Ok now it works, in mode 3 also:
#define SLAVE_TCR_REFRESH spiAddr = (0UL << 27) | LPSPI_TCR_FRAMESZ(bits - 1) | 0xC0000000
There was an error in the interrupt function
Does anyone know if the status of the touchscreen emulation issue for the Teensy 4 hardware has been changed recently? We all know, there isn't any Teensy 3 hardware available anymore to use them as a workaround.
I can contribute with my very recent experience. Going from a teensy 3.6 to a 4.1 with pt8211, I had serious problems with audio synthesis glitches.
On 3.6 the audio was perfect, while on 4.1 there were random...
As p#1 indicates - it is a weird process - but thought to see if breadcrumbs might show where the oddity came up.
First step seemed counting entry and exits - they were all balanced.
And wiping out factory weak...
Oh ok, that makes sense - I didn't realize that I couldn't create threads from ISRs (would be awesome if that could be added to documentation somewhere to save others from this issue!). In this case, how could I create...
It is not safe to use TeensyThread's primitives (thread functions, mutexes) within ISR callbacks such as IntervalTimer.
Creating a thread (done in the function a() used by the IntervalTimer) may cause a new thread to...
There's a very weird bug I've encountered - I'm not sure if it's an issue with TeensyThreads or with the Teensyduino core, so I'm reporting the issue to both places. There's more details at...
Well, this time bad news for the progression of teensy audio (for now), but good news for me, and I'm properly shocked: the 2 Amazon dac/adc boxes I got actually work! Not only that, they seem to sound pretty damn good....
Please reply with this as a complete program I can copy into Arduino and upload to Teensy 4.1 to reproduce the problem. Even if the rest of the program is "trivial", please eliminate the guesswork needed to reproduce...
Hi,
I have code (snippet below) which uses SPI on the Teeny 4.1. The code works consistently when using the 1.57.2 Teensyduino in the Boards Manager in Arduino IDE 2.1.0.
When switching to 1.58 in the Boards...
The name "BUFFER_SIZE" is misleading in this case, the allocation being made in EXTMEM is an array of String objects. The extmem usage is increasing by 50 base objects (all of which use dynamic memory for their local...
Actually, I do not do, I do not care - and it works still (actually obvious for me):
I have at least TWO threads using QNEthernet: one for the HTTP Server (port 80) and another one for TFTP.
And the port 80 server...
I'd like to share my project, find it here:
https://github.com/tjaekel/Teesny_4_1
It provides these features:
UART Command line interpreter: enter commands on UART (e.g. TeraTerm)
WebServer access (via forms) to...
There are several ways to do it.
With out flickering:
1) You can use the frame buffer.
With this you could erase the whole screen, draw everything and then do an updateScreen() call which will then do a redraw of...
6ms is a bit high if you are mixing in a dry signal elsewhere. If you want to reduce the latency cut the number of samples in an audio block down from the default 128.
Edit .../cores/teensy4/AudioStream.h and...
By transceiver lines you mean CTRX & CRX or CANH & CANL? Anyway, these lines should not have a bypass capacitor at all. If you want to add a bypass capacitor a.k.a decoupling capacitor, you should place that cap at the...
I will add code that converts my string array to an array of character array so I can store it in PSRAM. My knowledge of Arduino strings is limited so I will do some reading on it.
Thank you Paul and @defragster.
I meant that my board has the PSRAM chip installed. When using
const int BUFFER_SIZE = 200;
EXTMEM String circularBuffer;
or
const int BUFFER_SIZE = 200;
String...
regarding this: "However, after a few seconds, the code crashes."
> is that when there is or is not physical usable PSRAM chip? re: "run fine with or without PSRAM"
> will it crash in a few seconds when there is a...
Hey guys,
I just go my setup to work in the same setup that Rafal had in post #7. I originally had a capacitor on each of the transceiver lines to function as a bypass capacitor. When I did this - the circuit wasn't...
EXTMEM String only causes the String pointer to be placed into PSRAM. The actual character data still goes into RAM2.
Maybe we should add code in future versions which check for this at runtime (adding slight...
Neat! When using QNEthernet, just make sure that all calls to the library are done from the same thread. I made its lwIP usage single-threaded and there’s a bunch of internal assumptions that rely on there being no...
You get similar warnings using the Arduino 1,8,19 libraries. I posted this over at the smart matrix forum, and I did not get a reply to the thread:
...
A "cooperative system" is not helpful for me: I need real-time and preemption:
a GPIO INT thread should be scheduled immediately.
FreeRTOS works fine:
Command Line, HTTP sever, TFTP - are now FreeRTOS threads, plus...
I have a Teensy 4.1 and added an 8 MB PSRAM chip and it passed the memory test.
In my sketch, I am using the PSRAM memory to save a String array:
const int BUFFER_SIZE = 200;
EXTMEM String...
Yes, MAX9722A looks like it should work. Use 5V to power it.
You'll probably want to use a dual pot with audio taper as a volume knob for one of the resistors on each channel. Probably set the max gain to about 1.0...
Hi Iuni,
the installation of Visual Teensy makes trouble.
First I am not able to install vsCode into c:\program Files\vsCode, where it belongs with the other programs.
To proceed I did the standard folder...
Evidently I can't edit my own message from yesterday? Regardless, this issue was solved by troubleshooting my hardware. I don't think I can delete my message either, so I guess we'll have to let it be a small monument...
That’s a self-assigned IP. What you’re seeing is a timeout; the system gives itself an IP after trying to contact a DHCP server for a while. Either your DHCP server isn’t responding or the Teensy isn’t plugged into a...
You can find it here:
https://github.com/david-res/ILI948x_t4_mm/blob/a39b68f0bba494bf7d4989433b9155831e0b18e0/ILI948x_t4_mm_defines.h
It's in an older init format, so you will need to apply some manual work to get...
Figures. I was supposed to have ordered a number of the larger panels, each with a different, controller for testing.
If you can fire up the init code that'll be great, it'll save some time, whilst I get back on Ali...
Interestingly that appears to happen with my system (Windows 11) when I run that code:
10:46:37.938 -> Starting...
10:46:37.938 -> MAC = 04:e9:e5:0f:69:fc
10:46:37.938 -> Starting Ethernet with DHCP......
Awesome - other posts link way farther back - so far back it didn't ring a bell until others found it - just linked to that one.
To work was pinMode used before and removed - or changed to using INPUT_DISABLE?
Thank you, defragster. Actually, my first post about the problem was in mid 2022, so Your linked topic did not exist yet :) I got exactly the same problem. Thanks for the fix!
No code provided to confirm ...
This has come up before and again in past day - when pin hysteresis is enabled the midrange gets a sticky bias and that may be what is happening here.
If any pinMode() is used -...
LoL
Sorry for that. You're the developer of Visual Teensy, so I'm not surprised that you work with it too.
If it does so many things better than the Arduino IDE, then I will try it.
One of my repair customers requested to try out the waveshape pedal here at my shop.
He liked it enough to video it with his phone.
We ended up making a Youtube video of a more extensive rough demo of the pedal.
...
I used my scope and generator to do a latency measurement.
Its latency measured at 6.38ms.
https://forum.pjrc.com/attachment.php?attachmentid=31252&d=1686190142&thumb=1&stc=1
Hi folks, pretty new to working with line level vs headphone levels.
I'm wondering what I'd need to do to get a good volume controllable headphone signal out of the line out signal from the PT8211.
Could I use...
Does anyone have an idea as to how to fix these warnings with latest SmartMatrix and Arduino 2.1.0 ? The code runs fine but the warnings are irritating.
Warnings are valuable and even with Warning set to "none"...
Using Arduino 2.1.0 Date: 2023-04-19T15:31:10.185Z CLI Version: 0.32.2
I have 2 (or 3) Teensy 4.0 or Teensy 4.1 connected at the same time to two usb ports.
Arduino recognizes both are present. I can switch between...
Some small changes here, compiles for T3.6 may be a start.
/*
Breath Controller
*/
//Libraries used - install them from Tools->Manage Libraries
#include <Oversampling.h>...
I am using ILI9488_t3.h and it works.
However tft.print(); wont delete the old value.
ChatGTP always provides examples with tft.fillScreen(BACKGROUND_COLOR); to delete the old value but what would be a more...
I've made some improvements to the multi-channel USB which I pushed up just now. The feedback sync is now apparently working, but only on a USB 1.1 connection. There's something screwy going on with USB 2.0, but it...
Hello Kurt,
thank you for your answer. Yes i know your libs, but somehow i was not able to find an easy example how to use one dma framebuffer.
Maybe you can point to an example you´ve done, that would be very cool...
I would suggest (so others can see the problem is impedance matching, your impedance driving the source is TOO HIGH, most midro ADC inputs have input impedance of around 30 to 60 k ohms, so a 10k in parallel with this...
DSE is basically Drive Strength Enable, the higher the number the higher the current (1 to 4 mA) the pin can drive (HIGH) or SINK (low), this affects the speed of transitions (slew rate of the signal) I noticed the...
OK, I got it to recognize the display. It turns out there are multiple problems with this setup.
I rewired everything for the sake of pictures and simplicity, and removed the power supply as you suggested Paul. This...
Thanks!
I found it but unfortunately it's still too vague as to how to communicate with this chipset.
Real bummer as it has a very small footprint, and seems to have strong capabilities.
Sadly, using 2 audio shields is more difficult because we lost the ability to configure the I2C address with Rev D2. Fortunately chip shortages are getting better and Rev D will return in a couple months.
You can...
Thanks Paul! I think I got it working. I arbitrarily picked those bits on GPIO7, not realizing that there were limitations on what pins can map to what bits. I used the MCUXpresso pins tool to build a configuration...
Sort of half fixed it.
The interrupts weren't working because I needed to add IntCAN.enableMBInterrupts(); to the init function and then call IntCAN.events(); during the while loop.
After doing that and switching to...
This is the code. It's basically just the setup code from the raw frame monitor. I confess once I'd got my ping that was enough to validate the hardware, so I've already passed the hardware on.
#include...
EDIT: I found that my problem is with my CAN adapter, nothing else as of now. I will update this message later when I am sure there are no other issues, thanks.
Hi, I'm working on getting my first CAN program to...
Are you saying it took a few minutes to get an IP address from DHCP? If so, would you mind pasting a small example that demonstrates what you’re doing? DHCP doesn’t normally take that long. (Slow DHCP server, maybe?)