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...
I have been asked to build a weather station for a friends kids, it's going to be a teaching aid for them.
I built the main bulk of the anenometer. It makes use of a holed disc, reverse polarity photodiode with an LED...
Thanks, I know what a codec is but I was thrown by the column in the list that says the PCMxxxx chips have 2 outputs - I should look at the actual datasheets I guess.
I was just looking into something similar, maybe this helps:
There is an example in the IMXRT1060 datasheet to chain 2 PIT timers and get a 60 second interrupt:
page 2976 / 2977
...
The minimum time interval is about 3.7 milliseconds, the maximum is about 60 seconds, at least for the moment. I also want the clock pulses coming out of the project to be as jitter-free and stable as possible and...
It will depend on how your code on the Teensy, in particular, what USB type you are building with. If it is Serial or one of the other ones with name like: Serial + <XYZ> then it is using standard Serial stream stuff....
Blackaddr uses the WM8731 in his guitar shield and chipaudette uses the TLV320AIC3206 in his Tympan. I'm building something with the TLV320AIC3106 and I've also built something using PCM5242 and TLV320ADC5140. I hope to...
You also need the I²C control pins (18 and 19) connected, or the sgtl5000_1 commands won't work. I also seem to recall you need both the Gnd pins wired, not 100% sure about that.
Hi @Pkore,
In your sketch you need to give it some audio memory in setup (try AudioMemory(10); ).
In general for hardware testing you'd be better using one of the examples (File>Examples>Audio>HardwareTesting in...
Not, quite the contrary : I woul like to count the number of pulses (from 10 000 000 to 10 000) in order to derive a very precise interval (from 1 second to 1 millisecond) which will enable me to trigger events.
I...
Good morning!
I want to build a Raspberry Pi - based logger to log data off a Teensy that is sent over USB Serial. However, I can't seem to open the Serial stream in terminal with any tools I have used for classic...
I just got the audio shield for the teensy 4.0 and I'm having trouble getting sound out of it. My project requires that I have the shield separate from the teensy so I have them both mounted to a breadboard and I'm...
Have you tried IntervalTimer, as shown below? It supports a maximum interval of about 178 seconds, so it seems to work fine at 60 seconds. To ensure minimum delay I've shown how to set to highest priority, but you have...
@NuttyMonk: I have absolutely no experience with programming the specific timer + interrupt hardware in the Teensy, so I'm hoping that maybe my ignorance could work in our favor here. With that restriction in mind,...
I was just getting the timers and interrupts working and then i realised i don't know how to decide when the 3 cascaded timer channels have reached the correct count.
I am currently using elapsedMiros to do the...
I was doing a project using a Teensy3.6 so I thought I would try this out as the 3.6 has its own SD card.
I used the WavePlayer sketch in the Audio Library and set it for AudioAnalogStereo. I then downloaded...
Do you mean that you want to get an interrupt when the timers each have a specific value, such as T0=X, T1=Y, T2=Z? I don't think there is a way to do that.
Can you say more about what you're trying to do? If you...