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...
Ok guys just implemented a Attitude Direction Indicator (ADI) using the new library with the additional feature of using transparent BMPs. Really experimental. Here is a short video of it in action:
Enjoy
Evening Michael
Sorry was kind of sidetracked today with trying to get transparent BMP working - think I kind of got it working. But yes should be transparent since we are working with same base display driver. As...
Thanks, that looks like it will work great. I've integrated the code changes and will give it a test and post the results after the board gets here next week.
I also have a second version of the code now using both...
I have it reading the number off the cards, and am still guessing at some of the Card Structures, as they are different between cards.
The one issue I'm seeing, if there is more going on on the Teensy 4.1. Other...
OK. SD card and filenames all sorted. Binned it all, found another system I have used before and we are all working.
Gave up on the new screen library. The one I have works, so I will stick with that.
Just to confirm, you added the fast diode in parallel with the motor, right?
I see a lot of other stuff in msg #15 but no mention of the diode. The diode is by far the most important part.
(imagine Anakin and...
Well I have a library called 'ILI9341_fonts-master' and it contains font_Arial.h.
Yet... duplicate libraries and no compiling. Think my IDE is broken / a mess. Time to play Minecraft instead
Multiple...
i made a similar test and ran it before but forget if i ran it on 3.3 or 5 volts. ready to test when i get a minute. trying to make some progress on getting ready for my big solar array arriving soon. means major...
This is what I had ... char PNG_FILENAME = "/TG2.png";
This is what I get
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Print.h:38:0,
from...
Thanks for all the video work and sharing the design. I'd really like to build one. Does your board supplier (Aisler?) have your design files such that I could order a board from them myself? If not, I'll have some...
Used an approach that @KurtE used:
#define SD_CS BUILTIN_SDCARD
File imageFile;
const char *name = nullptr;
and in the body (setup in my case)
imageFile = SD.open("Horizon_GroundSky.bmp", FILE_READ);
name =...
Hi all,
i'm wanting to do 48-bit timing on a Teensy 4.0. The only way i can do that is to use the QUADTimers and cascade them. After testing the QUADTimers i was able to determine that they run at 150MHz and based...
Did a quick current consumption test using an SSD1306 OLED display and powered it by the LC's 3V3 output. Measured the current in the display supply wire: 7mA
Used this code:
#include <SPI.h>
#include...
so even with that same display unit, different boards could do different things on the data lines? i read somewhere that the oled does work on 3.3 but other places that it needs 5 volts. ill try it on 3.3 and see...
It depends on the exact OLED display used. I would power the OLED by the 3V3 of the Teensy LC .
Those small OLED displays usually draw 20-50mA so you should be fine.
Paul
Some more progress on menus and things. All of the threading section is complete. Most of feeds are done. Have lockouts on the stepper driver until explicitly initialized and started. Still need to clean up the...
Sorry still over cell connection
Or if using SD.h then instead hard code…
Could use MAX_FILENAME_LEN
which is a define in that header file
Edit I believe font files were fixed so you may want to sync up
@SteveSFX:
No...you are close to being in the same neighborhood, however, it seems that you are still missing the detailed understanding of a very important aspect in your declaration . . . take note of the RED...
I am almost ready to try again. I have moved the fet board far from the teensy and have ordered an isolated version. the only load on the 3.3 volt regulator in the teensy LC is a pot as a voltage divider. it draws .6...
OK. I did Google. I believe my method using char was correct, it just doesn't work with the png image display routine.
Been fun, but progress is slow so time to park this for a while I think.
Post 32.... New...
Good work. I've wondering about these displays, and of course whether I could adapt the uncanny eyes code. In theory, I imagine it should just 'work' providing the eye drawn is within the circle of LEDs that are...
I solved it. But what threw me off was having to select the manually downloaded folder in ~/Downloads and not whatever was in /usr/ or anywhere else. I noticed a few people online making this same error. Thank you for...
@SteveSFX:
Google is your friend !! The answer is quickly found by searching for "arduino SD card variable filename" . . .
Just remember to make your array big enough to hold the *longest* filename that you...
One dream I've had for a while is the idea of a guitar pedal that's on the floor but the controls are remoted to an iPad - ideally wirelessly. A long time ago, I briefly worked on a project that used an iPhone for...
Thanks, I have designed, made PCBs for, and built a few guitar effects pedals plus an entire guitar amp (presently at Vn 2) so I do have some experience on handling guitar signals but I don't claim to know it all so I...
Good Morning all
@KurtE and I have been at it again. Recently we started playing with a WaveShare GC9A01A 1.28 Round Display as shown below.
Since we cannot leave well enough alone we modified the ILI9341_t3n...
For guitar work, keep in mind you will also need a high impedance preamp as most audio boards expect line level inputs around 1Vpp. Your preamp will likely need to offer variable gain up around +20dB to get vintage...
Agree the Teensy 4.1 renders some of the rev D audio board redundant, but it's all useful for those who prefer to use the Teensy 4.0 (for size reasons etc.), and I guess it doesn't make sense for PJRC to offer lots of...
Just an FYI - This hub has been mentioned before as working back in 2017 in the thread:
https://forum.pjrc.com/threads/42505-Strange-USB-Serial-15ms-maximum-latency-on-Win7?p=135868&viewfull=1#post135868
And there...
How did you install the Arduino? Did you download from arduino.cc?
As mentioned in the download and install instructions: https://www.pjrc.com/teensy/td_download.html
Good luck.
Thanks for the steer to a VERY relevant thread :D
I have a Teensy 4.0 running with a Rev D audio board (my first Teensy project) plus I have a Teensy 4.1 on the way to me. It strikes me that the Rev D audio board is...
Is the iMXRT1062-master ZIP file supposed to contain a library file?
No matter where I place this ZIP file, Arduino insists it has no valid library.
The only thing in my Arduino/libraries directory is a readme...
I was finally able to find a Teensy 4.1 and after looking at the existing projects I was curious if anyone tried this.
I saw some synth projects based on the Teensy, although I am not interested in it producing...