Depending upon where your preferences fall along the "ugly/functional" to "pretty/difficult" scale, you can do as I have done on some of my projects (more towards the "ugly/functional" end of the scale): solder wires to...
I am developing an app that will make limited use of a MCP4725 DAC. I have used the MCP4725 before, driving it with Teensy 3.5s.
I can't get it to work with T4.1; there seems to be an interaction between the i2c...
Thank you all. I will probably just try and use a couple terminal blocks with some guaranteed 20 AWG wires instead of using pre-crimped cables. This was a very frustrating issue, thank again!
AudioStream.h lists following as problematic with lower block sizes
- AudioInputUSB, AudioOutputUSB, AudioPlaySdWav, AudioAnalyzeFFT256, AudioAnalyzeFFT1024
I think i will be fine if I keep everything in scientific notation, but now I face another problem: There doesn't seem to be a scanf for arduino. So do I really have to write my own parser to input these large numbers?
Definitely sounds like a wire gauge issue causing excessive voltage droop when the LEDs kick on.
If the JST wires come from China, which include most sold on Amazon, it is common practice for them to be labeled...
Thanks for the info!
This brings up another question. I want to create my own circuit board and have the line input and headphone output on that board. The Left and Right channels have very small pins but VGND is a...
Good news. Do report which S/PDIF boxes worked for you, always useful to know.
Always good to be prompted to go back to stuff that kinda faded away. Even if it isn’t immediately useful for you, there’s plenty of...
I think I used to know that, a very long time ago. But 14 digits is surprisingly short to run into a problem. It seems to do better in scientific notation. Either that or I go find a bignum library. Thanks Paul.
...
Try to source cables or wires with a definite wire gauge spefified - some of the cheap ones have homeopathic amounts of copper in them and are only good for signal.
Line impedances are typically 10k or 47k, not the 8 ohms of a speaker. They are purely signal, not power. In practice most line outputs have a much lower source impedance of 100 ohms or so (to avoid losing level), but...
What else is going inside the box? Connectors ? Switches ? PCB ? Battery ? What does 'your device' do?
All things to consider. I too would do what @KrisKasprzak would do.
Perhaps it's not the connector type but the thickness of the wires used, that may be the issue?
From the video, it looks like the wires used with the Dupont connectors are thicker.
Paul
If you look closely at the photo of the CAN transceiver module in message #6, you can see resistor R2 which has "121" printed on it, meaning 120Ω.
So a terminating resistor is actually present.
Paul
With the code below, I see restarting behavior on 1.58.1. I do not see the restarting behavior in 1.57.2. I am using `Dual Serial` and `CPU Speed: 816MHz`. I confirmed it was restarting through looking at the current...
Hi, I have a sketch that can play audio from a sequencer I am working on through the headphone jack. From what I can tell is that the audio should also be sent to the line out on the Audio Shield.
When I hook a...
Yes, I did mean through the 3.3v power supply. I was able to get it to function once I restructured my circuit. I am also curious as to why a 120ohm terminating resistor isn't needed in between the CANH & CANL lines. Is...
hi Paul, thanks for the answer..
Yes, I intend to test all this first on a hub I have here, just wondering really how this would work software side as I cant find any examples.....
so somthing like this would work: ?...
It also has to do with how floating-point numbers represent real numbers.
Here's a random link I found while doing a Google search for "0.1 floating point":...
Hi, I'm building a music sequencer device using the Teensy 4.1, and I'm really confused about an issue I'm encountering involving power delivery (I think) when using JST cables vs. typical Dupont cables.
Project...
That little circuit board looks like a 4 port USB hub.
I would recommend first testing your code with a regular consumer USB hub plugged into Teensy 4.1's USB host port using the regular USB host cable, and the 4...
Is there a limit on the number of decimal places Serial.printf will handle?
Serial.printf("%.13f",305.6381031000000000000000);
gives 305.6381031000000
but Serial.printf("%.14f",305.6381031000000000000000);...
Hi, I have ordered some of these:
https://www.ebay.co.uk/itm/314071014765
and some of these:
https://www.ebay.co.uk/itm/183726060573
how would I go about setting up the code for the t4.1 to offer 4 usb midi host...
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!