I would recommend Visual Micro with Visual Studio. It gives the stability/understanding of the Arduino system with the IDE of visual studio and Teensy Debugging.
I use it all the time and would not go back. I have used...
Hey, I'm also in middle of building this. Did you make any progress?
I'm having the same trouble with the bounce, but I actually think it could be the hook switch on the phone not always sending the signal. The...
Thanks for your advise, I think you are right, I just need a 24 pulse relative encoder. It s to change the FX Time between multiple FX with MIDI messages (Pioneer Rekordbox) and I don't want fx time change abruptly for...
if a the plastic of the header is too much height, know that after the header is solderd on, you should be able to slide that plastic piece off the header,
with use of a little screwdriver or a knife. this way you can...
I have installed latest stable Arduino IDE (1.8.19) and Teensyduino (1.56). The problems I have with Arduino IDE is productivity : code edition, selection, completion, navigation... For me, VSCode is really faster. I...
I've tried PlatformIO a couple of times, but ended up going back to Arduino. Arduino has lots of issues, but I do understand how to install it and maintain it. Can you explain where in the PlatformIO process was...
Thanks. After some discussion (https://github.com/ssilverman/QNEthernet/issues/15), it turns out that this is expected TCP behaviour. The solution to reduce the waiting time is to either use keepalive or reduce...
Hello,
Thanks for the tutorial, I have dropped Arduino IDE. (Maybe arduino 2.0 would be better)
Next step would be to have debugging available, to avoid "println" debug messages :D The PlatformIO single way to...
In the teensy comparison chart located at https://www.pjrc.com/teensy/techspecs.html
it shows that the Teensy 4.1 has 2 SPI ports, but on its page https://www.pjrc.com/store/teensy41.html it states that there are 3 SPI...
@KurtE - Saw pretty much what @mjs513 saw.Serial monitor shows removal and insertion of SD card (built in) but the mount stayed mounted in the file explorer. This is using Ubuntu. As for USB it works flawlessly....
You say you looked at this? According to FrankB, it works.
https://forum.pjrc.com/threads/48430-Program-Teensy-from-another-Teensy?p=289237&viewfull=1#post289237
Thank you for your prompt answer but the problem is that I already have a few units in the field. If I have to upgrade their firmware to include the Flasher code, I might as well use a PC ...
This is why I was...
I recommend installing direct from SD rather than via a second T4.1. You need to take what you need from FlasherX and integrate it into your own application. It’s or a plug and play solution.
@KurtE
Gave it a quick test run - nothing extensive and mostly with a hub attached more of stress test on the add/remove feature. It does work:
1. Using my M2 drive inserted on boot up it recognizes and I can remove...
Sadly I killed my first Teensy today.
I have been using teensy's since 2015 but never killed one before.
Now while working on a GPS logger I accidently touched the SCLK (13) with the positive pole of a
freshly...
Thank you very much for helping and for your time in creating this utility.
I am lost though as to how it can be used. Here is what I have:
1) A Teensy 4.1 (T1) running some old firmware which I wish to upgrade....
A few have people have done what you want via "FlasherX" discussed in the thread below.
https://forum.pjrc.com/threads/43165-Over-the-Air-firmware-updates-changes-for-flashing-Teensy-3-5-amp-3-6
The latest release...
Info in msg #11 sure looks like all 3 cards are working properly.
I have no more guesses left as to the cause of trouble. Only suggestion I have at this point is to add more ways your program shows status, so you'll...
Sorry for the double post, but i have tested with using a pwm signal.
Both seem to produce about the same results, although the uno is a lot less stable. The uno shows a result flickering between .30 and and .40, while...
Electrically, this absolute endless encoder datasheet] can be connected to a Teensy 3.5. Just use pinMode(pin, INPUT_PULLUP) for pins P1-P8 and then digitalRead each pin.
However, be aware that this endless encoder has...
How do you suggest I do this? I could run a flat edge (like a ruler) to feel the protrusions. Will that work?
I'm trying to get access to the pads underneath. On some 3.2's I soldered an elbow header but that's not...
Some updates on MTP and MSC (USBDrive/USBFilesystem):
I have been playing with some of the what I think of as missing pieces within the MTP and USB Filesystem code. In particular how to make it easier for Sketch to...
I used the same computer, usb cable, port. Also no change in the attached TFT, sensor (DS18B20), joystick or connected CR2032 for the RTC.
At this point I would really like to blame the SD cards, there is still...
I think there's something slightly screwy with your maths here - each I²S out gives two channels, so you can have 4x2 on I2S1 and another 1x2 on I2S2 for an easy-ish maximum of 10 output channels.
For the "custom...
Hi!
I have a project that is using every pin on a Teensy 4.1, for all kinds of various things. I am using the first SPI buss (pin 11 MOSI, pin 10 CS) to send SPI data to an external display, with no need to receive...
Great news it works! Squeal ... not so good. I've used much longer wires (~20cm) for quick tests, but not connecting to anything much. Could be a ground loop or similar: I'm guessing the mixer is grounded via its power...
I did hook my cheap USB scope up to the the diode, seemed fast enough. But for some reason I did not think threshhold.
Thinking about it, i could have the teesny produce a PWM signal and have them both read that back...
Be sure to check underneath the Teensy, as several of the Teensies have protrusions on the bottom. Some of the PCB boards that I've seen that were meant to be soldered directly tended to have cutouts for the bumps and...
I would like to solder the Teensy module directly to my circuit board. I know that this means:
The holes compassing the module can be soldered to pads on my board.
The pads on the bottom of the module must be mated...
So since i didnt really understood how the lib stored the Signals in the dma buffer, but i now know that the dma works and how( thanks to your programm),
i made my own Version on based on your program and some snippets...
Any chance the power supply available to Teensy was different? Maybe different computer, or different USB port or hub, or longer or different cable?
The combination of 600 MHz CPU, Ethernet, and certain SD cards...
Question that I have had with this, is, are you using the exact same setup for breadboard versus your board? Or you using someone else's breakout board or your own with same
CAPS, Resistors, ??? connected to them as...
yes, things move on, way back about 6-8 years ago I used WaveHC WaveRP etc I think on a UNO and was able to "seek" part way into a WAV file or maybe a RAW file. I was able to play part of a file or repeat part of a...
Hmmm, If the FTM timer is ticking at 4 MHz, then to generate a data pulse will require a tick to generate a HIGH bit and then a tick for a LOW bit, so the data rate for galvanometer data will be 2 Mhz. Or 10 us for...
Ok, I tried the suggested examples CardInfo and SdInfo and guess what, they both gave output on the SD cards. So I uploaded my webserver code and yes, that also "magically" worked again. I've tried to think about what I...
I've been stuck on other projects for some days now, but my coworker found that changing clock and reducing speed was a good solution to keep things stable without removing transactions.
It really annoys me that I...
Yes, Rev C audio boards work fine with Teensy 4.1 if you use reasonably short wires to route the signals the correct pins. MCLK and GND are the wires where length matters. But don't overthink the "reasonably short",...
I built the project shown under this Youtube entry using a Teensy 4.0 and the 4.0 Audio card and a Sandisk Ultra 32 GB micro SD card; it sort of works but there are issues that I see have been experienced by others...
should work with custom software:
T4.x has up to 4 I2S data out ports, which could generate 16 out channels
for 4 Audioboards you would need to use two different I2C controls ports.
Thanks Kurt, I think I saw something posted by Paul showing a demo of multiple outputs for at least 2 cards. I will build a little test board with sockets for everything so I can mod and change as I need.
Yes - as you mentioned it is simply the pinouts changed. You just need to be careful when you wire it up. One of Paul's T4 Beta test boards had socket on it for the Rev C (this was before there was a Rev D)
So I want to create 6 to 8 individual 16 bit audio outputs from a Teensy 4.1, my idea is to create a 6 voice oscillator board similar to the TSynth but with the dual VCO section only created with the Teensy.
Problem...
Thank you for your answer,
you were right, the timer stuff works properly.
And the problem seems to be with the ping pong.
I have implemented a solution similar to yours and the generated Signals look good.
There...
Possibly the difference is due to the difference in VIH, VIL of the Arduino vs the Teensy, one being a 5 volt input and the other 3.3 volt . They will detect high and low at different levels of signal. A slow slew...
I'm new to this Snooze library, and I've been looking for a description for its three sleep modes. I've got a Teensy 4.0. Is there a list somewhere of what can wake the Teensy 4.0 up in each sleep mode?
Re: a better fix?
A better solution is to remove the if(txPing & 2) logic from the isr in the library, so the dma.sourceBuffer() is executed on every DMA ISR.
// if(txPing & 2) {
// txPing &= ~2;
if(txPing...
Thanks for the advice! It worked! The only thing now is there's a high pitch squeal when I plug it into my mixer. It sounds fine through my headphones. I'm thinking it's the length of the wires on my breadboard. They're...
yes added diode. https://datasheetspdf.com/pdf/624752...onics/SR3100/1 it worked until i moved parts around. at this point i think the only thing wrong could be the back EMF causing noise. however before i replaced the...
Sorry for the spam. I think I have narrowed down the problem.
If I reset (through the reset and not program pin) the Teensy while the USB is plugged in, the Serial starts working. However, if I plug the device in...
Interestingly, if I use my Linux machine to flash this code:
int i = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
Thanks a lot for the advice KurtE!
I have tried setting up all of this, however the only way I was able to get any data in serial monitors on Linux is by compiling and flashing code from PlatformIO. If I do that, the...
Maybe you can try the CycleCounter in stead of ElapsedMicros
https://github-wiki-see.page/m/TeensyUser/doc/wiki/Using-The-Cycle-Counter
if you disable interrupts you could create stable software clocks, you would...
IntervalTimer runs on the PIT timers (at least on teensy4 i believe), and on Teensy4 these share the interrupt as you pointed out.
looking at the source this is exactly what IntervalTimer is doing, its calling...
Hi everybody,
I hardly try to make my CAN works on a bus of 5 units. The first and the last have terminaison resistor of 12O ohm. Tranceivers : MCP2551 5 volt
I tried to use CAN2 on teensy 4.1 but there is no signal...
Hi everyone,
I'd like to build this device using a teensy and an audio shield, essentially re-creating the circuit as a digital one.
http://www.luigimarino.net/building/c-bow.html
There's some very well...
Check the source. Think there might be only two. Is there any relationship between the 4 frequencies that would allow one time to support more than one frequency?
OK. So it's a 24MHz clock. That gives it a tick time of 41.67 nanoseconds and the accuracy seems to be within +-1 microsecond. Very nice.
The last question is can i have 4 of them running at once?
Cheers
NM
It's part of the Teensy4 core, not a library (see cores\Teensy4\IntervalTimer.cpp). It's a 32-bit timer, and it has a maximum interval of more than 178 sec.
Thanks for the feedback :)
Yes it does, yes they do, all tested cards are readable on my windows laptop
Power comes from the USB on my desktop workstation, I don't think that's the problem.
I've swapped...
Not seen on this list things tried is running the card diagnostic programs, specifically File > Examples > SD > CardInfo or File > Examples > SdFat > SdInfo (and showing us a screenshot or exact copy of whatever they...
I've just done a quick test with the intervalTimer library and it's stable as a rock. I've used the code below and i'm checking how long it takes for each step using elapsedMicros and it's showing me that each clock...
Hello everybody. A friend told me I was wrong and they didn't understand the question in my previous post.
I write my request for help in another way:
is it possible to have a code for Teensy 4.X to build a TX SDR...
Does the SD card work right on a computer? Or is it really damaged?
Some T_4.1's with many card swaps here in testing and no such issues yet as far as the SD Socket failing - though I have an sd card or two in...
here is sketch that demonstrates using TPM2/DMA to set the lower 8 PORTD bits on Teensy LC (tested with scope on PORTD pins)
// PORTD pins 2 14 7 8 6 20 21 5 TPM2
#include <DMAChannel.h>
#define PRREG(x)...
I have a Teensy 4.1 at a remote site. I wish to update its firmware but due to its location, it is not practical to update its firmware using a PC.
Is there a way to upload an updated HEX file to that Teensy either...
Hi,
I need encoder for my midi board.
Can I use Bourns EAW0J-C24-AE0128L with teensy 3.5 ?
If anyone can help me on choice of endless encoder I really appreciate.
If you have tips to connect and use encoder...
I am running 4 clock outputs from the Teensy 4.0. They are for an audio project as a clock source for sequencing purposes. That means i need 4 independent timers. The PIT timers would be good to use as they are 32-bit...
I'm having a hard time imagining what is your objective. Can you say more about what you're trying to do, and why you need nanosecond precision? You may be able to get the 3 x 16-bit timer method to work with the method...
Since the old thread was started, SD card access has completely changed. We switched from the ancient SD library to SdFat, and SD.h is now just a thin wrapper which uses SdFat to access the card. Filenames are no...
Ok,
So who's next? No one? Ok then I'll go again... :(
I had my Teensy 4.1 running a web-/socketserver with temperature sensor, TFT screen, RTC battery and joystick attached, serving a web interface from the SD...